const testIssuer … func TestRecordAuthenticationLatency(t *testing.T) { … } type dummyAuthenticator … func (a *dummyAuthenticator) AuthenticateToken(ctx context.Context, token string) (*authenticator.Response, bool, error) { … } func (a *dummyAuthenticator) HealthCheck() error { … } type dummyClock … func (d dummyClock) Now() time.Time { … } func (d dummyClock) Since(t time.Time) time.Duration { … }