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