MCPcopy
hub / github.com/dropbox/godropbox / TestAppend

Method TestAppend

container/bitvector/bitvector_test.go:41–50  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

39}
40
41func (s *BitVectorSuite) TestAppend(c *C) {
42 for i := 0; i < 4; i++ {
43 if i%2 == 0 {
44 s.vector.Append(0)
45 } else {
46 s.vector.Append(1)
47 }
48 }
49 c.Assert(s.vector.Bytes(), DeepEquals, []byte{0xF0, 0xAF})
50}
51
52func (s *BitVectorSuite) TestSet(c *C) {
53 for i := 4; i < 8; i++ {

Callers

nothing calls this directly

Calls 2

AppendMethod · 0.65
BytesMethod · 0.65

Tested by

no test coverage detected