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

Function AssertElements

test/string_split_unittest.cc:14–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace {
13
14void AssertElements(std::vector<std::string>& result,
15 const char* const expected_data[],
16 size_t data_size) {
17 ASSERT_EQ(data_size, result.size());
18 for (size_t i = 0; i < data_size; ++i) {
19 ASSERT_STREQ(expected_data[i], result[i].c_str());
20 }
21}
22
23#if !defined(WCHAR_T_IS_UTF16)
24// Overload SplitString with a wide-char version to make it easier to

Callers 1

TESTFunction · 0.85

Calls 2

sizeMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected