go_log/main_test.go
2022-10-11 06:06:26 +02:00

21 lines
324 B
Go

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"}})
}