aboutsummaryrefslogtreecommitdiffstats
path: root/repository/repo_testing.go
diff options
context:
space:
mode:
Diffstat (limited to 'repository/repo_testing.go')
-rw-r--r--repository/repo_testing.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/repository/repo_testing.go b/repository/repo_testing.go
index cfa26631..b1f47396 100644
--- a/repository/repo_testing.go
+++ b/repository/repo_testing.go
@@ -157,6 +157,11 @@ func RepoDataTest(t *testing.T, repo RepoData) {
require.NoError(t, err)
require.Equal(t, treeHash2, treeHash2Read)
+ // ReadTree should accept tree and commit hashes
+ tree1read, err := repo.ReadTree(commit1)
+ require.NoError(t, err)
+ require.Equal(t, tree1read, tree1)
+
// Ref
exist1, err := repo.RefExist("refs/bugs/ref1")