(t *testing.T)
| 136 | } |
| 137 | |
| 138 | func TestLoggerFatalExpected(t *testing.T) { |
| 139 | checkMessages(t, zapcore.DebugLevel, nil, zapcore.FatalLevel, []string{ |
| 140 | "hello", |
| 141 | "s1s21 2 3s34s56", |
| 142 | "hello world", |
| 143 | "", |
| 144 | "foo", |
| 145 | "foo bar", |
| 146 | "s1 s2 1 2 3 s3 4 s5 6", |
| 147 | }, func(logger *Logger) { |
| 148 | logger.Fatal("hello") |
| 149 | logger.Fatal("s1", "s2", 1, 2, 3, "s3", 4, "s5", 6) |
| 150 | logger.Fatalf("%s world", "hello") |
| 151 | logger.Fatalln() |
| 152 | logger.Fatalln("foo") |
| 153 | logger.Fatalln("foo", "bar") |
| 154 | logger.Fatalln("s1", "s2", 1, 2, 3, "s3", 4, "s5", 6) |
| 155 | }) |
| 156 | } |
| 157 | |
| 158 | func TestLoggerV(t *testing.T) { |
| 159 | tests := []struct { |
nothing calls this directly
no test coverage detected