(t *testing.T)
| 120 | } |
| 121 | |
| 122 | func TestStacktraceWithoutCallerSkip(t *testing.T) { |
| 123 | withLogger(t, func(logger *zap.Logger, out *bytes.Buffer) { |
| 124 | func() { |
| 125 | logger.Error("test log") |
| 126 | }() |
| 127 | |
| 128 | require.Contains(t, out.String(), "TestStacktraceWithoutCallerSkip.", "Should not skip too much") |
| 129 | verifyNoZap(t, out.String()) |
| 130 | }) |
| 131 | } |
| 132 | |
| 133 | func TestStacktraceWithCallerSkip(t *testing.T) { |
| 134 | withLogger(t, func(logger *zap.Logger, out *bytes.Buffer) { |
nothing calls this directly
no test coverage detected