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

Function TestInfo

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

Source from the content-addressed store, hash-verified

116}
117
118func TestInfo(t *testing.T) {
119 LogAndAssertJSON(t, func(log *Logger) {
120 log.Info("test")
121 }, func(fields Fields) {
122 assert.Equal(t, "test", fields["msg"])
123 assert.Equal(t, "info", fields["level"])
124 })
125}
126
127func TestWarn(t *testing.T) {
128 LogAndAssertJSON(t, func(log *Logger) {

Callers

nothing calls this directly

Calls 2

LogAndAssertJSONFunction · 0.85
InfoMethod · 0.65

Tested by

no test coverage detected