(c *C)
| 73 | } |
| 74 | |
| 75 | func (s *EncoderSuite) TestMaxObjectSize(c *C) { |
| 76 | o := s.store.NewEncodedObject() |
| 77 | o.SetSize(9223372036854775807) |
| 78 | o.SetType(plumbing.CommitObject) |
| 79 | _, err := s.store.SetEncodedObject(o) |
| 80 | c.Assert(err, IsNil) |
| 81 | hash, err := s.enc.Encode([]plumbing.Hash{o.Hash()}, 10) |
| 82 | c.Assert(err, IsNil) |
| 83 | c.Assert(hash.IsZero(), Not(Equals), true) |
| 84 | } |
| 85 | |
| 86 | func (s *EncoderSuite) TestHashNotFound(c *C) { |
| 87 | h, err := s.enc.Encode([]plumbing.Hash{plumbing.NewHash("BAD")}, 10) |
nothing calls this directly
no test coverage detected