15 empty_input_string(
void **state)
20 assert_int_equal(
result, -1);
24 bad_input_string(
void **state)
29 assert_int_equal(
result, -1);
33 out_of_range(
void **state)
38 assert_int_equal(
result, -1);
40 assert_int_equal(
result, -1);
44 typical_case(
void **state)
49 assert_int_equal(
result, 0);
52 assert_int_equal(
result, 80);
56 cmocka_unit_test(empty_input_string),
57 cmocka_unit_test(bad_input_string),
58 cmocka_unit_test(out_of_range),
59 cmocka_unit_test(typical_case))
#define PCMK__UNIT_TEST(group_setup, group_teardown,...)
int pcmk__scan_port(const char *text, int *port)
pcmk__action_result_t result