(t *testing.T)
| 8 | ) |
| 9 | |
| 10 | func 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 | |
| 17 | func TestLogLevel_Decode_fail(t *testing.T) { |
| 18 | ll := new(LogLevel) |
nothing calls this directly
no test coverage detected