16 empty_list(
void **state) {
22 non_null_list(
void **state) {
33 nodes = g_list_append(nodes, a);
34 nodes = g_list_append(nodes, b);
50 cmocka_unit_test(empty_list),
51 cmocka_unit_test(non_null_list))
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))
pcmk_node_t * pe_find_node_id(const GList *node_list, const char *id)
Find a node by ID in a list of nodes.
struct pe_node_shared_s * details
Basic node information.
Implementation of pcmk_node_t.
const char * id
Node ID at the cluster layer.
Basic node information (all node objects for the same node share this)