MCPcopy Create free account
hub / github.com/cli/cli / newMockGitClient

Function newMockGitClient

pkg/cmd/repo/sync/sync_test.go:768–780  ·  view source on GitHub ↗
(t *testing.T, config func(*mockGitClient))

Source from the content-addressed store, hash-verified

766}
767
768func 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}

Callers 1

Test_SyncRunFunction · 0.85

Calls 3

TestMethod · 0.80
HelperMethod · 0.65
configInterface · 0.50

Tested by

no test coverage detected