MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / TestAllQualifierMismatches

Function TestAllQualifierMismatches

eval/public/cel_attribute_test.cc:136–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void TestAllQualifierMismatches(const CelAttributeQualifierPattern& qualifier) {
137 const std::string test = "Those are not the droids you are looking for.";
138 EXPECT_FALSE(qualifier.IsMatch(
139 CreateCelAttributeQualifier(CelValue::CreateBool(false))));
140 EXPECT_FALSE(
141 qualifier.IsMatch(CreateCelAttributeQualifier(CelValue::CreateInt64(0))));
142 EXPECT_FALSE(qualifier.IsMatch(
143 CreateCelAttributeQualifier(CelValue::CreateUint64(0))));
144 EXPECT_FALSE(qualifier.IsMatch(
145 CreateCelAttributeQualifier(CelValue::CreateString(&test))));
146}
147
148TEST(CelAttributeQualifierPatternTest, TestQualifierBoolMatch) {
149 auto qualifier =

Callers 1

TESTFunction · 0.85

Calls 2

IsMatchMethod · 0.45

Tested by

no test coverage detected