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

Function createTestTag

tag_test.go:179–191  ·  view source on GitHub ↗
(t *testing.T, repo *Repository, commit *Commit)

Source from the content-addressed store, hash-verified

177}
178
179func createTestTag(t *testing.T, repo *Repository, commit *Commit) *Oid {
180 loc, err := time.LoadLocation("Europe/Berlin")
181 checkFatal(t, err)
182 sig := &Signature{
183 Name: "Rand Om Hacker",
184 Email: "random@hacker.com",
185 When: time.Date(2013, 03, 06, 14, 30, 0, 0, loc),
186 }
187
188 tagId, err := repo.Tags.Create("v0.0.0", commit, sig, "This is a tag")
189 checkFatal(t, err)
190 return tagId
191}
192
193func createTag(t *testing.T, repo *Repository, commit *Commit, name, message string) *Oid {
194 loc, err := time.LoadLocation("Europe/Bucharest")

Callers 3

TestCreateTagFunction · 0.85
TestDescribeCommitFunction · 0.85
TestObjectPeelFunction · 0.85

Calls 2

checkFatalFunction · 0.85
CreateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…