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

Function TEST_F

cpp/src/gandiva/regex_functions_holder_test.cc:50–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48};
49
50TEST_F(TestLikeHolder, TestMatchAny) {
51 EXPECT_OK_AND_ASSIGN(const auto like_holder, LikeHolder::Make("ab%", regex_op));
52
53 auto& like = *like_holder;
54 EXPECT_TRUE(like("ab"));
55 EXPECT_TRUE(like("abc"));
56 EXPECT_TRUE(like("abcd"));
57
58 EXPECT_FALSE(like("a"));
59 EXPECT_FALSE(like("cab"));
60}
61
62TEST_F(TestLikeHolder, TestMatchOne) {
63 EXPECT_OK_AND_ASSIGN(const auto like_holder, LikeHolder::Make("ab_", regex_op));

Callers

nothing calls this directly

Calls 11

EXPECT_OK_AND_ASSIGNFunction · 0.85
FunctionNodeClass · 0.85
has_errorMethod · 0.80
MakeFunction · 0.70
ASSERT_OK_AND_ASSIGNFunction · 0.50
fieldFunction · 0.50
nameMethod · 0.45
ToStringMethod · 0.45
statusMethod · 0.45
lengthMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected