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

Method SetUpTest

plumbing/format/packfile/encoder_test.go:26–30  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

24var _ = Suite(&EncoderSuite{})
25
26func (s *EncoderSuite) SetUpTest(c *C) {
27 s.buf = bytes.NewBuffer(nil)
28 s.store = memory.NewStorage()
29 s.enc = NewEncoder(s.buf, s.store, false)
30}
31
32func (s *EncoderSuite) TestCorrectPackHeader(c *C) {
33 h, err := s.enc.Encode([]plumbing.Hash{}, 10)

Callers

nothing calls this directly

Calls 2

NewStorageFunction · 0.92
NewEncoderFunction · 0.70

Tested by

no test coverage detected