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

Function TestDefaultNoteRef

note_test.go:91–100  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

89}
90
91func TestDefaultNoteRef(t *testing.T) {
92 t.Parallel()
93 repo := createTestRepo(t)
94 defer cleanupTestRepo(t, repo)
95
96 ref, err := repo.Notes.DefaultRef()
97 checkFatal(t, err)
98
99 compareStrings(t, "refs/notes/commits", ref)
100}
101
102func createTestNote(t *testing.T, repo *Repository, commit *Commit) (*Note, *Oid) {
103 loc, err := time.LoadLocation("Europe/Berlin")

Callers

nothing calls this directly

Calls 5

createTestRepoFunction · 0.85
cleanupTestRepoFunction · 0.85
checkFatalFunction · 0.85
compareStringsFunction · 0.85
DefaultRefMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…