| 18 | } |
| 19 | |
| 20 | TEST_CASE(Buffer_test_varint_0) { |
| 21 | ProtoBuffer buf(100); |
| 22 | |
| 23 | buf.field(3, (u64)0); |
| 24 | |
| 25 | CHECK_EQ(buf.offset(), 2); |
| 26 | CHECK_EQ(buf.data()[0], (3 << 3) | VARINT); |
| 27 | CHECK_EQ(readVarInt(buf.data() + 1), 0); |
| 28 | } |
| 29 | |
| 30 | TEST_CASE(Buffer_test_varint_150) { |
| 31 | ProtoBuffer buf(100); |
nothing calls this directly
no test coverage detected