go_log/main_test.go

21 lines
324 B
Go
Raw Normal View History

2022-10-11 06:06:26 +02:00
package main
import "testing"
func TestDefault(t *testing.T) {
testLog := Log{}
testLog.SetDefaultValues()
testLog.Context = []Metadata{
{
Name: "foo",
Value: "bar",
},
{
Name: "lur",
Value: "pelle",
},
}
testLog.Info("bosse")
testLog.ErrorM("frasse", []Metadata{{Name: "wat", Value: ":O"}})
}