|
Blender V4.3
|
#include <asset_library_test_common.hh>
Inherited by blender::asset_system::tests::AssetCatalogTreeTest.
Static Public Member Functions | |
| static void | expect_tree_items (const AssetCatalogTree &tree, const std::vector< AssetCatalogPath > &expected_paths) |
| static void | expect_tree_root_items (const AssetCatalogTree &tree, const std::vector< AssetCatalogPath > &expected_paths) |
| static void | expect_tree_item_child_items (const AssetCatalogTreeItem &parent_item, const std::vector< AssetCatalogPath > &expected_paths) |
Definition at line 96 of file asset_library_test_common.hh.
|
inlinestatic |
Iterate over the child items of parent_item and check if the items map exactly to expected_paths. Similar to #assert_expected_tree_items() but calls AssetCatalogTreeItem::foreach_child() instead of AssetCatalogTree::foreach_item().
Definition at line 166 of file asset_library_test_common.hh.
References blender::asset_system::AssetCatalogTreeItem::catalog_path(), blender::asset_system::tests::compare_item_with_path(), and blender::asset_system::AssetCatalogTreeItem::foreach_child().
|
inlinestatic |
Recursively iterate over all tree items using AssetCatalogTree::foreach_item() and check if the items map exactly to expected_paths.
Definition at line 141 of file asset_library_test_common.hh.
References blender::asset_system::AssetCatalogTreeItem::catalog_path(), blender::asset_system::tests::compare_item_with_path(), and tree.
Referenced by blender::asset_system::tests::TEST_F(), and blender::asset_system::tests::TEST_F().
|
inlinestatic |
Iterate over the root items of tree and check if the items map exactly to expected_paths. Similar to #assert_expected_tree_items() but calls AssetCatalogTree::foreach_root_item() instead of AssetCatalogTree::foreach_item().
Definition at line 153 of file asset_library_test_common.hh.
References blender::asset_system::AssetCatalogTreeItem::catalog_path(), blender::asset_system::tests::compare_item_with_path(), and tree.