func TestAuthorizerMetrics(t *testing.T) { … } type fakeAuthorizerMetrics … func (f *fakeAuthorizerMetrics) RecordRequestTotal(_ context.Context, code string) { … } func (f *fakeAuthorizerMetrics) RecordRequestLatency(_ context.Context, code string, latency float64) { … } func (f *fakeAuthorizerMetrics) RecordWebhookEvaluation(ctx context.Context, name, result string) { … } func (f *fakeAuthorizerMetrics) RecordWebhookDuration(ctx context.Context, name, result string, duration float64) { … } func (f *fakeAuthorizerMetrics) RecordWebhookFailOpen(ctx context.Context, name, result string) { … }