kubernetes/staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/metrics_test.go

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) {}