MCPcopy
hub / github.com/github/git-sizer / Repository

Method Repository

internal/testutils/repoutils.go:90–96  ·  view source on GitHub ↗

Repository returns a `*git.Repository` for `repo`.

(t *testing.T)

Source from the content-addressed store, hash-verified

88
89// Repository returns a `*git.Repository` for `repo`.
90func (repo *TestRepo) Repository(t *testing.T) *git.Repository {
91 t.Helper()
92
93 r, err := git.NewRepository(repo.Path)
94 require.NoError(t, err)
95 return r
96}
97
98// localEnvVars is a list of the variable names that should be cleared
99// to give Git a clean environment.

Callers 4

TestBombFunction · 0.95
TestTaggedTagsFunction · 0.95
TestFromSubdirFunction · 0.95
TestSubmoduleFunction · 0.95

Calls 1

NewRepositoryFunction · 0.92

Tested by 4

TestBombFunction · 0.76
TestTaggedTagsFunction · 0.76
TestFromSubdirFunction · 0.76
TestSubmoduleFunction · 0.76