MCPcopy Create free account
hub / github.com/Azure/peerd / init

Function init

cmd/proxy/main_test.go:18–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16)
17
18func init() {
19 var err error
20 testCtx, err = metrics.WithContext(context.Background(), "test", "peerd")
21 if err != nil {
22 panic(err)
23 }
24}
25
26func TestRun(t *testing.T) {
27 // Use the shared test context

Callers

nothing calls this directly

Calls 1

WithContextFunction · 0.92

Tested by

no test coverage detected