15 s_is_null(
void **state) {
16 assert_null(pcmk__s(NULL, NULL));
17 assert_string_equal(pcmk__s(NULL,
""),
"");
18 assert_string_equal(pcmk__s(NULL,
"something"),
"something");
22 s_is_not_null(
void **state) {
23 assert_string_equal(pcmk__s(
"something", NULL),
"something");
24 assert_string_equal(pcmk__s(
"something",
"default"),
"something");
28 cmocka_unit_test(s_is_null),
29 cmocka_unit_test(s_is_not_null))
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))