29 #include <gtest/gtest.h> 43 object_match_3.
add(object_match_1);
44 object_match_3.
add(object_match_2);
58 TEST(MatchTest, SetExpression)
75 TEST(MatchTest, SetExpressionVector)
80 to_add.push_back(
"A.B.C.D");
81 to_add.push_back(
"E.F.G");
103 ObjectMatch object_match(
"this.is.a.perfect.match");
107 TEST(MatchTest, SimpleMismatch)
109 ObjectMatch object_match(
"this.is.a.perfect.match");
113 TEST(MatchTest, MultipleExpressionsMatch)
117 expressions.push_back(
"A.B.C.D");
118 expressions.push_back(
"E.F.G");
125 TEST(MatchTest, MultipleExpressionsMismatch)
129 expressions.push_back(
"A.B.C.D");
130 expressions.push_back(
"E.F.G");
149 TEST(MatchTest, WildCardMismatch)
157 TEST(MatchTest, TokensEmptyNoMatch)
std::vector< std::vector< std::string > > getExpressions()
#define EXPECT_TRUE(expr)
A macro which verifies that expr evaluates to true.
bool match(const std::string &name) const
void setExpression(const std::string &expression)
void add(const ObjectMatch &other)
#define EXPECT_FALSE(expr)
A macro which verifies that expr evaluates to false.
ObjectMatch contains a vector of expressions.
#define EXPECT_EQ(lhs, rhs)
A macro which verifies that lhs and rhs are equal to each other.