MCPcopy Create free account
hub / github.com/go-git/go-git / AssertReferencesMissing

Function AssertReferencesMissing

common_test.go:230–236  ·  view source on GitHub ↗
(c *C, r *Repository, expected []string)

Source from the content-addressed store, hash-verified

228}
229
230func AssertReferencesMissing(c *C, r *Repository, expected []string) {
231 for _, name := range expected {
232 _, err := r.Reference(plumbing.ReferenceName(name), false)
233 c.Assert(err, NotNil)
234 c.Assert(err, Equals, plumbing.ErrReferenceNotFound)
235 }
236}
237
238func CommitNewFile(c *C, repo *Repository, fileName string) plumbing.Hash {
239 wt, err := repo.Worktree()

Callers 1

TestPushFollowTagsMethod · 0.85

Calls 2

ReferenceNameTypeAlias · 0.92
ReferenceMethod · 0.65

Tested by

no test coverage detected