MCPcopy
hub / github.com/sirupsen/logrus / TestConvertLevelToString

Function TestConvertLevelToString

logrus_test.go:467–475  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

465}
466
467func TestConvertLevelToString(t *testing.T) {
468 assert.Equal(t, "trace", TraceLevel.String())
469 assert.Equal(t, "debug", DebugLevel.String())
470 assert.Equal(t, "info", InfoLevel.String())
471 assert.Equal(t, "warning", WarnLevel.String())
472 assert.Equal(t, "error", ErrorLevel.String())
473 assert.Equal(t, "fatal", FatalLevel.String())
474 assert.Equal(t, "panic", PanicLevel.String())
475}
476
477func TestParseLevel(t *testing.T) {
478 l, err := ParseLevel("panic")

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected