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

Function TestRepositoryItemPath

repository_test.go:150–159  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

148}
149
150func TestRepositoryItemPath(t *testing.T) {
151 repo := createTestRepo(t)
152 defer cleanupTestRepo(t, repo)
153
154 gitDir, err := repo.ItemPath(RepositoryItemGitDir)
155 checkFatal(t, err)
156 if gitDir == "" {
157 t.Error("expected not empty gitDir")
158 }
159}

Callers

nothing calls this directly

Calls 5

createTestRepoFunction · 0.85
cleanupTestRepoFunction · 0.85
checkFatalFunction · 0.85
ItemPathMethod · 0.80
ErrorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…