Lines Matching refs:zassert_equal

43 	zassert_equal(ret, -ENOSYS);  in ZTEST()
52 zassert_equal(regulator_parent_dvs_state_set(parent, 0U), 0); in ZTEST()
53 zassert_equal(regulator_parent_fake_dvs_state_set_fake.arg0_val, parent); in ZTEST()
54 zassert_equal(regulator_parent_fake_dvs_state_set_fake.arg1_val, 0U); in ZTEST()
55 zassert_equal(regulator_parent_fake_dvs_state_set_fake.call_count, 1U); in ZTEST()
64 zassert_equal(regulator_parent_dvs_state_set(parent, 0U), -ENOTSUP); in ZTEST()
65 zassert_equal(regulator_parent_fake_dvs_state_set_fake.arg0_val, parent); in ZTEST()
66 zassert_equal(regulator_parent_fake_dvs_state_set_fake.arg1_val, 0U); in ZTEST()
67 zassert_equal(regulator_parent_fake_dvs_state_set_fake.call_count, 1U); in ZTEST()
74 zassert_equal(ret, -ENOSYS); in ZTEST()
83 zassert_equal(regulator_parent_ship_mode(parent), 0); in ZTEST()
84 zassert_equal(regulator_parent_fake_ship_mode_fake.arg0_val, parent); in ZTEST()
85 zassert_equal(regulator_parent_fake_ship_mode_fake.call_count, 1U); in ZTEST()
94 zassert_equal(regulator_parent_ship_mode(parent), -ENOTSUP); in ZTEST()
95 zassert_equal(regulator_parent_fake_ship_mode_fake.arg0_val, parent); in ZTEST()
96 zassert_equal(regulator_parent_fake_ship_mode_fake.call_count, 1U); in ZTEST()
105 zassert_equal(config->min_uv, INT32_MIN); in ZTEST()
106 zassert_equal(config->max_uv, INT32_MAX); in ZTEST()
107 zassert_equal(config->min_ua, INT32_MIN); in ZTEST()
108 zassert_equal(config->max_ua, INT32_MAX); in ZTEST()
109 zassert_equal(config->allowed_modes_cnt, 0U); in ZTEST()
110 zassert_equal(config->initial_mode, REGULATOR_INITIAL_MODE_UNKNOWN); in ZTEST()
111 zassert_equal(REGULATOR_ACTIVE_DISCHARGE_GET_BITS(config->flags), in ZTEST()
116 zassert_equal(config->flags & REGULATOR_ALWAYS_ON, REGULATOR_ALWAYS_ON); in ZTEST()
120 zassert_equal(config->flags & REGULATOR_BOOT_ON, REGULATOR_BOOT_ON); in ZTEST()
124 zassert_equal(config->min_uv, 100); in ZTEST()
125 zassert_equal(config->max_uv, 200); in ZTEST()
126 zassert_equal(config->min_ua, 100); in ZTEST()
127 zassert_equal(config->max_ua, 200); in ZTEST()
128 zassert_equal(config->allowed_modes[0], 1U); in ZTEST()
129 zassert_equal(config->allowed_modes[1], 10U); in ZTEST()
130 zassert_equal(config->allowed_modes_cnt, 2U); in ZTEST()
131 zassert_equal(REGULATOR_ACTIVE_DISCHARGE_GET_BITS(config->flags), 1U); in ZTEST()
135 zassert_equal(config->flags & REGULATOR_BOOT_OFF, REGULATOR_BOOT_OFF); in ZTEST()
154 zassert_equal(regulator_enable(reg1), 0); in ZTEST()
155 zassert_equal(regulator_fake_enable_fake.call_count, 0U); in ZTEST()
158 zassert_equal(regulator_disable(reg1), 0); in ZTEST()
159 zassert_equal(regulator_fake_disable_fake.call_count, 0U); in ZTEST()
162 zassert_equal(regulator_disable(reg2), 0); in ZTEST()
163 zassert_equal(regulator_fake_disable_fake.arg0_val, reg2); in ZTEST()
164 zassert_equal(regulator_fake_disable_fake.call_count, 1U); in ZTEST()
167 zassert_equal(regulator_enable(reg2), 0); in ZTEST()
168 zassert_equal(regulator_fake_enable_fake.arg0_val, reg2); in ZTEST()
169 zassert_equal(regulator_fake_enable_fake.call_count, 1U); in ZTEST()
172 zassert_equal(regulator_enable(reg0), 0); in ZTEST()
173 zassert_equal(regulator_fake_enable_fake.arg0_val, reg0); in ZTEST()
174 zassert_equal(regulator_fake_enable_fake.call_count, 2U); in ZTEST()
177 zassert_equal(regulator_disable(reg0), 0); in ZTEST()
178 zassert_equal(regulator_fake_disable_fake.arg0_val, reg0); in ZTEST()
179 zassert_equal(regulator_fake_disable_fake.call_count, 2U); in ZTEST()
182 zassert_equal(regulator_enable(reg5), 0); in ZTEST()
183 zassert_equal(regulator_fake_enable_fake.call_count, 3U); in ZTEST()
186 zassert_equal(regulator_disable(reg5), 0); in ZTEST()
187 zassert_equal(regulator_fake_disable_fake.call_count, 3U); in ZTEST()
194 zassert_equal(count, 0U); in ZTEST()
203 zassert_equal(regulator_count_voltages(reg0), 10U); in ZTEST()
204 zassert_equal(regulator_fake_count_voltages_fake.arg0_val, reg0); in ZTEST()
205 zassert_equal(regulator_fake_count_voltages_fake.call_count, 1U); in ZTEST()
212 zassert_equal(ret, -EINVAL); in ZTEST()
233 zassert_equal(regulator_list_voltage(reg0, 0, &volt_uv), 0); in ZTEST()
234 zassert_equal(volt_uv, 100); in ZTEST()
235 zassert_equal(regulator_fake_list_voltage_fake.call_count, 1U); in ZTEST()
236 zassert_equal(regulator_fake_list_voltage_fake.arg0_val, reg0); in ZTEST()
237 zassert_equal(regulator_fake_list_voltage_fake.arg1_val, 0); in ZTEST()
238 zassert_equal(regulator_fake_list_voltage_fake.arg2_val, &volt_uv); in ZTEST()
256 zassert_equal(regulator_list_voltage(reg0, 0, NULL), -EINVAL); in ZTEST()
257 zassert_equal(regulator_fake_list_voltage_fake.call_count, 1U); in ZTEST()
258 zassert_equal(regulator_fake_list_voltage_fake.arg0_val, reg0); in ZTEST()
259 zassert_equal(regulator_fake_list_voltage_fake.arg1_val, 0); in ZTEST()
260 zassert_equal(regulator_fake_list_voltage_fake.arg2_val, NULL); in ZTEST()
333 zassert_equal(ret, -ENOSYS); in ZTEST()
342 zassert_equal(regulator_set_voltage(reg0, 0, 0), 0); in ZTEST()
343 zassert_equal(regulator_fake_set_voltage_fake.arg0_val, reg0); in ZTEST()
344 zassert_equal(regulator_fake_set_voltage_fake.arg1_val, 0); in ZTEST()
345 zassert_equal(regulator_fake_set_voltage_fake.arg2_val, 0); in ZTEST()
346 zassert_equal(regulator_fake_set_voltage_fake.call_count, 1U); in ZTEST()
355 zassert_equal(regulator_set_voltage(reg0, 0, 0), -EINVAL); in ZTEST()
356 zassert_equal(regulator_fake_set_voltage_fake.arg0_val, reg0); in ZTEST()
357 zassert_equal(regulator_fake_set_voltage_fake.arg1_val, 0); in ZTEST()
358 zassert_equal(regulator_fake_set_voltage_fake.arg2_val, 0); in ZTEST()
359 zassert_equal(regulator_fake_set_voltage_fake.call_count, 1U); in ZTEST()
368 zassert_equal(regulator_set_voltage(reg3, 300, 400), -EINVAL); in ZTEST()
369 zassert_equal(regulator_fake_set_voltage_fake.call_count, 0U); in ZTEST()
376 zassert_equal(ret, -ENOSYS); in ZTEST()
396 zassert_equal(regulator_get_voltage(reg0, &volt_uv), 0); in ZTEST()
397 zassert_equal(volt_uv, 100); in ZTEST()
398 zassert_equal(regulator_fake_get_voltage_fake.call_count, 1U); in ZTEST()
399 zassert_equal(regulator_fake_get_voltage_fake.arg0_val, reg0); in ZTEST()
400 zassert_equal(regulator_fake_get_voltage_fake.arg1_val, &volt_uv); in ZTEST()
417 zassert_equal(regulator_get_voltage(reg0, NULL), -EIO); in ZTEST()
418 zassert_equal(regulator_fake_get_voltage_fake.call_count, 1U); in ZTEST()
419 zassert_equal(regulator_fake_get_voltage_fake.arg0_val, reg0); in ZTEST()
420 zassert_equal(regulator_fake_get_voltage_fake.arg1_val, NULL); in ZTEST()
427 zassert_equal(ret, -ENOSYS); in ZTEST()
436 zassert_equal(regulator_set_current_limit(reg0, 0, 0), 0); in ZTEST()
437 zassert_equal(regulator_fake_set_current_limit_fake.arg0_val, reg0); in ZTEST()
438 zassert_equal(regulator_fake_set_current_limit_fake.arg1_val, 0); in ZTEST()
439 zassert_equal(regulator_fake_set_current_limit_fake.arg2_val, 0); in ZTEST()
440 zassert_equal(regulator_fake_set_current_limit_fake.call_count, 1U); in ZTEST()
449 zassert_equal(regulator_set_current_limit(reg0, 0, 0), -EINVAL); in ZTEST()
450 zassert_equal(regulator_fake_set_current_limit_fake.arg0_val, reg0); in ZTEST()
451 zassert_equal(regulator_fake_set_current_limit_fake.arg1_val, 0); in ZTEST()
452 zassert_equal(regulator_fake_set_current_limit_fake.arg2_val, 0); in ZTEST()
453 zassert_equal(regulator_fake_set_current_limit_fake.call_count, 1U); in ZTEST()
462 zassert_equal(regulator_set_current_limit(reg3, 300, 400), -EINVAL); in ZTEST()
463 zassert_equal(regulator_fake_set_current_limit_fake.call_count, 0U); in ZTEST()
470 zassert_equal(ret, -ENOSYS); in ZTEST()
490 zassert_equal(regulator_get_current_limit(reg0, &curr_ua), 0); in ZTEST()
491 zassert_equal(curr_ua, 100); in ZTEST()
492 zassert_equal(regulator_fake_get_current_limit_fake.call_count, 1U); in ZTEST()
493 zassert_equal(regulator_fake_get_current_limit_fake.arg0_val, reg0); in ZTEST()
494 zassert_equal(regulator_fake_get_current_limit_fake.arg1_val, &curr_ua); in ZTEST()
511 zassert_equal(regulator_get_current_limit(reg0, NULL), -EIO); in ZTEST()
512 zassert_equal(regulator_fake_get_current_limit_fake.call_count, 1U); in ZTEST()
513 zassert_equal(regulator_fake_get_current_limit_fake.arg0_val, reg0); in ZTEST()
514 zassert_equal(regulator_fake_get_current_limit_fake.arg1_val, NULL); in ZTEST()
521 zassert_equal(ret, -ENOSYS); in ZTEST()
530 zassert_equal(regulator_set_mode(reg0, 0), 0); in ZTEST()
531 zassert_equal(regulator_set_mode(reg0, 1), 0); in ZTEST()
532 zassert_equal(regulator_set_mode(reg0, 10), 0); in ZTEST()
533 zassert_equal(regulator_fake_set_mode_fake.call_count, 3U); in ZTEST()
542 zassert_equal(regulator_set_mode(reg0, 0), -ENOTSUP); in ZTEST()
543 zassert_equal(regulator_fake_set_mode_fake.arg0_val, reg0); in ZTEST()
544 zassert_equal(regulator_fake_set_mode_fake.arg1_val, 0); in ZTEST()
545 zassert_equal(regulator_fake_set_mode_fake.call_count, 1U); in ZTEST()
554 zassert_equal(regulator_set_mode(reg3, 0), -ENOTSUP); in ZTEST()
555 zassert_equal(regulator_set_mode(reg3, 1), 0); in ZTEST()
556 zassert_equal(regulator_set_mode(reg3, 10), 0); in ZTEST()
557 zassert_equal(regulator_fake_set_mode_fake.call_count, 2U); in ZTEST()
564 zassert_equal(ret, -ENOSYS); in ZTEST()
571 zassert_equal(ret, -ENOSYS); in ZTEST()
591 zassert_equal(regulator_get_active_discharge(reg0, &active_discharge), false); in ZTEST()
592 zassert_equal(active_discharge, true); in ZTEST()
593 zassert_equal(regulator_fake_get_active_discharge_fake.call_count, 1U); in ZTEST()
594 zassert_equal(regulator_fake_get_active_discharge_fake.arg0_val, reg0); in ZTEST()
595 zassert_equal(regulator_fake_get_active_discharge_fake.arg1_val, &active_discharge); in ZTEST()
602 zassert_equal(ret, -ENOSYS); in ZTEST()
622 zassert_equal(regulator_get_mode(reg0, &mode), 0U); in ZTEST()
623 zassert_equal(mode, 10U); in ZTEST()
624 zassert_equal(regulator_fake_get_mode_fake.call_count, 1U); in ZTEST()
625 zassert_equal(regulator_fake_get_mode_fake.arg0_val, reg0); in ZTEST()
626 zassert_equal(regulator_fake_get_mode_fake.arg1_val, &mode); in ZTEST()
643 zassert_equal(regulator_get_mode(reg0, NULL), -EIO); in ZTEST()
644 zassert_equal(regulator_fake_get_mode_fake.call_count, 1U); in ZTEST()
645 zassert_equal(regulator_fake_get_mode_fake.arg0_val, reg0); in ZTEST()
646 zassert_equal(regulator_fake_get_mode_fake.arg1_val, NULL); in ZTEST()
653 zassert_equal(ret, -ENOSYS); in ZTEST()
673 zassert_equal(regulator_get_error_flags(reg0, &flags), 0); in ZTEST()
674 zassert_equal(flags, REGULATOR_ERROR_OVER_CURRENT); in ZTEST()
675 zassert_equal(regulator_fake_get_error_flags_fake.call_count, 1U); in ZTEST()
676 zassert_equal(regulator_fake_get_error_flags_fake.arg0_val, reg0); in ZTEST()
677 zassert_equal(regulator_fake_get_error_flags_fake.arg1_val, &flags); in ZTEST()
694 zassert_equal(err, -ENOENT); in ZTEST()
697 zassert_equal(err, 0); in ZTEST()
698 zassert_equal(max_uv, 200); in ZTEST()
707 zassert_equal(err, -ENOENT); in ZTEST()
710 zassert_equal(err, 0); in ZTEST()
711 zassert_equal(min_uv, 100); in ZTEST()
720 zassert_equal(regulator_get_error_flags(reg0, NULL), -EIO); in ZTEST()
721 zassert_equal(regulator_fake_get_error_flags_fake.call_count, 1U); in ZTEST()
722 zassert_equal(regulator_fake_get_error_flags_fake.arg0_val, reg0); in ZTEST()
723 zassert_equal(regulator_fake_get_error_flags_fake.arg1_val, NULL); in ZTEST()
737 zassert_equal(regulator_fake_enable_fake.call_count, 2U); in setup()
742 zassert_equal(regulator_fake_set_mode_fake.call_count, 1U); in setup()
748 zassert_equal(regulator_fake_disable_fake.call_count, 1U); in setup()