25 expect_tree_items(tree, {});
33 expect_tree_items(tree, {
"item"});
38 expect_tree_items(tree, {
"item",
"item/child"});
40 std::vector<AssetCatalogPath> expected_paths;
44 "item/child/grandchild/grandgrandchild");
47 "item",
"item/child",
"item/child/grandchild",
"item/child/grandchild/grandgrandchild"};
48 expect_tree_items(tree, expected_paths);
52 expected_paths = {
"item",
54 "item/child/grandchild",
55 "item/child/grandchild/grandgrandchild",
57 expect_tree_items(tree, expected_paths);
65 expect_tree_items(tree, {
"item",
"item/child"});
73 expect_tree_items(tree, {
"white space"});
81 expect_tree_items(tree, {
"item",
"item/white space"});
89 expect_tree_items(tree, {
"Ružena"});
93 expect_tree_items(tree, {
"Ružena",
"Ružena/Ružena"});
104 std::vector<AssetCatalogPath> expected_paths{
107 "character/Ellie/backslashes",
108 "character/Ellie/poselib",
109 "character/Ellie/poselib/tailslash",
110 "character/Ellie/poselib/white space",
112 "character/Ružena/poselib",
113 "character/Ružena/poselib/face",
114 "character/Ružena/poselib/hand",
117 "path/without/simplename",
120 const std::shared_ptr<const AssetCatalogTree> tree = service.
catalog_tree();
121 expect_tree_items(*tree, expected_paths);
128 const std::vector<AssetCatalogPath> no_catalogs{};
130 expect_tree_items(tree, no_catalogs);
131 expect_tree_root_items(tree, no_catalogs);
136 expect_tree_item_child_items(item, no_catalogs);
143 std::vector<AssetCatalogPath> expected_root_items{{
"character",
"path"}};
144 const std::shared_ptr<const AssetCatalogTree> tree = service.
catalog_tree();
145 expect_tree_root_items(*tree, expected_root_items);
148 std::vector<std::vector<AssetCatalogPath>> expected_root_child_items = {
150 {
"character/Ellie",
"character/Ružena"},
156 expect_tree_item_child_items(item, expected_root_child_items[i]);