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

Function cleanupTestRepo

git_test.go:49–59  ·  view source on GitHub ↗
(t *testing.T, r *Repository)

Source from the content-addressed store, hash-verified

47}
48
49func cleanupTestRepo(t *testing.T, r *Repository) {
50 var err error
51 if r.IsBare() {
52 err = os.RemoveAll(r.Path())
53 } else {
54 err = os.RemoveAll(r.Workdir())
55 }
56 checkFatal(t, err)
57
58 r.Free()
59}
60
61func createTestRepo(t *testing.T) *Repository {
62 // figure out where we can create the test repo

Callers 15

TestPatchFunction · 0.85
TestBlameFunction · 0.85
TestCreateCommitBufferFunction · 0.85
TestCreateCommitFromIdsFunction · 0.85
TestRepositorySetConfigFunction · 0.85
TestRepositoryItemPathFunction · 0.85
TestRevertFunction · 0.85
TestRevertCommitFunction · 0.85
TestCreateNoteFunction · 0.85
TestNoteIteratorFunction · 0.85
TestRemoveNoteFunction · 0.85
TestDefaultNoteRefFunction · 0.85

Calls 6

checkFatalFunction · 0.85
IsBareMethod · 0.80
RemoveAllMethod · 0.80
WorkdirMethod · 0.80
FreeMethod · 0.65
PathMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…