Skip to content

Commit 36d5f93

Browse files
author
Krzysztof Sinica
committed
Increase test coverage.
1 parent b8cfce8 commit 36d5f93

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

log/context_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ import (
1010
"go.uber.org/zap/zaptest/observer"
1111
)
1212

13+
func TestGetLoggerNoop(t *testing.T) {
14+
ctx := context.Background()
15+
16+
GetLogger(ctx).Info("this message should not be visible")
17+
}
18+
1319
func TestContextEmbedding(t *testing.T) {
1420
bar := func(ctx context.Context) {
1521
GetLogger(ctx).Info("bar called")

0 commit comments

Comments
 (0)