Lines Matching refs:AStruct

361 struct AStruct {
362 AStruct() : x(0), y(1.0), z(5), p(nullptr) {}
363 AStruct(const AStruct& rhs)
373 struct DerivedStruct : public AStruct {
381 Matcher<AStruct> m = Field(&AStruct::x, Ge(0));
382 Matcher<AStruct> m_with_name = Field("x", &AStruct::x, Ge(0));
384 AStruct a;
394 AStruct a;
396 Matcher<AStruct> m = Field(&AStruct::y, Ge(0.0));
397 Matcher<AStruct> m_with_name = Field("y", &AStruct::y, Ge(0.0));
400 m = Field(&AStruct::y, Le(0.0));
401 m_with_name = Field("y", &AStruct::y, Le(0.0));
408 AStruct a;
410 Matcher<AStruct> m = Field(&AStruct::z, Truly(ValueIsPositive));
412 m = Field(&AStruct::z, Not(Truly(ValueIsPositive)));
419 Matcher<AStruct> m = Field(&AStruct::p, static_cast<const char*>(nullptr));
420 AStruct a;
426 m = Field(&AStruct::p, StartsWith("hi"));
435 Matcher<const AStruct&> m = Field(&AStruct::x, Ge(0));
437 AStruct a;
446 // Note that the matcher expects DerivedStruct but we say AStruct
448 Matcher<const DerivedStruct&> m = Field(&AStruct::x, Ge(0));
460 Matcher<const AStruct&> m = Field(&AStruct::x, Matcher<signed char>(Ge(0)));
462 AStruct a;
470 Matcher<const AStruct&> m = Field(&AStruct::x, Ge(0));
477 Matcher<const AStruct&> m = Field("field_name", &AStruct::x, Ge(0));
486 Matcher<const AStruct&> m = Field(&AStruct::x, Ge(0));
488 AStruct a;
492 m = Field(&AStruct::x, GreaterThan(0));
499 Matcher<const AStruct&> m = Field("field_name", &AStruct::x, Ge(0));
501 AStruct a;
505 m = Field("field_name", &AStruct::x, GreaterThan(0));
515 Matcher<const AStruct*> m = Field(&AStruct::x, Ge(0));
517 AStruct a;
525 Matcher<AStruct*> m = Field(&AStruct::x, Ge(0));
527 AStruct a;
535 Matcher<AStruct* const&> m = Field(&AStruct::x, Ge(0));
537 AStruct a;
545 Matcher<const AStruct*> m = Field(&AStruct::x, _);
552 // Note that the matcher expects DerivedStruct but we say AStruct
554 Matcher<DerivedStruct*> m = Field(&AStruct::x, Ge(0));
564 Matcher<const AStruct*> m = Field(&AStruct::x, Ge(0));
571 Matcher<const AStruct*> m = Field("field_name", &AStruct::x, Ge(0));
580 Matcher<const AStruct*> m = Field(&AStruct::x, Ge(0));
582 AStruct a;
584 EXPECT_EQ("", Explain(m, static_cast<const AStruct*>(nullptr)));
588 m = Field(&AStruct::x, GreaterThan(0));
595 Matcher<const AStruct*> m = Field("field_name", &AStruct::x, Ge(0));
597 AStruct a;
599 EXPECT_EQ("", Explain(m, static_cast<const AStruct*>(nullptr)));
604 m = Field("field_name", &AStruct::x, GreaterThan(0));