(c *C)
| 16 | var _ = Suite(&SuiteReader{}) |
| 17 | |
| 18 | func (s *SuiteReader) TestReadObjfile(c *C) { |
| 19 | for k, fixture := range objfileFixtures { |
| 20 | com := fmt.Sprintf("test %d: ", k) |
| 21 | hash := plumbing.NewHash(fixture.hash) |
| 22 | content, _ := base64.StdEncoding.DecodeString(fixture.content) |
| 23 | data, _ := base64.StdEncoding.DecodeString(fixture.data) |
| 24 | |
| 25 | testReader(c, bytes.NewReader(data), hash, fixture.t, content, com) |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | func testReader(c *C, source io.Reader, hash plumbing.Hash, t plumbing.ObjectType, content []byte, com string) { |
| 30 | r, err := NewReader(source) |
nothing calls this directly
no test coverage detected