MCPcopy
hub / github.com/kubernetes/kubectl / FakeCounter

Struct FakeCounter

pkg/util/openapi/openapi_getter_test.go:31–34  ·  view source on GitHub ↗

FakeCounter returns a "null" document and the specified error. It also counts how many times the OpenAPISchema method has been called.

Source from the content-addressed store, hash-verified

29// FakeCounter returns a "null" document and the specified error. It
30// also counts how many times the OpenAPISchema method has been called.
31type FakeCounter struct {
32 Calls int
33 Err error
34}
35
36func (f *FakeCounter) OpenAPISchema() (*openapi_v2.Document, error) {
37 f.Calls = f.Calls + 1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected