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

Function TestInfolnShouldAddSpacesBetweenStrings

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

Source from the content-addressed store, hash-verified

143}
144
145func TestInfolnShouldAddSpacesBetweenStrings(t *testing.T) {
146 LogAndAssertJSON(t, func(log *Logger) {
147 log.Infoln("test", "test")
148 }, func(fields Fields) {
149 assert.Equal(t, "test test", fields["msg"])
150 })
151}
152
153func TestInfolnShouldAddSpacesBetweenStringAndNonstring(t *testing.T) {
154 LogAndAssertJSON(t, func(log *Logger) {

Callers

nothing calls this directly

Calls 2

LogAndAssertJSONFunction · 0.85
InfolnMethod · 0.65

Tested by

no test coverage detected