CreateMockDiskStore creates a mocked DiskStore for testing.
()
| 37 | |
| 38 | // CreateMockDiskStore creates a mocked DiskStore for testing. |
| 39 | func CreateMockDiskStore() *diskMocks.DiskStore { |
| 40 | diskStore := &diskMocks.DiskStore{} |
| 41 | diskStore.On("OpenLogFileForAppend", mock.Anything, mock.Anything, mock.Anything).Return(&testing.TestReadWriteCloser{}, nil) |
| 42 | return diskStore |
| 43 | } |
| 44 | |
| 45 | // CreateMockMetaStore creates a mocked MetaStore for testing. |
| 46 | func CreateMockMetaStore() *metaMocks.MetaStore { |
no outgoing calls
no test coverage detected