Searched refs:predicate (Results 1 – 8 of 8) sorted by relevance
51 if (suite->predicate != NULL) { in z_ztest_should_suite_run()52 run_suite = suite->predicate(state); in z_ztest_should_suite_run()
127 } else if (suite->predicate != NULL) { in z_ztest_should_suite_run()128 run_suite = suite->predicate(state); in z_ztest_should_suite_run()
217 } else if (suite->predicate != NULL) { in z_ztest_should_suite_run()218 run_suite = suite->predicate(state); in z_ztest_should_suite_run()
207 const ztest_suite_predicate_t predicate; member242 .predicate = PREDICATE, \
20 * :c:type:`ztest_suite_predicate_t` - An optional predicate function to allow choosing when the21 test will run. The predicate will get a pointer to the global state passed in through32 Below is an example of a test suite using a predicate:39 static bool predicate(const void *global_state)44 ZTEST_SUITE(alternating_suite, predicate, NULL, NULL, NULL, NULL);188 using the ``predicate`` to control when it would run. In that case, the :c:func:`test_main`201 /* Only suites that use a predicate checking for phase == PWR_PHASE_0 will run. */205 /* Only suites that use a predicate checking for phase == PWR_PHASE_1 will run. */209 /* Only suites that use a predicate checking for phase == PWR_PHASE_2 will run. */
19 within an rbtree must be provided as a predicate function by the user.40 predicate, :c:func:`rb_contains`, which returns a boolean True if the
106 or by testing the :c:func:`ring_buf_is_empty` predicate.
300 for each CPU. This makes the internal predicate test for "_is_idle()"