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)
#define PCMK__UNIT_TEST(group_setup, group_teardown,...)
pcmk__action_result_t result