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

Function TestRevparseSingle

revparse_test.go:20–31  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

18}
19
20func TestRevparseSingle(t *testing.T) {
21 t.Parallel()
22 repo := createTestRepo(t)
23 defer cleanupTestRepo(t, repo)
24
25 commitId, _ := seedTestRepo(t, repo)
26
27 obj, err := repo.RevparseSingle("HEAD")
28 checkFatal(t, err)
29
30 checkObject(t, obj, commitId)
31}
32
33func TestRevparseExt(t *testing.T) {
34 t.Parallel()

Callers

nothing calls this directly

Calls 6

createTestRepoFunction · 0.85
cleanupTestRepoFunction · 0.85
seedTestRepoFunction · 0.85
checkFatalFunction · 0.85
checkObjectFunction · 0.85
RevparseSingleMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…