MCPcopy Create free account
hub / github.com/screego/server / TestLogLevel_Decode_success

Function TestLogLevel_Decode_success

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

Source from the content-addressed store, hash-verified

8)
9
10func TestLogLevel_Decode_success(t *testing.T) {
11 ll := new(LogLevel)
12 err := ll.Decode("fatal")
13 assert.Nil(t, err)
14 assert.Equal(t, ll.AsZeroLogLevel(), zerolog.FatalLevel)
15}
16
17func TestLogLevel_Decode_fail(t *testing.T) {
18 ll := new(LogLevel)

Callers

nothing calls this directly

Calls 2

DecodeMethod · 0.80
AsZeroLogLevelMethod · 0.80

Tested by

no test coverage detected