Skip to content

Commit 7067bfa

Browse files
committed
git: add 'UpdateBareRepo()' mock
The 'UpdateBareRepo()' method was added to the 'GitHelper' interface in 62f35ce (bundles: fetch changes before building incremental bundle, 2023-03-14), but the corresponding mock method was not added to 'MockGitHelper'. Add it so that 'MockGitHelper' can be used as a 'GitHelper' mock in later commits. Signed-off-by: Victoria Dye <[email protected]>
1 parent a4f4087 commit 7067bfa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/testhelpers/mocks.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,3 +224,8 @@ func (m *MockGitHelper) CloneBareRepo(ctx context.Context, url string, destinati
224224
fnArgs := m.Called(ctx, url, destination)
225225
return fnArgs.Error(0)
226226
}
227+
228+
func (m *MockGitHelper) UpdateBareRepo(ctx context.Context, repoDir string) error {
229+
fnArgs := m.Called(ctx, repoDir)
230+
return fnArgs.Error(0)
231+
}

0 commit comments

Comments
 (0)