func TestAuthenticatorMetrics(t *testing.T) { … } type fakeAuthenticatorMetrics … func (f *fakeAuthenticatorMetrics) RequestTotal(_ context.Context, code string) { … } func (f *fakeAuthenticatorMetrics) RequestLatency(_ context.Context, code string, latency float64) { … }