mockBackend 模拟后端
| 12 | |
| 13 | // mockBackend 模拟后端 |
| 14 | type mockBackend struct { |
| 15 | files map[string]string |
| 16 | shouldFail bool |
| 17 | readCalled int |
| 18 | } |
| 19 | |
| 20 | func newMockBackend() *mockBackend { |
| 21 | return &mockBackend{ |
nothing calls this directly
no outgoing calls
no test coverage detected