15 all_set(
void **state) {
16 assert_false(pcmk_all_flags_set(0x000, 0x003));
17 assert_true(pcmk_all_flags_set(0x00f, 0x003));
18 assert_false(pcmk_all_flags_set(0x00f, 0x010));
19 assert_false(pcmk_all_flags_set(0x00f, 0x011));
20 assert_true(pcmk_all_flags_set(0x000, 0x000));
21 assert_true(pcmk_all_flags_set(0x00f, 0x000));
25 one_is_set(
void **state) {
32 cmocka_unit_test(all_set),
33 cmocka_unit_test(one_is_set))
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_is_set(g, f)
Convenience alias for pcmk_all_flags_set(), to check single flag.