/Zephyr-latest/tests/subsys/zbus/publish_stats/src/ |
D | main.c | 36 zassert_within(k_uptime_ticks(), zbus_chan_pub_stats_last_time(&chan), clock_window); in ZTEST() 37 zassert_within(1000, zbus_chan_pub_stats_avg_period(&chan), 50); in ZTEST() 46 zassert_within(pub_time, zbus_chan_pub_stats_last_time(&chan), clock_window); in ZTEST() 47 zassert_within(400, zbus_chan_pub_stats_avg_period(&chan), 50); in ZTEST() 58 zassert_within(pub_time, zbus_chan_pub_stats_last_time(&chan), clock_window); in ZTEST() 65 zassert_within(pub_time, zbus_chan_pub_stats_last_time(&chan), clock_window); in ZTEST() 75 zassert_within(pub_time, zbus_chan_pub_stats_last_time(&chan), clock_window); in ZTEST() 76 zassert_within(500, zbus_chan_pub_stats_avg_period(&chan), 50); in ZTEST()
|
/Zephyr-latest/tests/arch/common/timing/src/ |
D | main.c | 53 zassert_within(diff1, diff2, diff1 * TOLERANCE, NULL); in perform_tests() 54 zassert_within(diff_all, diff1 + diff2, (diff1 + diff2) * TOLERANCE, in perform_tests() 66 zassert_within(diff1_ns, WAIT_NS, WAIT_NS * TOLERANCE, NULL); in perform_tests() 67 zassert_within(diff2_ns, WAIT_NS, WAIT_NS * TOLERANCE, NULL); in perform_tests() 68 zassert_within(diff_all_ns, 2 * WAIT_NS, 2 * WAIT_NS * TOLERANCE, NULL); in perform_tests() 71 zassert_within(diff_avg_ns, WAIT_NS, WAIT_NS * TOLERANCE, NULL); in perform_tests()
|
/Zephyr-latest/tests/drivers/sensor/icm42688/src/ |
D | main.c | 77 zassert_within(expected_uc, actual_uc, INT64_C(5000), in test_fetch_temp_mc() 120 zassert_within(expect_ug, actual_ug, INT32_C(5000), in test_fetch_accel_with_range() 125 zassert_within(expect_ug, actual_ug, INT32_C(5000), in test_fetch_accel_with_range() 130 zassert_within(expect_ug, actual_ug, INT32_C(5000), in test_fetch_accel_with_range() 182 zassert_within(expect_10udps, actual_10udps, epsilon_10udps, in test_fetch_gyro_with_range() 189 zassert_within(expect_10udps, actual_10udps, epsilon_10udps, in test_fetch_gyro_with_range() 196 zassert_within(expect_10udps, actual_10udps, epsilon_10udps, in test_fetch_gyro_with_range()
|
/Zephyr-latest/tests/drivers/sensor/akm09918c/src/ |
D | main.c | 75 zassert_within(expect_ugauss, actual_ugauss, INT64_C(5), in test_fetch_magnetic_field() 81 zassert_within(expect_ugauss, actual_ugauss, INT64_C(5), in test_fetch_magnetic_field() 87 zassert_within(expect_ugauss, actual_ugauss, INT64_C(5), in test_fetch_magnetic_field()
|
/Zephyr-latest/tests/kernel/threads/no-multithreading/src/ |
D | main.c | 30 zassert_within(diff, 10, 2); in ZTEST() 75 zassert_within(diff, 10, 2, "Unexpected time passed: %d ms", (int)diff); in ZTEST()
|
/Zephyr-latest/tests/subsys/pm/policy_api/src/ |
D | main.c | 324 zassert_within(pm_policy_next_event_ticks(), 100, 50); in ZTEST() 326 zassert_within(pm_policy_next_event_ticks(), 2000, 50); in ZTEST() 330 zassert_within(pm_policy_next_event_ticks(), 2000, 50); in ZTEST() 332 zassert_within(pm_policy_next_event_ticks(), 100, 50); in ZTEST() 334 zassert_within(pm_policy_next_event_ticks(), 200, 50); in ZTEST()
|
/Zephyr-latest/tests/drivers/adc/adc_rescale/src/ |
D | main.c | 81 zassert_within(calculated_voltage, input_mv * 2, MV_OUTPUT_EPS, in test_task_voltage_divider() 120 zassert_within(calculated_current, input_mv * 2, MV_OUTPUT_EPS, in test_task_current_sense_shunt() 160 zassert_within(calculated_current, input_mv * 2, MV_OUTPUT_EPS, in test_task_current_sense_amplifier()
|
/Zephyr-latest/tests/subsys/lorawan/clock_sync/src/ |
D | main.c | 84 zassert_within((int)device_time, k_uptime_seconds(), 1); in ZTEST() 93 zassert_within(gps_time, k_uptime_seconds() + 1000, 1); in ZTEST() 121 zassert_within(device_time, gps_time, 1); in ZTEST()
|
/Zephyr-latest/tests/lib/devicetree/api/src/ |
D | main.c | 3414 zassert_within(DT_STRING_UNQUOTED(DT_NODELABEL(test_str_unquoted_f0), val), in ZTEST() 3416 zassert_within(DT_STRING_UNQUOTED(DT_NODELABEL(test_str_unquoted_f1), val), in ZTEST() 3418 zassert_within(DT_STRING_UNQUOTED(DT_NODELABEL(test_str_unquoted_t), val), in ZTEST() 3420 zassert_within(DT_STRING_UNQUOTED(DT_NODELABEL(test_str_unquoted_esc_t), val), XA XPLUS XB, in ZTEST() 3425 zassert_within(DT_STRING_UNQUOTED_OR(DT_NODELABEL(test_str_unquoted_f0), val, (0.0)), in ZTEST() 3427 zassert_within(DT_STRING_UNQUOTED_OR(DT_NODELABEL(test_str_unquoted_f1), val, (0.0)), in ZTEST() 3429 zassert_within(DT_STRING_UNQUOTED_OR(DT_NODELABEL(test_str_unquoted_t), val, (0.0)), in ZTEST() 3431 zassert_within(DT_STRING_UNQUOTED_OR(DT_NODELABEL(test_str_unquoted_esc_t), val, (0.0)), in ZTEST() 3435 zassert_within(DT_STRING_UNQUOTED_OR(DT_NODELABEL(test_str_unquoted_f0), nak, (0.0)), in ZTEST() 3437 zassert_within(DT_STRING_UNQUOTED_OR(DT_NODELABEL(test_str_unquoted_f1), nak, (0.0)), in ZTEST() [all …]
|
/Zephyr-latest/tests/drivers/adc/adc_accuracy_test/src/ |
D | ref_volt.c | 36 zassert_within(sample_buffer, REF_V, EXP_ACC, in test_ref_to_adc()
|
D | dac_source.c | 63 zassert_within(sample_buffer, in test_dac_to_adc()
|
/Zephyr-latest/tests/drivers/pwm/pwm_loopback/src/ |
D | test_pwm_loopback.c | 98 zassert_within(period_capture, period, period / 100, in test_capture() 103 zassert_within(pulse_capture, pulse, pulse / 100, in test_capture() 274 zassert_within(usec, TEST_PWM_PULSE_USEC, TEST_PWM_PULSE_USEC / 100, in ZTEST() 277 zassert_within(usec, TEST_PWM_PERIOD_USEC, TEST_PWM_PERIOD_USEC / 100, in ZTEST()
|
/Zephyr-latest/tests/ztest/ztress/src/ |
D | main.c | 43 zassert_within(d, 1000, 200); in ZTEST() 57 zassert_within(d, timeout + 500, 500); in ZTEST()
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/os_mgmt_info/src/ |
D | build_date.c | 146 zassert_within(expected_time_seconds, received_time_seconds, TIME_DIFFERENCE_ALLOWANCE, in ZTEST() 243 zassert_within(expected_time_seconds, received_time_seconds, TIME_DIFFERENCE_ALLOWANCE, in ZTEST()
|
/Zephyr-latest/tests/drivers/sensor/hc-sr04/src/ |
D | main.c | 28 zassert_within(value.val2, value2, 10000, "incorrect measurement for value.val2"); \
|
/Zephyr-latest/tests/drivers/dac/dac_loopback/src/ |
D | test_dac.c | 252 zassert_within(m_sample_buffer[0], in test_task_loopback()
|
/Zephyr-latest/tests/posix/common/src/ |
D | timer.c | 80 zassert_within(exp_count, expected_signal_count, 1, in test_timer()
|
/Zephyr-latest/tests/drivers/can/timing/src/ |
D | main.c | 133 zassert_within(sp, sp_calc, sp_margin, in assert_sp_within_margin()
|
/Zephyr-latest/tests/drivers/build_all/sensor/src/ |
D | generic_test.c | 256 zassert_within(expected_shifted, actual_shifted, epsilon_shifted, in run_generic_test()
|
/Zephyr-latest/tests/net/lib/lwm2m/lwm2m_registry/src/ |
D | lwm2m_registry.c | 245 zassert_within(dbl_buf, 5.89, 0.01); in ZTEST() 259 zassert_within(dbl_buf, dbl_getbuf, 0.01); in ZTEST()
|
/Zephyr-latest/tests/boards/nrf/qdec/src/ |
D | main.c | 122 zassert_within(val.val1, expected_reading, delta, in qenc_emulate_verify_reading()
|
/Zephyr-latest/subsys/testsuite/ztest/include/zephyr/ |
D | ztest_assert.h | 354 #define zassert_within(a, b, d, ...) \ macro
|
/Zephyr-latest/tests/drivers/adc/adc_emul/src/ |
D | main.c | 98 zassert_within(expected, output, MV_OUTPUT_EPS, in check_samples()
|
/Zephyr-latest/tests/lib/mpsc_pbuf/src/ |
D | main.c | 1033 zassert_within(t, exp_wait, k_ms_to_ticks_ceil32(20)); in start_threads()
|