MCPcopy
hub / github.com/rs/zerolog / TestUnmarshalTextLevelNil

Function TestUnmarshalTextLevelNil

log_test.go:1442–1448  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1440}
1441
1442func TestUnmarshalTextLevelNil(t *testing.T) {
1443 var l *Level
1444 err := l.UnmarshalText([]byte("info"))
1445 if err == nil || err.Error() != "can't unmarshal a nil *Level" {
1446 t.Errorf("UnmarshalText() on nil *Level error = %v, want 'can't unmarshal a nil *Level'", err)
1447 }
1448}
1449
1450func TestHTMLNoEscaping(t *testing.T) {
1451 out := &bytes.Buffer{}

Callers

nothing calls this directly

Calls 2

UnmarshalTextMethod · 0.95
ErrorMethod · 0.45

Tested by

no test coverage detected