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

Method TestCommitIterClosePanic

repository_test.go:3064–3072  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

3062}
3063
3064func (s *RepositorySuite) TestCommitIterClosePanic(c *C) {
3065 r, _ := Init(memory.NewStorage(), nil)
3066 err := r.clone(context.Background(), &CloneOptions{URL: s.GetBasicLocalRepositoryURL()})
3067 c.Assert(err, IsNil)
3068
3069 commits, err := r.CommitObjects()
3070 c.Assert(err, IsNil)
3071 commits.Close()
3072}
3073
3074func (s *RepositorySuite) TestRef(c *C) {
3075 r, _ := Init(memory.NewStorage(), nil)

Callers

nothing calls this directly

Calls 6

NewStorageFunction · 0.92
InitFunction · 0.85
cloneMethod · 0.80
CommitObjectsMethod · 0.80
CloseMethod · 0.65

Tested by

no test coverage detected