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."""
280 // %(Arity)s predicate assertion macros.
319 the predicate assertions."""
376 // This is intended as a regression test for the Google Test predicate
414 """Returns the tests for n-ary predicate assertions."""
432 """// Sample functions/functors for testing %(arity)s predicate assertions.
434 // A %(arity)s predicate function.
452 // A %(arity)s predicate functor.
467 // A %(arity)s predicate-formatter function.
494 // A %(arity)s predicate-formatter functor.
514 class Predicate%(n)sTest : public testing::Test {
527 // Verifies that each of the predicate
532 "The predicate assertion didn't evaluate argument %s "
539 FAIL() << "The predicate assertion unexpactedly aborted the test.";
541 FAIL() << "The failed predicate assertion didn't abort the test "
559 bool Predicate%(n)sTest::expected_to_finish_;
560 bool Predicate%(n)sTest::finished_;
563 tests += Iter(n, """int Predicate%%(n)sTest::n%s_;
567 typedef Predicate%(n)sTest EXPECT_PRED_FORMAT%(n)sTest;
568 typedef Predicate%(n)sTest ASSERT_PRED_FORMAT%(n)sTest;
569 typedef Predicate%(n)sTest EXPECT_PRED%(n)sTest;
570 typedef Predicate%(n)sTest ASSERT_PRED%(n)sTest;
575 """Returns the test for a predicate assertion macro.
583 use_user_type: true iff the predicate functor/function takes
662 // predicate-formatter is a %(pf_type)s on a %(arg_type)s.
710 """Returns the tests for up-to n-ary predicate assertions."""