Home | History | Annotate | Download | only in test

Lines Matching refs:IsPositive

590 static bool IsPositive(int n) { return n > 0; }
594 EXPECT_EQ(0, CountIf(v, IsPositive)); // Works for an empty container.
598 EXPECT_EQ(0, CountIf(v, IsPositive)); // Works when no value satisfies.
603 EXPECT_EQ(2, CountIf(v, IsPositive));
2379 bool IsPositive(double x) {
2397 EXPECT_PRED1((bool (*)(int))(IsPositive), 5); // NOLINT
2398 ASSERT_PRED1((bool (*)(double))(IsPositive), 6.0); // NOLINT