MCPcopy
hub / github.com/cilium/cilium / TestMain

Function TestMain

hubble/cmd/observe/flows_test.go:28–36  ·  view source on GitHub ↗

TestMain setup the defaultMask used by some test functions.

(m *testing.M)

Source from the content-addressed store, hash-verified

26
27// TestMain setup the defaultMask used by some test functions.
28func TestMain(m *testing.M) {
29 fm, err := fieldmaskpb.New(&flowpb.Flow{}, defaults.FieldMask...)
30 if err != nil {
31 panic(fmt.Errorf("failed to construct field mask: %w", err))
32 }
33 defaultMask = fm
34 code := m.Run()
35 os.Exit(code)
36}
37
38func TestEventTypes(t *testing.T) {
39 // Make sure to keep event type slices in sync. Agent and debug

Callers

nothing calls this directly

Calls 3

NewMethod · 0.65
RunMethod · 0.65
ErrorfMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…