MCPcopy
hub / github.com/go-git/go-git / TestReadGarbage

Method TestReadGarbage

plumbing/format/objfile/reader_test.go:53–57  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

51}
52
53func (s *SuiteReader) TestReadGarbage(c *C) {
54 source := bytes.NewReader([]byte("!@#$RO!@NROSADfinq@o#irn@oirfn"))
55 _, err := NewReader(source)
56 c.Assert(err, NotNil)
57}
58
59func (s *SuiteReader) TestReadCorruptZLib(c *C) {
60 data, _ := base64.StdEncoding.DecodeString("eAFLysaalPUjBgAAAJsAHw")

Callers

nothing calls this directly

Calls 1

NewReaderFunction · 0.85

Tested by

no test coverage detected