type fakeAuditSink … func (s *fakeAuditSink) ProcessEvents(evs ...*auditinternal.Event) bool { … } func (s *fakeAuditSink) Events() []*auditinternal.Event { … } func TestAudit(t *testing.T) { … } // testTimeout returns the minimimum of the "ForeverTestTimeout" and the testing deadline (with // cleanup time). func testTimeout(t *testing.T) time.Duration { … }