(t *testing.T)
| 116 | } |
| 117 | |
| 118 | func TestLoggerErrorExpected(t *testing.T) { |
| 119 | checkMessages(t, zapcore.DebugLevel, nil, zapcore.ErrorLevel, []string{ |
| 120 | "hello", |
| 121 | "s1s21 2 3s34s56", |
| 122 | "hello world", |
| 123 | "", |
| 124 | "foo", |
| 125 | "foo bar", |
| 126 | "s1 s2 1 2 3 s3 4 s5 6", |
| 127 | }, func(logger *Logger) { |
| 128 | logger.Error("hello") |
| 129 | logger.Error("s1", "s2", 1, 2, 3, "s3", 4, "s5", 6) |
| 130 | logger.Errorf("%s world", "hello") |
| 131 | logger.Errorln() |
| 132 | logger.Errorln("foo") |
| 133 | logger.Errorln("foo", "bar") |
| 134 | logger.Errorln("s1", "s2", 1, 2, 3, "s3", 4, "s5", 6) |
| 135 | }) |
| 136 | } |
| 137 | |
| 138 | func TestLoggerFatalExpected(t *testing.T) { |
| 139 | checkMessages(t, zapcore.DebugLevel, nil, zapcore.FatalLevel, []string{ |
nothing calls this directly
no test coverage detected