MCPcopy
hub / github.com/cli/cli / newMockGitClient

Function newMockGitClient

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

Source from the content-addressed store, hash-verified

576}
577
578func 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}

Callers 1

Test_SyncRunFunction · 0.85

Calls 3

configInterface · 0.85
TestMethod · 0.80
HelperMethod · 0.65

Tested by

no test coverage detected