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

Function TestObjectShortId

object_test.go:119–133  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

117}
118
119func TestObjectShortId(t *testing.T) {
120 t.Parallel()
121 repo := createTestRepo(t)
122 defer cleanupTestRepo(t, repo)
123
124 commitId, _ := seedTestRepo(t, repo)
125
126 commit, err := repo.LookupCommit(commitId)
127 checkFatal(t, err)
128
129 shortId, err := commit.ShortId()
130 checkFatal(t, err)
131
132 checkShortId(t, commitId.String(), shortId)
133}
134
135func TestObjectPeel(t *testing.T) {
136 t.Parallel()

Callers

nothing calls this directly

Calls 8

createTestRepoFunction · 0.85
cleanupTestRepoFunction · 0.85
seedTestRepoFunction · 0.85
checkFatalFunction · 0.85
checkShortIdFunction · 0.85
LookupCommitMethod · 0.80
ShortIdMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…