Mark test helper
This commit is contained in:
parent
6136a39ed6
commit
f4bded30f8
1 changed files with 2 additions and 0 deletions
|
|
@ -465,9 +465,11 @@ func Test_SyncRun(t *testing.T) {
|
|||
}
|
||||
|
||||
func newMockGitClient(t *testing.T, config func(*mockGitClient)) *mockGitClient {
|
||||
t.Helper()
|
||||
m := &mockGitClient{}
|
||||
m.Test(t)
|
||||
t.Cleanup(func() {
|
||||
t.Helper()
|
||||
m.AssertExpectations(t)
|
||||
})
|
||||
if config != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue