aboutsummaryrefslogtreecommitdiffstats
path: root/repository/repo_testing.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2021-01-24 19:45:21 +0100
committerMichael Muré <batolettre@gmail.com>2021-02-14 12:19:00 +0100
commitdc5059bc3372941e2908739831188768335ac50b (patch)
tree7294aed90cf5f04809d7a99b4967b513bdb409d5 /repository/repo_testing.go
parent8d63c983c982f93cc48d3996d6bd097ddeeb327f (diff)
downloadgit-bug-dc5059bc3372941e2908739831188768335ac50b.tar.gz
entity: more progress on merging and signing
Diffstat (limited to 'repository/repo_testing.go')
-rw-r--r--repository/repo_testing.go21
1 files changed, 2 insertions, 19 deletions
diff --git a/repository/repo_testing.go b/repository/repo_testing.go
index 4a5c48bb..92aa1691 100644
--- a/repository/repo_testing.go
+++ b/repository/repo_testing.go
@@ -197,6 +197,8 @@ func RepoDataTest(t *testing.T, repo RepoData) {
err = repo.RemoveRef("refs/bugs/ref1")
require.NoError(t, err)
+
+ // TODO: testing for commit's signature
}
// helper to test a RepoClock
@@ -238,22 +240,3 @@ func randomData() []byte {
}
return b
}
-
-func makeCommit(t *testing.T, repo RepoData, parents ...Hash) Hash {
- blobHash, err := repo.StoreData(randomData())
- require.NoError(t, err)
-
- treeHash, err := repo.StoreTree([]TreeEntry{
- {
- ObjectType: Blob,
- Hash: blobHash,
- Name: "foo",
- },
- })
- require.NoError(t, err)
-
- commitHash, err := repo.StoreCommit(treeHash, parents...)
- require.NoError(t, err)
-
- return commitHash
-}