Lines Matching refs:tree
984 auto tree = pldm_entity_association_tree_init(); in TEST() local
985 EXPECT_NE(tree, nullptr); in TEST()
986 pldm_entity_association_tree_destroy(tree); in TEST()
1011 auto tree = pldm_entity_association_tree_init(); in TEST() local
1014 tree, &entities[0], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1017 tree, &entities[1], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1020 tree, &entities[2], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1023 tree, &entities[3], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1026 tree, &entities[4], 0xffff, l2a, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1029 tree, &entities[5], 0xffff, l2a, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1032 tree, &entities[6], 0xffff, l2a, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1035 tree, &entities[7], 0xffff, l3a, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1038 tree, &entities[8], 0xffff, l3b, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1104 pldm_entity_association_tree_visit(tree, &out, &num); in TEST()
1180 pldm_entity_association_tree_destroy(tree); in TEST()
1214 auto tree = pldm_entity_association_tree_init(); in TEST() local
1216 tree, &entities[0], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_LOGICAL, in TEST()
1220 tree, &entities[1], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL, false, in TEST()
1224 tree, &entities[2], 0xffff, l2, PLDM_ENTITY_ASSOCIAION_PHYSICAL, false, in TEST()
1228 tree, &entities[3], 0, l3, PLDM_ENTITY_ASSOCIAION_PHYSICAL, false, in TEST()
1232 tree, &entities[4], 1, l3, PLDM_ENTITY_ASSOCIAION_PHYSICAL, true, true, in TEST()
1236 tree, &entities[5], 0, l4a, PLDM_ENTITY_ASSOCIAION_PHYSICAL, false, in TEST()
1240 tree, &entities[6], 0, l4b, PLDM_ENTITY_ASSOCIAION_PHYSICAL, false, in TEST()
1247 auto result1 = pldm_entity_association_tree_find(tree, &entity); in TEST()
1251 tree, &entities[7], 0, result1, PLDM_ENTITY_ASSOCIAION_PHYSICAL, false, in TEST()
1257 auto result2 = pldm_entity_association_tree_find(tree, &entity); in TEST()
1261 tree, &entities[8], 0, result2, PLDM_ENTITY_ASSOCIAION_PHYSICAL, false, in TEST()
1264 pldm_entity_association_tree_destroy(tree); in TEST()
1277 auto tree = pldm_entity_association_tree_init(); in TEST() local
1279 tree, &entities[0], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1283 pldm_entity_association_tree_visit(tree, &out, &num); in TEST()
1289 pldm_entity_association_tree_destroy(tree); in TEST()
1292 tree = pldm_entity_association_tree_init(); in TEST()
1293 node = pldm_entity_association_tree_add(tree, &entities[0], 0xffff, nullptr, in TEST()
1296 node = pldm_entity_association_tree_add(tree, &entities[1], 0xffff, nullptr, in TEST()
1299 node = pldm_entity_association_tree_add(tree, &entities[2], 0xffff, nullptr, in TEST()
1302 pldm_entity_association_tree_visit(tree, &out, &num); in TEST()
1314 pldm_entity_association_tree_destroy(tree); in TEST()
1321 tree = pldm_entity_association_tree_init(); in TEST()
1322 node = pldm_entity_association_tree_add(tree, &entities[0], 0xffff, nullptr, in TEST()
1326 tree, &entities[1], 0xffff, node, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1329 tree, &entities[2], 0xffff, node1, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1331 pldm_entity_association_tree_visit(tree, &out, &num); in TEST()
1343 pldm_entity_association_tree_destroy(tree); in TEST()
1348 tree = pldm_entity_association_tree_init(); in TEST()
1349 node = pldm_entity_association_tree_add(tree, &entities[0], 0xffff, nullptr, in TEST()
1352 node = pldm_entity_association_tree_add(tree, &entities[0], 0xffff, nullptr, in TEST()
1355 node1 = pldm_entity_association_tree_add(tree, &entities[1], 0xffff, node, in TEST()
1358 node2 = pldm_entity_association_tree_add(tree, &entities[2], 0xffff, node, in TEST()
1361 pldm_entity_association_tree_visit(tree, &out, &num); in TEST()
1376 pldm_entity_association_tree_destroy(tree); in TEST()
1414 auto tree = pldm_entity_association_tree_init(); in TEST() local
1417 tree, &entities[0], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1420 tree, &entities[1], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1424 tree, &entities[1], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1426 auto l2b = pldm_entity_association_tree_add(tree, &entities[2], 0xffff, l1, in TEST()
1430 tree, &entities[3], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1432 auto l2d = pldm_entity_association_tree_add(tree, &entities[4], 0xffff, l1, in TEST()
1437 tree, &entities[5], 0xffff, l2a, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1440 tree, &entities[6], 0xffff, l2a, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1442 auto l3c = pldm_entity_association_tree_add(tree, &entities[7], 0xffff, l2a, in TEST()
1445 auto l3d = pldm_entity_association_tree_add(tree, &entities[8], 0xffff, l2a, in TEST()
1450 tree, &entities[9], 0xffff, l3a, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1453 tree, &entities[10], 0xffff, l3b, PLDM_ENTITY_ASSOCIAION_LOGICAL); in TEST()
1468 int rc = pldm_entity_association_pdr_add(tree, repo, false, 1); in TEST()
1710 pldm_entity_association_tree_destroy(tree); in TEST()
1730 auto tree = pldm_entity_association_tree_init(); in TEST() local
1733 tree, &entities[0], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1737 tree, &entities[1], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1739 pldm_entity_association_tree_add(tree, &entities[2], 0xffff, l1, in TEST()
1745 pldm_find_entity_ref_in_tree(tree, entities[0], &node); in TEST()
1807 pldm_entity_association_tree_destroy(tree); in TEST()
1832 auto tree = pldm_entity_association_tree_init(); in TEST() local
1835 tree, &entities[0], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1838 tree, &entities[1], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1841 tree, &entities[2], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1844 tree, &entities[3], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1847 tree, &entities[4], 0xffff, l2a, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1850 tree, &entities[5], 0xffff, l2a, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1853 tree, &entities[6], 0xffff, l2a, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1856 tree, &entities[7], 0xffff, l3a, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1859 tree, &entities[8], 0xffff, l3b, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
1866 auto result = pldm_entity_association_tree_find(tree, &entity); in TEST()
1872 result = pldm_entity_association_tree_find(tree, &entity); in TEST()
1877 result = pldm_entity_association_tree_find(tree, &entity); in TEST()
1882 result = pldm_entity_association_tree_find(tree, &entity); in TEST()
1888 result = pldm_entity_association_tree_find(tree, &entity); in TEST()
1892 pldm_entity_association_tree_destroy(tree); in TEST()
2018 auto tree = pldm_entity_association_tree_init(); in TEST() local
2020 tree, &entities[0], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
2023 tree, &entities[1], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
2026 tree, &entities[2], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
2029 tree, &entities[3], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
2047 pldm_entity_association_tree_destroy(tree); in TEST()
2064 auto tree = pldm_entity_association_tree_init(); in TEST() local
2073 tree, &entities[0], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
2076 auto l1 = pldm_entity_association_tree_add(tree, &entities[1], 63, node, in TEST()
2093 auto l2 = pldm_entity_association_tree_add(tree, &entities[2], 37, node, in TEST()
2110 auto l3 = pldm_entity_association_tree_add(tree, &entities[3], 44, node, in TEST()
2127 auto l4 = pldm_entity_association_tree_add(tree, &entities[4], 89, node, in TEST()
2144 auto l5 = pldm_entity_association_tree_add(tree, &entities[5], 0xffff, node, in TEST()
2161 auto l6 = pldm_entity_association_tree_add(tree, &entities[6], 90, node, in TEST()
2165 auto l7 = pldm_entity_association_tree_add(tree, &entities[7], 100, l1, in TEST()
2182 auto l8 = pldm_entity_association_tree_add(tree, &entities[8], 100, l2, in TEST()
2200 pldm_entity_association_tree_destroy(tree); in TEST()
2213 auto tree = pldm_entity_association_tree_init(); in TEST() local
2215 tree, &entities[0], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_LOGICAL, in TEST()
2220 tree, &entities[1], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL, false, in TEST()
2224 tree, &entities[2], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL, false, in TEST()
2232 int rc = pldm_entity_association_pdr_add(tree, repo, false, 1); in TEST()
2248 pldm_entity_association_tree_destroy(tree); in TEST()
2261 auto tree = pldm_entity_association_tree_init(); in TEST() local
2264 tree, &entities[0], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
2267 tree, &entities[1], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
2270 tree, &entities[2], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
2273 tree, &entities[3], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
2319 pldm_entity_association_tree_destroy(tree); in TEST()
2333 auto tree = pldm_entity_association_tree_init(); in TEST() local
2335 tree, &entities[0], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
2338 tree, &entities[1], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
2341 tree, &entities[2], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
2344 tree, &entities[3], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
2347 tree, &entities[4], 0xffff, l2a, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
2377 pldm_entity_association_tree_destroy(tree); in TEST()
2392 auto tree = pldm_entity_association_tree_init(); in TEST() local
2394 tree, &entities[0], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
2397 tree, &entities[1], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
2400 tree, &entities[2], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
2403 tree, &entities[3], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
2406 tree, &entities[4], 0xffff, l2a, PLDM_ENTITY_ASSOCIAION_PHYSICAL); in TEST()
2443 pldm_entity_association_tree_destroy(tree); in TEST()
2456 auto tree = pldm_entity_association_tree_init(); in TEST() local
2458 tree, &entities[0], 0xffff, nullptr, PLDM_ENTITY_ASSOCIAION_LOGICAL, in TEST()
2463 tree, &entities[1], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL, false, in TEST()
2467 tree, &entities[2], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL, false, in TEST()
2471 tree, &entities[3], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL, false, in TEST()
2515 pldm_entity_association_tree_destroy(tree); in TEST()
2603 auto tree = pldm_entity_association_tree_init(); in TEST() local
2604 ASSERT_NE(tree, nullptr); in TEST()
2607 tree, &entities.get()[0], 0xffff, nullptr, in TEST()
2612 tree, &entities.get()[1], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL, in TEST()
2617 tree, &entities.get()[2], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL, in TEST()
2622 tree, &entities.get()[3], 0xffff, l1, PLDM_ENTITY_ASSOCIAION_PHYSICAL, in TEST()
2634 pldm_entity_association_tree_delete_node(tree, &entity); in TEST()
2642 pldm_entity_association_tree_delete_node(tree, &entity); in TEST()
2646 pldm_entity_association_tree_destroy(tree); in TEST()