TestContext returns a newcontext with the default logger, for use in tests only
(ctx context.Context)
| 75 | |
| 76 | // TestContext returns a newcontext with the default logger, for use in tests only |
| 77 | func TestContext(ctx context.Context) context.Context { |
| 78 | return WithLogger(ctx, NewSlogLogger(Info, Text).WithField("test", "true")) |
| 79 | } |
no test coverage detected