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

Function TestPrint

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

Source from the content-addressed store, hash-verified

107}
108
109func TestPrint(t *testing.T) {
110 LogAndAssertJSON(t, func(log *Logger) {
111 log.Print("test")
112 }, func(fields Fields) {
113 assert.Equal(t, "test", fields["msg"])
114 assert.Equal(t, "info", fields["level"])
115 })
116}
117
118func TestInfo(t *testing.T) {
119 LogAndAssertJSON(t, func(log *Logger) {

Callers

nothing calls this directly

Calls 2

LogAndAssertJSONFunction · 0.85
PrintMethod · 0.65

Tested by

no test coverage detected