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

Function TEST

cpp/src/arrow/util/trie_test.cc:34–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32namespace internal {
33
34TEST(SmallString, Basics) {
35 using SS = SmallString<5>;
36 {
37 SS s;
38 ASSERT_EQ(s.length(), 0);
39 ASSERT_EQ(std::string_view(s), std::string_view(""));
40 ASSERT_EQ(s, "");
41 ASSERT_NE(s, "x");
42 ASSERT_EQ(sizeof(s), 6);
43 }
44 {
45 SS s("abc");
46 ASSERT_EQ(s.length(), 3);
47 ASSERT_EQ(std::string_view(s), std::string_view("abc"));
48 ASSERT_EQ(std::memcmp(s.data(), "abc", 3), 0);
49 ASSERT_EQ(s, "abc");
50 ASSERT_NE(s, "ab");
51 }
52}
53
54TEST(SmallString, Assign) {
55 using SS = SmallString<5>;

Callers

nothing calls this directly

Calls 9

TestTrieContentsFunction · 0.85
substrMethod · 0.80
AllNullsFunction · 0.70
lengthMethod · 0.45
dataMethod · 0.45
FinishMethod · 0.45
ValidateMethod · 0.45
FindMethod · 0.45
AppendMethod · 0.45

Tested by

no test coverage detected