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

Method TestWriteVariableWidthIntShort

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

Source from the content-addressed store, hash-verified

51}
52
53func (s *BinarySuite) TestWriteVariableWidthIntShort(c *C) {
54 buf := bytes.NewBuffer(nil)
55
56 err := WriteVariableWidthInt(buf, 19)
57 c.Assert(err, IsNil)
58 c.Assert(buf.Bytes(), DeepEquals, []byte{19})
59}

Callers

nothing calls this directly

Calls 2

WriteVariableWidthIntFunction · 0.85
BytesMethod · 0.45

Tested by

no test coverage detected