(t *testing.T, config func(*mockGitClient))
| 766 | } |
| 767 | |
| 768 | func newMockGitClient(t *testing.T, config func(*mockGitClient)) *mockGitClient { |
| 769 | t.Helper() |
| 770 | m := &mockGitClient{} |
| 771 | m.Test(t) |
| 772 | t.Cleanup(func() { |
| 773 | t.Helper() |
| 774 | m.AssertExpectations(t) |
| 775 | }) |
| 776 | if config != nil { |
| 777 | config(m) |
| 778 | } |
| 779 | return m |
| 780 | } |
no test coverage detected