Debian Codegraph @

examples/logger/main_test.go

raw symbols SCIP
1 package main
2
3 import (
4 "testing"
5
6 "github.com/chainguard-dev/clog"
7 "github.com/chainguard-dev/clog/slogtest"
8 )
9
10 func TestFoo(t *testing.T) {
11 ctx := slogtest.TestContextWithLogger(t)
12
13 for _, tc := range []string{"a", "b"} {
14 t.Run(tc, func(t *testing.T) {
15 clog.FromContext(ctx).Infof("hello world")
16 })
17 }
18 }