Blender V4.3
blender::asset_system::tests Namespace Reference

Classes

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

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 (AssetLibraryTest, AS_asset_library_load)
 
 TEST_F (AssetLibraryTest, load_nonexistent_directory)
 
static void compare_item_with_path (const AssetCatalogPath &expected_path, const AssetCatalogTreeItem &actual_item)
 
 TEST_F (AssetRepresentationTest, weak_reference__current_file)
 
 TEST_F (AssetRepresentationTest, weak_reference__custom_library)
 
 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().

◆ 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/60]

◆ TEST_F() [2/60]

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

◆ TEST_F() [3/60]

◆ TEST_F() [4/60]

◆ TEST_F() [5/60]

◆ TEST_F() [6/60]

◆ TEST_F() [7/60]

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

◆ TEST_F() [8/60]

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

◆ TEST_F() [9/60]

◆ TEST_F() [10/60]

◆ TEST_F() [11/60]

◆ TEST_F() [12/60]

◆ TEST_F() [13/60]

◆ TEST_F() [14/60]

◆ TEST_F() [15/60]

◆ TEST_F() [16/60]

◆ TEST_F() [17/60]

◆ TEST_F() [18/60]

◆ TEST_F() [19/60]

◆ TEST_F() [20/60]

◆ TEST_F() [21/60]

◆ TEST_F() [22/60]

◆ TEST_F() [23/60]

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

◆ TEST_F() [24/60]

◆ TEST_F() [25/60]

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

Definition at line 439 of file asset_catalog_test.cc.

◆ TEST_F() [26/60]

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

Definition at line 430 of file asset_catalog_test.cc.

◆ TEST_F() [27/60]

◆ TEST_F() [28/60]

◆ TEST_F() [29/60]

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

◆ TEST_F() [30/60]

◆ TEST_F() [31/60]

◆ TEST_F() [32/60]

◆ TEST_F() [33/60]

◆ TEST_F() [34/60]

◆ TEST_F() [35/60]

◆ TEST_F() [36/60]

◆ TEST_F() [37/60]

◆ TEST_F() [38/60]

◆ TEST_F() [39/60]

◆ TEST_F() [40/60]

◆ TEST_F() [41/60]

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

◆ TEST_F() [42/60]

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

◆ TEST_F() [43/60]

◆ TEST_F() [44/60]

◆ TEST_F() [45/60]

◆ TEST_F() [46/60]

◆ TEST_F() [47/60]

◆ TEST_F() [48/60]

◆ TEST_F() [49/60]

◆ TEST_F() [50/60]

◆ TEST_F() [51/60]

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

◆ TEST_F() [52/60]

◆ TEST_F() [53/60]

◆ TEST_F() [54/60]

◆ TEST_F() [55/60]

◆ TEST_F() [56/60]

◆ TEST_F() [57/60]

◆ TEST_F() [58/60]

◆ TEST_F() [59/60]

◆ TEST_F() [60/60]

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().