MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / TEST_CASE

Function TEST_CASE

test/native/protobufBufferTest.cpp:20–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20TEST_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
30TEST_CASE(Buffer_test_varint_150) {
31 ProtoBuffer buf(100);

Callers

nothing calls this directly

Calls 7

readVarIntFunction · 0.85
startMessageMethod · 0.80
commitMessageMethod · 0.80
fieldMethod · 0.45
offsetMethod · 0.45
dataMethod · 0.45
capacityMethod · 0.45

Tested by

no test coverage detected