func init() { … } func TestCreateMasterAuditPolicy(t *testing.T) { … } type auditTester … func (t *auditTester) testResources(level audit.Level, usrVerbRes ...interface{ … } func (t *auditTester) testNonResources(level audit.Level, users []user.Info, paths ...string) { … } func (t *auditTester) expectLevel(expected audit.Level, attrs authorizer.Attributes) { … } func newUserInfo(name string, groups ...string) user.Info { … } type Resource … func resource(kind string, nsGroupSub ...string) Resource { … }