FakeCfClient is an CfDataClient for testing.
| 31 | |
| 32 | // FakeCfClient is an CfDataClient for testing. |
| 33 | type FakeCfClient struct { |
| 34 | mu gosync.Mutex |
| 35 | data map[CfDataKey]interface{} |
| 36 | needsToError bool |
| 37 | } |
| 38 | |
| 39 | // KeyFor returns a CfDataKey for the provided resource. |
| 40 | // Returns error if the resource is not a runtime.Object w/ metadata. |
nothing calls this directly
no outgoing calls
no test coverage detected