MCPcopy Create free account
hub / github.com/apache/brpc / TEST

Function TEST

test/recordio_unittest.cpp:75–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73};
74
75TEST(RecordIOTest, empty_record) {
76 butil::Record r;
77 ASSERT_EQ((size_t)0, r.MetaCount());
78 ASSERT_TRUE(r.Meta("foo") == NULL);
79 ASSERT_FALSE(r.RemoveMeta("foo"));
80 ASSERT_TRUE(r.Payload().empty());
81 ASSERT_TRUE(r.MutablePayload()->empty());
82}
83
84TEST(RecordIOTest, manipulate_record) {
85 butil::Record r1;

Callers

nothing calls this directly

Calls 15

rand_stringFunction · 0.85
string_printfFunction · 0.85
fast_rand_less_thanFunction · 0.85
WriteFileFunction · 0.85
MetaCountMethod · 0.80
MetaMethod · 0.80
RemoveMetaMethod · 0.80
MutablePayloadMethod · 0.80
MutableMetaMethod · 0.80
ReadNextMethod · 0.80
last_errorMethod · 0.80
offsetMethod · 0.80

Tested by

no test coverage detected