Blender V5.0
blender::asset_system::tests Namespace Reference

Classes

class  TestableAssetCatalogService
class  AssetCatalogTest
class  TestableAssetCatalogCollection
class  TestableAssetCatalogDefinitionFile
class  AssetCatalogTreeTest
class  AssetLibraryServiceTest
class  AssetLibraryTest
class  AssetLibraryTestBase
class  AssetCatalogTreeTestFunctions
class  AssetRepresentationTest

Functions

 TEST (AssetCatalogPathTest, construction)
 TEST (AssetCatalogPathTest, length)
 TEST (AssetCatalogPathTest, name)
 TEST (AssetCatalogPathTest, comparison_operators)
 TEST (AssetCatalogPathTest, move_semantics)
 TEST (AssetCatalogPathTest, concatenation)
 TEST (AssetCatalogPathTest, hashable)
 TEST (AssetCatalogPathTest, stream_operator)
 TEST (AssetCatalogPathTest, is_contained_in)
 TEST (AssetCatalogPathTest, cleanup)
 TEST (AssetCatalogPathTest, iterate_components)
 TEST (AssetCatalogPathTest, rebase)
 TEST (AssetCatalogPathTest, parent)
 TEST_F (AssetCatalogTest, load_single_file)
 TEST_F (AssetCatalogTest, load_catalog_path_backslashes)
 TEST_F (AssetCatalogTest, is_first_loaded_flag)
 TEST_F (AssetCatalogTest, find_catalog_by_path)
 TEST_F (AssetCatalogTest, write_single_file)
 TEST_F (AssetCatalogTest, read_write_unicode_filepath)
 TEST_F (AssetCatalogTest, no_writing_empty_files)
 TEST_F (AssetCatalogTest, on_blendfile_save__with_existing_cdf)
 TEST_F (AssetCatalogTest, on_blendfile_save__from_memory_into_empty_directory)
 TEST_F (AssetCatalogTest, on_blendfile_save__from_memory_into_existing_cdf_and_merge)
 TEST_F (AssetCatalogTest, on_blendfile_save__from_memory_into_existing_asset_lib_without_top_level_cdf)
 TEST_F (AssetCatalogTest, on_blendfile_save__from_memory_into_existing_asset_lib)
 TEST_F (AssetCatalogTest, create_first_catalog_from_scratch)
 TEST_F (AssetCatalogTest, create_catalog_after_loading_file)
 TEST_F (AssetCatalogTest, create_catalog_path_cleanup)
 TEST_F (AssetCatalogTest, create_catalog_simple_name)
 TEST_F (AssetCatalogTest, delete_catalog_leaf)
 TEST_F (AssetCatalogTest, delete_catalog_parent_by_id)
 TEST_F (AssetCatalogTest, delete_catalog_parent_by_path)
 TEST_F (AssetCatalogTest, delete_catalog_write_to_disk)
 TEST_F (AssetCatalogTest, update_catalog_path)
 TEST_F (AssetCatalogTest, update_catalog_path_simple_name)
 TEST_F (AssetCatalogTest, update_catalog_path_longer_than_simplename)
 TEST_F (AssetCatalogTest, update_catalog_path_add_slashes)
 TEST_F (AssetCatalogTest, merge_catalog_files)
 TEST_F (AssetCatalogTest, refresh_catalogs_with_modification)
 TEST_F (AssetCatalogTest, backups)
 TEST_F (AssetCatalogTest, order_by_path)
 TEST_F (AssetCatalogTest, order_by_path_and_first_seen)
 TEST_F (AssetCatalogTest, create_missing_catalogs)
 TEST_F (AssetCatalogTest, create_missing_catalogs_after_loading)
 TEST_F (AssetCatalogTest, create_catalog_filter)
 TEST_F (AssetCatalogTest, create_catalog_filter_for_unknown_uuid)
 TEST_F (AssetCatalogTest, create_catalog_filter_for_unassigned_assets)
 TEST_F (AssetCatalogTest, cat_collection_deep_copy__empty)
 TEST_F (AssetCatalogTest, cat_collection_deep_copy__nonempty_nocdf)
 TEST_F (AssetCatalogTest, cat_collection_deep_copy__nonempty_cdf)
 TEST_F (AssetCatalogTest, undo_redo_one_step)
 TEST_F (AssetCatalogTest, undo_redo_more_complex)
 TEST_F (AssetCatalogTreeTest, insert_item_into_tree)
 TEST_F (AssetCatalogTreeTest, load_single_file_into_tree)
 TEST_F (AssetCatalogTreeTest, foreach_in_tree)
 TEST_F (AssetLibraryServiceTest, get_destroy)
 TEST_F (AssetLibraryServiceTest, library_pointers)
 TEST_F (AssetLibraryServiceTest, library_from_reference)
 TEST_F (AssetLibraryServiceTest, library_path_trailing_slashes)
 TEST_F (AssetLibraryServiceTest, catalogs_loaded)
 TEST_F (AssetLibraryServiceTest, has_any_unsaved_catalogs)
 TEST_F (AssetLibraryServiceTest, has_any_unsaved_catalogs_after_write)
 TEST_F (AssetLibraryServiceTest, move_runtime_current_file_into_on_disk_library__empty_directory)
 TEST_F (AssetLibraryServiceTest, move_runtime_current_file_into_on_disk_library__directory_with_catalogs)
 TEST_F (AssetLibraryTest, AS_asset_library_load_from_directory)
 TEST_F (AssetLibraryTest, load_nonexistent_directory)
static void compare_item_with_path (const AssetCatalogPath &expected_path, const AssetCatalogTreeItem &actual_item)
 TEST_F (AssetRepresentationTest, library_relative_identifier__id_name_change)
 TEST_F (AssetRepresentationTest, weak_reference__current_file)
 TEST_F (AssetRepresentationTest, weak_reference__custom_library)
 TEST_F (AssetRepresentationTest, weak_reference__id_name_change)
 TEST_F (AssetRepresentationTest, weak_reference__compare)
 TEST_F (AssetRepresentationTest, weak_reference__resolve_to_full_path__current_file)
 TEST_F (AssetRepresentationTest, weak_reference__resolve_to_full_path__custom_library)
 TEST_F (AssetRepresentationTest, weak_reference__resolve_to_full_path__custom_library__windows_pathsep)
 TEST_F (AssetRepresentationTest, weak_reference__resolve_to_exploded_path__current_file)
 TEST_F (AssetRepresentationTest, weak_reference__resolve_to_exploded_path__custom_library)
 TEST_F (AssetRepresentationTest, weak_reference__resolve_to_exploded_path__custom_library__windows_pathsep)

Variables

const bUUID UUID_ID_WITHOUT_PATH ("e34dd2c5-5d2e-4668-9794-1db5de2a4f71")
const bUUID UUID_POSES_ELLIE ("df60e1f6-2259-475b-93d9-69a1b4a8db78")
const bUUID UUID_POSES_ELLIE_WHITESPACE ("b06132f6-5687-4751-a6dd-392740eb3c46")
const bUUID UUID_POSES_ELLIE_TRAILING_SLASH ("3376b94b-a28d-4d05-86c1-bf30b937130d")
const bUUID UUID_POSES_ELLIE_BACKSLASHES ("a51e17ae-34fc-47d5-ba0f-64c2c9b771f7")
const bUUID UUID_POSES_RUZENA ("79a4f887-ab60-4bd4-94da-d572e27d6aed")
const bUUID UUID_POSES_RUZENA_HAND ("81811c31-1a88-4bd7-bb34-c6fc2607a12e")
const bUUID UUID_POSES_RUZENA_FACE ("82162c1f-06cc-4d91-a9bf-4f72c104e348")
const bUUID UUID_WITHOUT_SIMPLENAME ("d7916a31-6ca9-4909-955f-182ca2b81fa3")
const bUUID UUID_ANOTHER_RUZENA ("00000000-d9fa-4b91-b704-e6af1f1339ef")
const bUUID UUID_AGENT_47 ("c5744ba5-43f5-4f73-8e52-010ad4a61b34")

Function Documentation

◆ compare_item_with_path()

◆ TEST() [1/13]

blender::asset_system::tests::TEST ( AssetCatalogPathTest ,
cleanup  )

◆ TEST() [2/13]

blender::asset_system::tests::TEST ( AssetCatalogPathTest ,
comparison_operators  )

Definition at line 65 of file asset_catalog_path_test.cc.

References EXPECT_EQ().

◆ TEST() [3/13]

blender::asset_system::tests::TEST ( AssetCatalogPathTest ,
concatenation  )

Definition at line 102 of file asset_catalog_path_test.cc.

References EXPECT_EQ().

◆ TEST() [4/13]

blender::asset_system::tests::TEST ( AssetCatalogPathTest ,
construction  )

◆ TEST() [5/13]

blender::asset_system::tests::TEST ( AssetCatalogPathTest ,
hashable  )

◆ TEST() [6/13]

blender::asset_system::tests::TEST ( AssetCatalogPathTest ,
is_contained_in  )

◆ TEST() [7/13]

◆ TEST() [8/13]

blender::asset_system::tests::TEST ( AssetCatalogPathTest ,
length  )

◆ TEST() [9/13]

blender::asset_system::tests::TEST ( AssetCatalogPathTest ,
move_semantics  )

Definition at line 92 of file asset_catalog_path_test.cc.

◆ TEST() [10/13]

blender::asset_system::tests::TEST ( AssetCatalogPathTest ,
name  )

Definition at line 56 of file asset_catalog_path_test.cc.

References EXPECT_EQ(), and name.

◆ TEST() [11/13]

blender::asset_system::tests::TEST ( AssetCatalogPathTest ,
parent  )

◆ TEST() [12/13]

blender::asset_system::tests::TEST ( AssetCatalogPathTest ,
rebase  )

◆ TEST() [13/13]

blender::asset_system::tests::TEST ( AssetCatalogPathTest ,
stream_operator  )

Definition at line 139 of file asset_catalog_path_test.cc.

References EXPECT_EQ().

◆ TEST_F() [1/64]

◆ TEST_F() [2/64]

blender::asset_system::tests::TEST_F ( AssetCatalogTest ,
cat_collection_deep_copy__empty  )

◆ TEST_F() [3/64]

◆ TEST_F() [4/64]

◆ TEST_F() [5/64]

◆ TEST_F() [6/64]

◆ TEST_F() [7/64]

blender::asset_system::tests::TEST_F ( AssetCatalogTest ,
create_catalog_filter_for_unassigned_assets  )

◆ TEST_F() [8/64]

blender::asset_system::tests::TEST_F ( AssetCatalogTest ,
create_catalog_filter_for_unknown_uuid  )

◆ TEST_F() [9/64]

◆ TEST_F() [10/64]

◆ TEST_F() [11/64]

◆ TEST_F() [12/64]

◆ TEST_F() [13/64]

◆ TEST_F() [14/64]

◆ TEST_F() [15/64]

◆ TEST_F() [16/64]

◆ TEST_F() [17/64]

◆ TEST_F() [18/64]

◆ TEST_F() [19/64]

◆ TEST_F() [20/64]

◆ TEST_F() [21/64]

◆ TEST_F() [22/64]

◆ TEST_F() [23/64]

blender::asset_system::tests::TEST_F ( AssetCatalogTest ,
no_writing_empty_files  )

◆ TEST_F() [24/64]

◆ TEST_F() [25/64]

blender::asset_system::tests::TEST_F ( AssetCatalogTest ,
on_blendfile_save__from_memory_into_existing_asset_lib  )

Definition at line 440 of file asset_catalog_test.cc.

◆ TEST_F() [26/64]

blender::asset_system::tests::TEST_F ( AssetCatalogTest ,
on_blendfile_save__from_memory_into_existing_asset_lib_without_top_level_cdf  )

Definition at line 431 of file asset_catalog_test.cc.

◆ TEST_F() [27/64]

◆ TEST_F() [28/64]

◆ TEST_F() [29/64]

blender::asset_system::tests::TEST_F ( AssetCatalogTest ,
order_by_path  )

◆ TEST_F() [30/64]

◆ TEST_F() [31/64]

◆ TEST_F() [32/64]

◆ TEST_F() [33/64]

◆ TEST_F() [34/64]

◆ TEST_F() [35/64]

◆ TEST_F() [36/64]

◆ TEST_F() [37/64]

◆ TEST_F() [38/64]

◆ TEST_F() [39/64]

◆ TEST_F() [40/64]

◆ TEST_F() [41/64]

blender::asset_system::tests::TEST_F ( AssetCatalogTreeTest ,
insert_item_into_tree  )

◆ TEST_F() [42/64]

blender::asset_system::tests::TEST_F ( AssetCatalogTreeTest ,
load_single_file_into_tree  )

◆ TEST_F() [43/64]

◆ TEST_F() [44/64]

◆ TEST_F() [45/64]

◆ TEST_F() [46/64]

◆ TEST_F() [47/64]

◆ TEST_F() [48/64]

◆ TEST_F() [49/64]

◆ TEST_F() [50/64]

◆ TEST_F() [51/64]

◆ TEST_F() [52/64]

◆ TEST_F() [53/64]

blender::asset_system::tests::TEST_F ( AssetLibraryTest ,
load_nonexistent_directory  )

◆ TEST_F() [54/64]

blender::asset_system::tests::TEST_F ( AssetRepresentationTest ,
library_relative_identifier__id_name_change  )

◆ TEST_F() [55/64]

◆ TEST_F() [56/64]

◆ TEST_F() [57/64]

◆ TEST_F() [58/64]

◆ TEST_F() [59/64]

◆ TEST_F() [60/64]

◆ TEST_F() [61/64]

◆ TEST_F() [62/64]

◆ TEST_F() [63/64]

◆ TEST_F() [64/64]

Variable Documentation

◆ UUID_AGENT_47

const bUUID blender::asset_system::tests::UUID_AGENT_47("c5744ba5-43f5-4f73-8e52-010ad4a61b34") ( "c5744ba5-43f5-4f73-8e52-010ad4a61b34" )

Referenced by TEST_F(), and TEST_F().

◆ UUID_ANOTHER_RUZENA

const bUUID blender::asset_system::tests::UUID_ANOTHER_RUZENA("00000000-d9fa-4b91-b704-e6af1f1339ef") ( "00000000-d9fa-4b91-b704-e6af1f1339ef" )

Referenced by TEST_F(), and TEST_F().

◆ UUID_ID_WITHOUT_PATH

const bUUID blender::asset_system::tests::UUID_ID_WITHOUT_PATH("e34dd2c5-5d2e-4668-9794-1db5de2a4f71") ( "e34dd2c5-5d2e-4668-9794-1db5de2a4f71" )

Referenced by TEST_F(), TEST_F(), and TEST_F().

◆ UUID_POSES_ELLIE

◆ UUID_POSES_ELLIE_BACKSLASHES

const bUUID blender::asset_system::tests::UUID_POSES_ELLIE_BACKSLASHES("a51e17ae-34fc-47d5-ba0f-64c2c9b771f7") ( "a51e17ae-34fc-47d5-ba0f-64c2c9b771f7" )

Referenced by TEST_F(), and TEST_F().

◆ UUID_POSES_ELLIE_TRAILING_SLASH

const bUUID blender::asset_system::tests::UUID_POSES_ELLIE_TRAILING_SLASH("3376b94b-a28d-4d05-86c1-bf30b937130d") ( "3376b94b-a28d-4d05-86c1-bf30b937130d" )

◆ UUID_POSES_ELLIE_WHITESPACE

const bUUID blender::asset_system::tests::UUID_POSES_ELLIE_WHITESPACE("b06132f6-5687-4751-a6dd-392740eb3c46") ( "b06132f6-5687-4751-a6dd-392740eb3c46" )

◆ UUID_POSES_RUZENA

const bUUID blender::asset_system::tests::UUID_POSES_RUZENA("79a4f887-ab60-4bd4-94da-d572e27d6aed") ( "79a4f887-ab60-4bd4-94da-d572e27d6aed" )

◆ UUID_POSES_RUZENA_FACE

const bUUID blender::asset_system::tests::UUID_POSES_RUZENA_FACE("82162c1f-06cc-4d91-a9bf-4f72c104e348") ( "82162c1f-06cc-4d91-a9bf-4f72c104e348" )

◆ UUID_POSES_RUZENA_HAND

const bUUID blender::asset_system::tests::UUID_POSES_RUZENA_HAND("81811c31-1a88-4bd7-bb34-c6fc2607a12e") ( "81811c31-1a88-4bd7-bb34-c6fc2607a12e" )

◆ UUID_WITHOUT_SIMPLENAME

const bUUID blender::asset_system::tests::UUID_WITHOUT_SIMPLENAME("d7916a31-6ca9-4909-955f-182ca2b81fa3") ( "d7916a31-6ca9-4909-955f-182ca2b81fa3" )

Referenced by TEST_F(), and TEST_F().