MCPcopy Create free account
hub / github.com/libgit2/git2go / createBareTestRepo

Function createBareTestRepo

git_test.go:76–84  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

74}
75
76func createBareTestRepo(t *testing.T) *Repository {
77 // figure out where we can create the test repo
78 path, err := ioutil.TempDir("", "git2go")
79 checkFatal(t, err)
80 repo, err := InitRepository(path, true)
81 checkFatal(t, err)
82
83 return repo
84}
85
86// commitOptions contains any extra options for creating commits in the seed repo
87type commitOptions struct {

Callers 1

TestRemotePushFunction · 0.85

Calls 2

checkFatalFunction · 0.85
InitRepositoryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…