MCPcopy Index your code
hub / github.com/screego/server / TestLogLevel_Decode_fail

Function TestLogLevel_Decode_fail

config/loglevel_test.go:17–22  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

15}
16
17func TestLogLevel_Decode_fail(t *testing.T) {
18 ll := new(LogLevel)
19 err := ll.Decode("asdasdasdasdasdasd")
20 assert.EqualError(t, err, "unknown log level")
21 assert.Equal(t, ll.AsZeroLogLevel(), zerolog.InfoLevel)
22}

Callers

nothing calls this directly

Calls 2

DecodeMethod · 0.80
AsZeroLogLevelMethod · 0.80

Tested by

no test coverage detected