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

Function TestRevparse

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

Source from the content-addressed store, hash-verified

5)
6
7func TestRevparse(t *testing.T) {
8 t.Parallel()
9 repo := createTestRepo(t)
10 defer cleanupTestRepo(t, repo)
11
12 commitId, _ := seedTestRepo(t, repo)
13
14 revSpec, err := repo.Revparse("HEAD")
15 checkFatal(t, err)
16
17 checkObject(t, revSpec.From(), commitId)
18}
19
20func TestRevparseSingle(t *testing.T) {
21 t.Parallel()

Callers

nothing calls this directly

Calls 7

createTestRepoFunction · 0.85
cleanupTestRepoFunction · 0.85
seedTestRepoFunction · 0.85
checkFatalFunction · 0.85
checkObjectFunction · 0.85
RevparseMethod · 0.80
FromMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…