Lines Matching refs:expectation

58 void testGamutOfOperators(const OperatorExpectation<T>& expectation) {  in testGamutOfOperators()  argument
59 switch (expectation.relation) { in testGamutOfOperators()
61 EXPECT_TRUE(expectation.obj1 == expectation.obj2); in testGamutOfOperators()
62 EXPECT_TRUE(expectation.obj1 <= expectation.obj2); in testGamutOfOperators()
63 EXPECT_TRUE(expectation.obj1 >= expectation.obj2); in testGamutOfOperators()
64 EXPECT_FALSE(expectation.obj1 != expectation.obj2); in testGamutOfOperators()
65 EXPECT_FALSE(expectation.obj1 < expectation.obj2); in testGamutOfOperators()
66 EXPECT_FALSE(expectation.obj1 > expectation.obj2); in testGamutOfOperators()
70 EXPECT_TRUE(expectation.obj1 < expectation.obj2); in testGamutOfOperators()
71 EXPECT_TRUE(expectation.obj1 <= expectation.obj2); in testGamutOfOperators()
72 EXPECT_TRUE(expectation.obj1 != expectation.obj2); in testGamutOfOperators()
73 EXPECT_FALSE(expectation.obj1 > expectation.obj2); in testGamutOfOperators()
74 EXPECT_FALSE(expectation.obj1 >= expectation.obj2); in testGamutOfOperators()
75 EXPECT_FALSE(expectation.obj1 == expectation.obj2); in testGamutOfOperators()
123 for (const auto& expectation : kExpectations) { in TEST() local
124 SCOPED_TRACE(expectation.toString()); in TEST()
125 EXPECT_NO_FATAL_FAILURE(testGamutOfOperators(expectation)); in TEST()
424 for (const auto& expectation : testExpectations) { in TEST() local
426 EXPECT_TRUE(IPAddress::forString(expectation.ip, &ip)) in TEST()
427 << "Failed to parse IP address " << expectation.ip; in TEST()
430 EXPECT_TRUE(IPAddress::forString(expectation.ipTruncated, &ipTruncated)) in TEST()
431 << "Failed to parse IP address " << expectation.ipTruncated; in TEST()
433 IPPrefix prefix(ip, expectation.cidrLen); in TEST()
435 EXPECT_EQ(expectation.cidrLen, prefix.length()) in TEST()
436 << "Unexpected cidrLen " << expectation.cidrLen; in TEST()
557 for (const auto& expectation : testExpectations) { in TEST() local
558 SCOPED_TRACE(expectation.asParameters()); in TEST()
559 IPPrefix a = IPPrefix::forString(expectation.prefix); in TEST()
560 IPPrefix b = IPPrefix::forString(expectation.otherPrefix); in TEST()
561 EXPECT_EQ(expectation.expected, a.contains(b)); in TEST()
620 for (const auto& expectation : testExpectations) { in TEST() local
621 SCOPED_TRACE(expectation.asParameters()); in TEST()
622 IPPrefix a = IPPrefix::forString(expectation.prefix); in TEST()
623 IPAddress b = IPAddress::forString(expectation.address); in TEST()
624 EXPECT_EQ(expectation.expected, a.contains(b)); in TEST()
671 for (const auto& expectation : kExpectations) { in TEST() local
672 SCOPED_TRACE(expectation.toString()); in TEST()
673 EXPECT_NO_FATAL_FAILURE(testGamutOfOperators(expectation)); in TEST()
696 for (const auto& expectation : kExpectations) { in TEST() local
697 SCOPED_TRACE(expectation.toString()); in TEST()
698 EXPECT_NO_FATAL_FAILURE(testGamutOfOperators(expectation)); in TEST()