| 134 | } |
| 135 | |
| 136 | void 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 | |
| 148 | TEST(CelAttributeQualifierPatternTest, TestQualifierBoolMatch) { |
| 149 | auto qualifier = |
no test coverage detected