summaryrefslogtreecommitdiff
path: root/repository_test.go
diff options
context:
space:
mode:
authorVladimir Buzuev <[email protected]>2021-04-03 16:52:34 -0700
committerGitHub <[email protected]>2021-04-03 16:52:34 -0700
commita4d202ed7b025331ee4a63ebc38f62519cee4750 (patch)
tree33e07d1de842796e2dedf47dd5380b882a88e167 /repository_test.go
parentaeb22bcf7dd6b3b8f75363a20790b84ea4d5de9f (diff)
Git repository item path (#757)
add wrapper for `git_repository_item_path`
Diffstat (limited to 'repository_test.go')
-rw-r--r--repository_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/repository_test.go b/repository_test.go
index 5a0f920..e403aa9 100644
--- a/repository_test.go
+++ b/repository_test.go
@@ -92,3 +92,14 @@ func TestRepositorySetConfig(t *testing.T) {
t.Fatal("result must be true")
}
}
+
+func TestRepositoryItemPath(t *testing.T) {
+ repo := createTestRepo(t)
+ defer cleanupTestRepo(t, repo)
+
+ gitDir, err := repo.ItemPath(RepositoryItemGitDir)
+ checkFatal(t, err)
+ if gitDir == "" {
+ t.Error("expected not empty gitDir")
+ }
+}