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

Function TEST

cpp/src/arrow/util/string_test.cc:35–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33namespace internal {
34
35TEST(Trim, Basics) {
36 std::vector<std::pair<std::string, std::string>> test_cases = {
37 {"", ""}, {" ", ""}, {" ", ""}, {"\t ", ""},
38 {" \ta\t ", "a"}, {" \ta", "a"}, {"ab \t", "ab"}};
39 for (auto case_ : test_cases) {
40 EXPECT_EQ(case_.second, TrimString(case_.first));
41 }
42}
43
44TEST(AsciiEqualsCaseInsensitive, Basics) {
45 ASSERT_TRUE(AsciiEqualsCaseInsensitive("foo", "Foo"));

Callers

nothing calls this directly

Calls 9

TrimStringFunction · 0.85
AsciiToLowerFunction · 0.85
ParseHexValueFunction · 0.85
ReplaceFunction · 0.85
SplitStringFunction · 0.85
RegexMatchFunction · 0.85
ToCharsFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected