|
Blender V5.0
|
#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 98 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 168 of file asset_library_test_common.hh.
References blender::asset_system::AssetCatalogTreeItem::catalog_path(), blender::asset_system::tests::compare_item_with_path(), blender::asset_system::AssetCatalogTreeItem::foreach_child(), and i.
|
inlinestatic |
Recursively iterate over all tree items using #AssetCatalogTree::foreach_item() and check if the items map exactly to expected_paths.
Definition at line 143 of file asset_library_test_common.hh.
References blender::asset_system::AssetCatalogTreeItem::catalog_path(), blender::asset_system::tests::compare_item_with_path(), i, 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 155 of file asset_library_test_common.hh.
References blender::asset_system::AssetCatalogTreeItem::catalog_path(), blender::asset_system::tests::compare_item_with_path(), i, and tree.