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

Method TestReadVariableWidthInt

utils/binary/read_test.go:53–59  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

51}
52
53func (s *BinarySuite) TestReadVariableWidthInt(c *C) {
54 buf := bytes.NewBuffer([]byte{129, 110})
55
56 i, err := ReadVariableWidthInt(buf)
57 c.Assert(err, IsNil)
58 c.Assert(i, Equals, int64(366))
59}
60
61func (s *BinarySuite) TestReadVariableWidthIntShort(c *C) {
62 buf := bytes.NewBuffer([]byte{19})

Callers

nothing calls this directly

Calls 1

ReadVariableWidthIntFunction · 0.85

Tested by

no test coverage detected