Home | History | Annotate | Download | only in scripts

Lines Matching defs:Predicate

34 Generates the implementation of Google Test predicate assertions and
44 predicate assertions, and writes it to file gtest_pred_impl.h in the
69 n: the maximum arity of the predicate macros to be generated.
113 // Implements a family of generic predicate assertion macros.
123 // This header implements a family of generic predicate assertion
206 """Returns the implementation of n-ary predicate assertions."""
278 // %(Arity)s predicate assertion macros.
317 the predicate assertions."""
374 // This is intended as a regression test for the Google Test predicate
412 """Returns the tests for n-ary predicate assertions."""
430 """// Sample functions/functors for testing %(arity)s predicate assertions.
432 // A %(arity)s predicate function.
450 // A %(arity)s predicate functor.
465 // A %(arity)s predicate-formatter function.
491 // A %(arity)s predicate-formatter functor.
511 class Predicate%(n)sTest : public testing::Test {
524 // Verifies that each of the predicate
529 "The predicate assertion didn't evaluate argument %s "
536 FAIL() << "The predicate assertion unexpactedly aborted the test.";
538 FAIL() << "The failed predicate assertion didn't abort the test "
556 bool Predicate%(n)sTest::expected_to_finish_;
557 bool Predicate%(n)sTest::finished_;
560 tests += Iter(n, """int Predicate%%(n)sTest::n%s_;
564 typedef Predicate%(n)sTest EXPECT_PRED_FORMAT%(n)sTest;
565 typedef Predicate%(n)sTest ASSERT_PRED_FORMAT%(n)sTest;
566 typedef Predicate%(n)sTest EXPECT_PRED%(n)sTest;
567 typedef Predicate%(n)sTest ASSERT_PRED%(n)sTest;
572 """Returns the test for a predicate assertion macro.
580 use_user_type: true iff the predicate functor/function takes
659 // predicate-formatter is a %(pf_type)s on a %(arg_type)s.
707 """Returns the tests for up-to n-ary predicate assertions."""