(t *testing.T, config func(*mockGitClient))
| 576 | } |
| 577 | |
| 578 | func newMockGitClient(t *testing.T, config func(*mockGitClient)) *mockGitClient { |
| 579 | t.Helper() |
| 580 | m := &mockGitClient{} |
| 581 | m.Test(t) |
| 582 | t.Cleanup(func() { |
| 583 | t.Helper() |
| 584 | m.AssertExpectations(t) |
| 585 | }) |
| 586 | if config != nil { |
| 587 | config(m) |
| 588 | } |
| 589 | return m |
| 590 | } |
no test coverage detected