This plumbing.EncodedObject implementation has a reader that only returns 6 bytes at a time, this should simulate the conditions when a read returns less bytes than asked, for example when reading a hash which is bigger than 6 bytes.
| 179 | // returns less bytes than asked, for example when reading a hash which |
| 180 | // is bigger than 6 bytes. |
| 181 | type SortReadObject struct { |
| 182 | t plumbing.ObjectType |
| 183 | h plumbing.Hash |
| 184 | cont []byte |
| 185 | sz int64 |
| 186 | } |
| 187 | |
| 188 | func (o *SortReadObject) Hash() plumbing.Hash { return o.h } |
| 189 | func (o *SortReadObject) Type() plumbing.ObjectType { return o.t } |
nothing calls this directly
no outgoing calls
no test coverage detected