Lines Matching refs:simpleMatcher

120     auto simpleMatcher = matcher.mutable_simple_atom_matcher();  in TEST()  local
121 simpleMatcher->set_atom_id(TAG_ID); in TEST()
127 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
130 simpleMatcher->set_atom_id(TAG_ID + 1); in TEST()
131 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
145 auto simpleMatcher = matcher.mutable_simple_atom_matcher(); in TEST() local
146 simpleMatcher->set_atom_id(TAG_ID); in TEST()
149 auto attributionMatcher = simpleMatcher->add_field_value_matcher(); in TEST()
157 auto fieldMatcher = simpleMatcher->add_field_value_matcher(); in TEST()
162 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
165 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
168 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
172 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
175 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
179 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
182 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
185 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
188 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
191 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
198 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
208 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
219 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
222 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
225 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
228 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
231 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
236 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
239 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
242 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
245 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
250 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
253 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
256 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
259 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
269 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
274 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
279 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
284 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
289 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
294 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
301 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
306 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
311 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
316 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
321 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
326 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
333 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
338 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
343 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
348 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
353 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
358 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
374 auto simpleMatcher = matcher.mutable_simple_atom_matcher(); in TEST() local
375 simpleMatcher->set_atom_id(TAG_ID); in TEST()
376 simpleMatcher->add_field_value_matcher()->set_field(1); in TEST()
377 simpleMatcher->mutable_field_value_matcher(0)->set_eq_string("pkg0"); in TEST()
382 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event1)); in TEST()
389 simpleMatcher->set_atom_id(TAG_ID_2); in TEST()
390 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event2)); in TEST()
393 simpleMatcher->mutable_field_value_matcher(0)->set_eq_string("Pkg2"); in TEST()
394 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event2)); in TEST()
417 auto simpleMatcher = matcher.mutable_simple_atom_matcher(); in TEST() local
418 simpleMatcher->set_atom_id(TAG_ID); in TEST()
421 auto attributionMatcher = simpleMatcher->add_field_value_matcher(); in TEST()
432 auto fieldMatcher = simpleMatcher->add_field_value_matcher(); in TEST()
436 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
441 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
446 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
450 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
455 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
478 auto simpleMatcher = matcher.mutable_simple_atom_matcher(); in TEST() local
479 simpleMatcher->set_atom_id(TAG_ID); in TEST()
482 auto attributionMatcher = simpleMatcher->add_field_value_matcher(); in TEST()
493 auto fieldMatcher = simpleMatcher->add_field_value_matcher(); in TEST()
497 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
502 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
506 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
511 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
515 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
519 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
526 auto simpleMatcher = matcher.mutable_simple_atom_matcher(); in TEST() local
527 simpleMatcher->set_atom_id(TAG_ID); in TEST()
528 auto keyValue1 = simpleMatcher->add_field_value_matcher(); in TEST()
530 auto keyValue2 = simpleMatcher->add_field_value_matcher(); in TEST()
540 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
544 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
548 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
552 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
559 auto simpleMatcher = matcher.mutable_simple_atom_matcher(); in TEST() local
560 simpleMatcher->set_atom_id(TAG_ID); in TEST()
561 auto keyValue = simpleMatcher->add_field_value_matcher(); in TEST()
570 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
577 auto simpleMatcher = matcher.mutable_simple_atom_matcher(); in TEST() local
578 simpleMatcher->set_atom_id(TAG_ID); in TEST()
579 auto keyValue1 = simpleMatcher->add_field_value_matcher(); in TEST()
581 auto keyValue2 = simpleMatcher->add_field_value_matcher(); in TEST()
591 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
595 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
599 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
606 auto simpleMatcher = matcher.mutable_simple_atom_matcher(); in TEST() local
608 simpleMatcher->set_atom_id(TAG_ID); in TEST()
609 auto keyValue = simpleMatcher->add_field_value_matcher(); in TEST()
620 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
622 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
624 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
628 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
630 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
632 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
636 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
638 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
640 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
644 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
646 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
648 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
652 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
654 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
656 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
663 auto simpleMatcher = matcher.mutable_simple_atom_matcher(); in TEST() local
664 simpleMatcher->set_atom_id(TAG_ID); in TEST()
666 auto keyValue = simpleMatcher->add_field_value_matcher(); in TEST()
672 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event1)); in TEST()
676 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event2)); in TEST()
681 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event3)); in TEST()
685 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event4)); in TEST()
689 void addSimpleMatcher(SimpleAtomMatcher* simpleMatcher, int tag, int key, int val) { in addSimpleMatcher() argument
690 simpleMatcher->set_atom_id(tag); in addSimpleMatcher()
691 auto keyValue = simpleMatcher->add_field_value_matcher(); in addSimpleMatcher()