MCPcopy Index your code
hub / github.com/go-git/go-git / TestSetEncodedObjectInvalid

Method TestSetEncodedObjectInvalid

storage/test/storage_suite.go:99–105  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

97}
98
99func (s *BaseStorageSuite) TestSetEncodedObjectInvalid(c *C) {
100 o := s.Storer.NewEncodedObject()
101 o.SetType(plumbing.REFDeltaObject)
102
103 _, err := s.Storer.SetEncodedObject(o)
104 c.Assert(err, NotNil)
105}
106
107func (s *BaseStorageSuite) TestIterEncodedObjects(c *C) {
108 for _, o := range s.testObjects {

Callers

nothing calls this directly

Calls 3

SetTypeMethod · 0.95
NewEncodedObjectMethod · 0.65
SetEncodedObjectMethod · 0.65

Tested by

no test coverage detected