var tim … var attrs … var rules … func test(t *testing.T, req string, expLevel audit.Level, policyStages, expOmitStages []audit.Stage, ruleNames ...string) { … } func testAuditLevel(t *testing.T, stages []audit.Stage) { … } func TestChecker(t *testing.T) { … } func TestCheckerPolicyOmitStages(t *testing.T) { … } // stageEqual returns true if s1 and s2 are super set of each other func stageEqual(s1, s2 []audit.Stage) bool { … } func TestUnionStages(t *testing.T) { … } func TestOmitManagedFields(t *testing.T) { … }