diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-05-30 23:13:37 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-05-30 23:13:37 +0200 |
commit | 61c5a7b22965d8769e50b8112d018cc0c8572236 (patch) | |
tree | 17e121d66ef3f2fe3f058f391224104c4f6d46b2 /src/payload-processor/processor/mock_db.go | |
parent | rest-api: return 404 for all other routes except / (diff) | |
download | fs-tracer-backend-61c5a7b22965d8769e50b8112d018cc0c8572236.tar.gz fs-tracer-backend-61c5a7b22965d8769e50b8112d018cc0c8572236.tar.bz2 fs-tracer-backend-61c5a7b22965d8769e50b8112d018cc0c8572236.zip |
payload-processor: take a list of files
Diffstat (limited to 'src/payload-processor/processor/mock_db.go')
-rw-r--r-- | src/payload-processor/processor/mock_db.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/payload-processor/processor/mock_db.go b/src/payload-processor/processor/mock_db.go index f6347d7..ba60804 100644 --- a/src/payload-processor/processor/mock_db.go +++ b/src/payload-processor/processor/mock_db.go @@ -40,16 +40,16 @@ func (m *MockDB) EXPECT() *MockDBMockRecorder { return m.recorder } -// InsertFile mocks base method. -func (m *MockDB) InsertFile(ctx context.Context, file lib.File, user_id string) error { +// InsertFiles mocks base method. +func (m *MockDB) InsertFiles(ctx context.Context, files []lib.File, user_id string) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "InsertFile", ctx, file, user_id) + ret := m.ctrl.Call(m, "InsertFiles", ctx, files, user_id) ret0, _ := ret[0].(error) return ret0 } -// InsertFile indicates an expected call of InsertFile. -func (mr *MockDBMockRecorder) InsertFile(ctx, file, user_id any) *gomock.Call { +// InsertFiles indicates an expected call of InsertFiles. +func (mr *MockDBMockRecorder) InsertFiles(ctx, files, user_id any) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsertFile", reflect.TypeOf((*MockDB)(nil).InsertFile), ctx, file, user_id) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsertFiles", reflect.TypeOf((*MockDB)(nil).InsertFiles), ctx, files, user_id) } |