()
| 38 | ) |
| 39 | |
| 40 | func makeCountingHook() (func(zapcore.Entry) error, *atomic.Int64) { |
| 41 | count := &atomic.Int64{} |
| 42 | h := func(zapcore.Entry) error { |
| 43 | count.Add(1) |
| 44 | return nil |
| 45 | } |
| 46 | return h, count |
| 47 | } |
| 48 | |
| 49 | func TestLoggerAtomicLevel(t *testing.T) { |
| 50 | // Test that the dynamic level applies to all ancestors and descendants. |
no test coverage detected