16 empty_input_string(
void **state)
28 input_too_long_for_both(
void **state)
37 for (
int i = 0; i <
NAME_MAX - 3; i++) {
51 input_too_long_for_pcmk(
void **state)
63 for (
int i = 0; i <
NAME_MAX - 5; i++) {
73 snprintf(buf,
NAME_MAX,
"HA_%s", long_opt);
82 value_not_found(
void **state)
99 value_found_pcmk(
void **state)
112 value_found_ha(
void **state)
129 cmocka_unit_test(empty_input_string),
130 cmocka_unit_test(input_too_long_for_both),
131 cmocka_unit_test(input_too_long_for_pcmk),
132 cmocka_unit_test(value_not_found),
133 cmocka_unit_test(value_found_pcmk),
134 cmocka_unit_test(value_found_ha))
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))
const char * pcmk__env_option(const char *option)
char * __wrap_getenv(const char *name)