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

Function TEST_F

test/string_split_unittest.cc:43–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41};
42
43TEST_F(SplitStringIntoKeyValuePairsTest, EmptyString) {
44 EXPECT_TRUE(SplitStringIntoKeyValuePairs(std::string(),
45 ':', // Key-value delimiter
46 ',', // Key-value pair delimiter
47 &kv_pairs));
48 EXPECT_TRUE(kv_pairs.empty());
49}
50
51TEST_F(SplitStringIntoKeyValuePairsTest, MissingKeyValueDelimiter) {
52 EXPECT_FALSE(SplitStringIntoKeyValuePairs("key1,key2:value2",

Callers

nothing calls this directly

Calls 3

emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected