15 empty_input_string(
void **state)
20 assert_int_equal(
result, 1);
23 assert_int_equal(
result, 1);
27 input_below_minimum(
void **state)
32 assert_int_equal(
result, 1024);
36 input_above_maximum(
void **state)
41 assert_int_equal(
result, INT_MAX);
45 input_just_right(
void **state)
50 assert_int_equal(
result, 1024);
53 assert_int_equal(
result, 2048);
57 cmocka_unit_test(empty_input_string),
58 cmocka_unit_test(input_below_minimum),
59 cmocka_unit_test(input_above_maximum),
60 cmocka_unit_test(input_just_right))
int pcmk__scan_min_int(const char *text, int *result, int minimum)
PCMK__UNIT_TEST(NULL, NULL, cmocka_unit_test(bad_input), cmocka_unit_test(not_found), cmocka_unit_test(find_attrB), cmocka_unit_test(find_attrA_matching))
pcmk__action_result_t result