16 empty_input_string(
void **state)
25 null_input_variables(
void **state)
34 missing_separator(
void **state)
39 assert_int_equal(start, 1234);
40 assert_int_equal(end, 1234);
44 only_separator(
void **state)
54 no_range_end(
void **state)
59 assert_int_equal(start, 2000);
64 no_range_start(
void **state)
70 assert_int_equal(end, 2020);
74 range_start_and_end(
void **state)
79 assert_int_equal(start, 2000);
80 assert_int_equal(end, 2020);
100 strtoll_errors(
void **state)
102 long long start, end;
109 cmocka_unit_test(empty_input_string),
110 cmocka_unit_test(null_input_variables),
111 cmocka_unit_test(missing_separator),
112 cmocka_unit_test(only_separator),
113 cmocka_unit_test(no_range_end),
114 cmocka_unit_test(no_range_start),
115 cmocka_unit_test(range_start_and_end),
116 cmocka_unit_test(strtoll_errors),
117 cmocka_unit_test(garbage))
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))
#define PCMK__PARSE_INT_DEFAULT
#define pcmk__assert_asserts(stmt)
Function and executable result codes.
int pcmk__parse_ll_range(const char *srcstring, long long *start, long long *end)