MCPcopy
hub / github.com/sirupsen/logrus / TestAddHookRace2

Function TestAddHookRace2

hook_test.go:196–208  ·  hook_test.go::TestAddHookRace2
(t *testing.T)

Source from the content-addressed store, hash-verified

194}
195
196func TestAddHookRace2(t *testing.T) {
197 t.Parallel()
198
199 for i := 0; i < 3; i++ {
200 testname := fmt.Sprintf("Test %d", i)
201 t.Run(testname, func(t *testing.T) {
202 t.Parallel()
203
204 _ = test.NewGlobal()
205 Info(testname)
206 })
207 }
208}
209
210type HookCallFunc struct {
211 F func()

Callers

nothing calls this directly

Calls 2

NewGlobalFunction · 0.92
InfoFunction · 0.85

Tested by

no test coverage detected