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

Function TestWarn

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

Source from the content-addressed store, hash-verified

125}
126
127func TestWarn(t *testing.T) {
128 LogAndAssertJSON(t, func(log *Logger) {
129 log.Warn("test")
130 }, func(fields Fields) {
131 assert.Equal(t, "test", fields["msg"])
132 assert.Equal(t, "warning", fields["level"])
133 })
134}
135
136func TestLog(t *testing.T) {
137 LogAndAssertJSON(t, func(log *Logger) {

Callers

nothing calls this directly

Calls 2

LogAndAssertJSONFunction · 0.85
WarnMethod · 0.65

Tested by

no test coverage detected