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

Method TestReadVariableWidthIntShort

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

Source from the content-addressed store, hash-verified

59}
60
61func (s *BinarySuite) TestReadVariableWidthIntShort(c *C) {
62 buf := bytes.NewBuffer([]byte{19})
63
64 i, err := ReadVariableWidthInt(buf)
65 c.Assert(err, IsNil)
66 c.Assert(i, Equals, int64(19))
67}
68
69func (s *BinarySuite) TestReadVariableWidthIntOverflow(c *C) {
70 // A continuation byte every iteration accumulates 7 bits and a +1

Callers

nothing calls this directly

Calls 1

ReadVariableWidthIntFunction · 0.85

Tested by

no test coverage detected