Blender  V3.3
Classes | Functions | Variables
blender::bke::tests Namespace Reference

Classes

class  BKE_armature_find_selected_bones_test
 
class  TestableAssetCatalogService
 
class  AssetCatalogTest
 
class  TestableAssetCatalogCollection
 
class  TestableAssetCatalogDefinitionFile
 
class  AssetLibraryServiceTest
 
class  AssetLibraryTest
 
class  BPathTest
 
struct  LatticeDeformTestContext
 
struct  LibIDMainSortTestContext
 
class  TestData
 
class  SceneTestData
 
class  CompositorTestData
 
class  MeshTestData
 
class  TwoMeshesTestData
 
class  MeshObjectTestData
 
class  Context
 

Functions

 TEST (action_groups, ReconstructGroupsWithReordering)
 
 TEST (action_assets, BKE_action_has_single_frame)
 
static double EXPECT_M3_ORTHOGONAL (const float mat[3][3], double epsilon_scale, double epsilon_ortho)
 
 TEST (mat3_vec_to_roll, UnitMatrix)
 
 TEST (mat3_vec_to_roll, Rotationmatrix)
 
static double test_vec_roll_to_mat3_normalized (const float input[3], float roll, const float expected_roll_mat[3][3], bool normalize=true)
 
static double find_flip_boundary (double x, double z)
 
 TEST (vec_roll_to_mat3_normalized, FlippedBoundary1)
 
 TEST (vec_roll_to_mat3_normalized, FlippedBoundary2)
 
 TEST (vec_roll_to_mat3_normalized, Flipped1)
 
 TEST (vec_roll_to_mat3_normalized, Flipped2)
 
 TEST (vec_roll_to_mat3_normalized, Flipped3)
 
 TEST (vec_roll_to_mat3_normalized, Rotate90_Z_CW)
 
 TEST (vec_roll_to_mat3_normalized, Rotate90_Z_CCW)
 
 TEST (vec_roll_to_mat3_normalized, Rotate90_X_CW)
 
 TEST (vec_roll_to_mat3_normalized, Rotate90_X_CCW)
 
 TEST (vec_roll_to_mat3_normalized, Generic1)
 
 TEST (vec_roll_to_mat3_normalized, Generic2)
 
 TEST (vec_roll_to_mat3_normalized, Generic3)
 
 TEST (vec_roll_to_mat3_normalized, Generic4)
 
 TEST (vec_roll_to_mat3_normalized, Roll1)
 
static double test_vec_roll_to_mat3_orthogonal (double s, double x, double z)
 
static void test_vec_roll_to_mat3_orthogonal (double s, double x1, double x2, double y1, double y2)
 
 TEST_F (BKE_armature_find_selected_bones_test, some_bones_selected)
 
 TEST_F (BKE_armature_find_selected_bones_test, no_bones_selected)
 
 TEST_F (BKE_armature_find_selected_bones_test, all_bones_selected)
 
 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, insert_item_into_tree)
 
 TEST_F (AssetCatalogTest, load_single_file_into_tree)
 
 TEST_F (AssetCatalogTest, foreach_in_tree)
 
 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 (AssetLibraryServiceTest, get_destroy)
 
 TEST_F (AssetLibraryServiceTest, library_pointers)
 
 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, bke_asset_library_load)
 
 TEST_F (AssetLibraryTest, load_nonexistent_directory)
 
 TEST (AssetMetadataTest, set_catalog_id)
 
 TEST_F (BPathTest, rebase_on_relative)
 
 TEST_F (BPathTest, rebase_on_absolute)
 
 TEST_F (BPathTest, convert_to_relative)
 
 TEST_F (BPathTest, convert_to_absolute)
 
 TEST_F (BPathTest, list_backup_restore)
 
static CurvesGeometry create_basic_curves (const int points_size, const int curves_size)
 
 TEST (curves_geometry, Empty)
 
 TEST (curves_geometry, Move)
 
 TEST (curves_geometry, TypeCount)
 
 TEST (curves_geometry, CatmullRomEvaluation)
 
 TEST (curves_geometry, CatmullRomTwoPointCyclic)
 
 TEST (curves_geometry, BezierPositionEvaluation)
 
 TEST (curves_geometry, NURBSEvaluation)
 
 TEST (curves_geometry, BezierGenericEvaluation)
 
 TEST (evaluate_fcurve, EmptyFCurve)
 
 TEST (evaluate_fcurve, OnKeys)
 
 TEST (evaluate_fcurve, InterpolationConstant)
 
 TEST (evaluate_fcurve, InterpolationLinear)
 
 TEST (evaluate_fcurve, InterpolationBezier)
 
 TEST (evaluate_fcurve, InterpolationBounce)
 
 TEST (evaluate_fcurve, ExtrapolationLinearKeys)
 
 TEST (evaluate_fcurve, ExtrapolationBezierKeys)
 
 TEST (fcurve_subdivide, BKE_fcurve_bezt_subdivide_handles)
 
 TEST (fcurve_active_keyframe, ActiveKeyframe)
 
 TEST (BKE_fcurve, BKE_fcurve_keyframe_move_value_with_handles)
 
 TEST (udim, image_ensure_tile_token)
 
 TEST (udim, image_get_tile_strformat)
 
 TEST (udim, image_get_tile_number_from_filepath)
 
 TEST (udim, image_set_filepath_from_tile_number)
 
static void test_lattice_deform_init (LatticeDeformTestContext *ctx, RandomNumberGenerator *rng, int32_t num_items)
 
static void test_lattice_deform (LatticeDeformTestContext *ctx, int32_t num_items)
 
static void test_lattice_deform_free (LatticeDeformTestContext *ctx)
 
 TEST (lattice_deform_performance, performance_no_dvert_1)
 
 TEST (lattice_deform_performance, performance_no_dvert_1000)
 
 TEST (lattice_deform_performance, performance_no_dvert_10000)
 
 TEST (lattice_deform_performance, performance_no_dvert_100000)
 
 TEST (lattice_deform_performance, performance_no_dvert_1000000)
 
 TEST (lattice_deform_performance, performance_no_dvert_10000000)
 
 TEST (view_layer, aov_unique_names)
 
static void test_render_pass_conflict (Scene *scene, RenderEngine *engine, ViewLayer *view_layer, ViewLayerAOV *aov, const char *render_pass_name, const char *rna_prop_name)
 
 TEST (view_layer, aov_conflict)
 
static void test_lib_id_main_sort_check_order (std::initializer_list< ID * > list)
 
 TEST (lib_id_main_sort, local_ids_1)
 
static void change_lib (Main *bmain, ID *id, Library *lib)
 
static void change_name (Main *bmain, ID *id, const char *name)
 
 TEST (lib_id_main_sort, linked_ids_1)
 
 TEST (lib_id_main_unique_name, local_ids_1)
 
 TEST (lib_id_main_unique_name, linked_ids_1)
 
 TEST (lib_id_main_unique_name, ids_sorted_by_default)
 
static IDadd_id_in_library (Main *bmain, const char *name, Library *lib)
 
 TEST (lib_id_main_unique_name, ids_sorted_by_default_with_libraries)
 
 TEST (lib_id_main_unique_name, name_too_long_handling)
 
 TEST (lib_id_main_unique_name, create_equivalent_numeric_suffixes)
 
 TEST (lib_id_main_unique_name, zero_suffix_is_never_assigned)
 
 TEST (lib_id_main_unique_name, remove_after_dup_get_original_name)
 
 TEST (lib_id_main_unique_name, name_number_suffix_assignment)
 
 TEST (lib_id_main_unique_name, renames_with_duplicates)
 
 TEST (lib_id_main_unique_name, names_are_unique_per_id_type)
 
 TEST (lib_id_main_unique_name, name_huge_number_suffix)
 
Embedded IDs
 TEST (lib_remap, embedded_ids_can_not_be_remapped)
 
 TEST (lib_remap, embedded_ids_can_not_be_deleted)
 
Remap to self
 TEST (lib_remap, delete_when_remap_to_self_not_allowed)
 
User Reference Counting
 TEST (lib_remap, users_are_decreased_when_not_skipping_never_null)
 
 TEST (lib_remap, users_are_same_when_skipping_never_null)
 
Never Null
 TEST (lib_remap, do_not_delete_when_cannot_unset)
 
 TEST (lib_remap, force_never_null_usage)
 
 TEST (lib_remap, never_null_usage_flag_not_requested_on_delete)
 
 TEST (lib_remap, never_null_usage_flag_requested_on_delete)
 
 TEST (lib_remap, never_null_usage_flag_not_requested_on_remap)
 
 TEST (lib_remap, never_null_usage_flag_requested_on_remap)
 

Variables

static const float FLOAT_EPSILON = 1.2e-7
 
static const float SCALE_EPSILON = 3.71e-5
 
static const float ORTHO_EPSILON = 5e-5
 
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")
 
static const float EPSILON = 1e-7f
 

Function Documentation

◆ add_id_in_library()

static ID* blender::bke::tests::add_id_in_library ( Main bmain,
const char *  name,
Library lib 
)
static

Definition at line 187 of file lib_id_test.cc.

References BKE_id_new(), change_lib(), id, ID_OB, id_sort_by_name(), lib, and Main::objects.

Referenced by TEST().

◆ change_lib()

static void blender::bke::tests::change_lib ( Main bmain,
ID id,
Library lib 
)
static

Definition at line 61 of file lib_id_test.cc.

References BKE_main_namemap_get_name(), BKE_main_namemap_remove_name(), id, lib, ID::lib, and ID::name.

Referenced by add_id_in_library(), and TEST().

◆ change_name()

static void blender::bke::tests::change_name ( Main bmain,
ID id,
const char *  name 
)
static

◆ create_basic_curves()

static CurvesGeometry blender::bke::tests::create_basic_curves ( const int  points_size,
const int  curves_size 
)
static

Definition at line 13 of file curves_geometry_test.cc.

References curves, and float().

Referenced by TEST().

◆ EXPECT_M3_ORTHOGONAL()

static double blender::bke::tests::EXPECT_M3_ORTHOGONAL ( const float  mat[3][3],
double  epsilon_scale,
double  epsilon_ortho 
)
static

Test that the matrix is orthogonal, i.e. has no scale or shear within acceptable precision.

Definition at line 21 of file armature_test.cc.

References copy_m3d_m3(), determinant(), determinant_m3_array_db(), dot_v3v3_db(), and len_v3_db().

Referenced by test_vec_roll_to_mat3_normalized().

◆ find_flip_boundary()

static double blender::bke::tests::find_flip_boundary ( double  x,
double  z 
)
static

Binary search to test where the code switches to the most degenerate special case.

Definition at line 139 of file armature_test.cc.

References e, float(), input, M_1_PI, normalize_v3(), sqrt(), vec_roll_to_mat3_normalized(), x, and z.

Referenced by TEST().

◆ TEST() [1/88]

blender::bke::tests::TEST ( action_assets  ,
BKE_action_has_single_frame   
)

◆ TEST() [2/88]

blender::bke::tests::TEST ( action_groups  ,
ReconstructGroupsWithReordering   
)

◆ TEST() [3/88]

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

◆ TEST() [4/88]

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

Definition at line 64 of file asset_catalog_path_test.cc.

References EXPECT_EQ().

◆ TEST() [5/88]

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

Definition at line 101 of file asset_catalog_path_test.cc.

References EXPECT_EQ().

◆ TEST() [6/88]

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

◆ TEST() [7/88]

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

◆ TEST() [8/88]

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

◆ TEST() [9/88]

blender::bke::tests::TEST ( AssetCatalogPathTest  ,
iterate_components   
)

◆ TEST() [10/88]

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

◆ TEST() [11/88]

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

Definition at line 91 of file asset_catalog_path_test.cc.

◆ TEST() [12/88]

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

Definition at line 55 of file asset_catalog_path_test.cc.

References EXPECT_EQ().

◆ TEST() [13/88]

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

◆ TEST() [14/88]

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

◆ TEST() [15/88]

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

Definition at line 138 of file asset_catalog_path_test.cc.

References EXPECT_EQ().

◆ TEST() [16/88]

blender::bke::tests::TEST ( AssetMetadataTest  ,
set_catalog_id   
)

◆ TEST() [17/88]

blender::bke::tests::TEST ( BKE_fcurve  ,
BKE_fcurve_keyframe_move_value_with_handles   
)

◆ TEST() [18/88]

blender::bke::tests::TEST ( curves_geometry  ,
BezierGenericEvaluation   
)

◆ TEST() [19/88]

blender::bke::tests::TEST ( curves_geometry  ,
BezierPositionEvaluation   
)

◆ TEST() [20/88]

blender::bke::tests::TEST ( curves_geometry  ,
CatmullRomEvaluation   
)

◆ TEST() [21/88]

blender::bke::tests::TEST ( curves_geometry  ,
CatmullRomTwoPointCyclic   
)

Definition at line 222 of file curves_geometry_test.cc.

References CURVE_TYPE_CATMULL_ROM, curves, and EXPECT_EQ().

◆ TEST() [22/88]

blender::bke::tests::TEST ( curves_geometry  ,
Empty   
)

◆ TEST() [23/88]

blender::bke::tests::TEST ( curves_geometry  ,
Move   
)

◆ TEST() [24/88]

blender::bke::tests::TEST ( curves_geometry  ,
NURBSEvaluation   
)

◆ TEST() [25/88]

blender::bke::tests::TEST ( curves_geometry  ,
TypeCount   
)

◆ TEST() [26/88]

blender::bke::tests::TEST ( evaluate_fcurve  ,
EmptyFCurve   
)

Definition at line 19 of file fcurve_test.cc.

References BKE_fcurve_create(), BKE_fcurve_free(), evaluate_fcurve(), and EXPECT_EQ().

◆ TEST() [27/88]

blender::bke::tests::TEST ( evaluate_fcurve  ,
ExtrapolationBezierKeys   
)

◆ TEST() [28/88]

blender::bke::tests::TEST ( evaluate_fcurve  ,
ExtrapolationLinearKeys   
)

◆ TEST() [29/88]

blender::bke::tests::TEST ( evaluate_fcurve  ,
InterpolationBezier   
)

◆ TEST() [30/88]

blender::bke::tests::TEST ( evaluate_fcurve  ,
InterpolationBounce   
)

◆ TEST() [31/88]

blender::bke::tests::TEST ( evaluate_fcurve  ,
InterpolationConstant   
)

◆ TEST() [32/88]

blender::bke::tests::TEST ( evaluate_fcurve  ,
InterpolationLinear   
)

◆ TEST() [33/88]

blender::bke::tests::TEST ( evaluate_fcurve  ,
OnKeys   
)

◆ TEST() [34/88]

blender::bke::tests::TEST ( fcurve_active_keyframe  ,
ActiveKeyframe   
)

◆ TEST() [35/88]

blender::bke::tests::TEST ( fcurve_subdivide  ,
BKE_fcurve_bezt_subdivide_handles   
)

◆ TEST() [36/88]

blender::bke::tests::TEST ( lattice_deform_performance  ,
performance_no_dvert_1   
)

◆ TEST() [37/88]

blender::bke::tests::TEST ( lattice_deform_performance  ,
performance_no_dvert_1000   
)

◆ TEST() [38/88]

blender::bke::tests::TEST ( lattice_deform_performance  ,
performance_no_dvert_10000   
)

◆ TEST() [39/88]

blender::bke::tests::TEST ( lattice_deform_performance  ,
performance_no_dvert_100000   
)

◆ TEST() [40/88]

blender::bke::tests::TEST ( lattice_deform_performance  ,
performance_no_dvert_1000000   
)

◆ TEST() [41/88]

blender::bke::tests::TEST ( lattice_deform_performance  ,
performance_no_dvert_10000000   
)

◆ TEST() [42/88]

blender::bke::tests::TEST ( lib_id_main_sort  ,
linked_ids_1   
)

◆ TEST() [43/88]

blender::bke::tests::TEST ( lib_id_main_sort  ,
local_ids_1   
)

◆ TEST() [44/88]

blender::bke::tests::TEST ( lib_id_main_unique_name  ,
create_equivalent_numeric_suffixes   
)

◆ TEST() [45/88]

blender::bke::tests::TEST ( lib_id_main_unique_name  ,
ids_sorted_by_default   
)

◆ TEST() [46/88]

blender::bke::tests::TEST ( lib_id_main_unique_name  ,
ids_sorted_by_default_with_libraries   
)

◆ TEST() [47/88]

blender::bke::tests::TEST ( lib_id_main_unique_name  ,
linked_ids_1   
)

◆ TEST() [48/88]

blender::bke::tests::TEST ( lib_id_main_unique_name  ,
local_ids_1   
)

◆ TEST() [49/88]

blender::bke::tests::TEST ( lib_id_main_unique_name  ,
name_huge_number_suffix   
)

◆ TEST() [50/88]

blender::bke::tests::TEST ( lib_id_main_unique_name  ,
name_number_suffix_assignment   
)

◆ TEST() [51/88]

blender::bke::tests::TEST ( lib_id_main_unique_name  ,
name_too_long_handling   
)

◆ TEST() [52/88]

blender::bke::tests::TEST ( lib_id_main_unique_name  ,
names_are_unique_per_id_type   
)

◆ TEST() [53/88]

blender::bke::tests::TEST ( lib_id_main_unique_name  ,
remove_after_dup_get_original_name   
)

◆ TEST() [54/88]

blender::bke::tests::TEST ( lib_id_main_unique_name  ,
renames_with_duplicates   
)

◆ TEST() [55/88]

blender::bke::tests::TEST ( lib_id_main_unique_name  ,
zero_suffix_is_never_assigned   
)

◆ TEST() [56/88]

blender::bke::tests::TEST ( lib_remap  ,
delete_when_remap_to_self_not_allowed   
)

◆ TEST() [57/88]

blender::bke::tests::TEST ( lib_remap  ,
do_not_delete_when_cannot_unset   
)

◆ TEST() [58/88]

blender::bke::tests::TEST ( lib_remap  ,
embedded_ids_can_not_be_deleted   
)

◆ TEST() [59/88]

blender::bke::tests::TEST ( lib_remap  ,
embedded_ids_can_not_be_remapped   
)

◆ TEST() [60/88]

blender::bke::tests::TEST ( lib_remap  ,
force_never_null_usage   
)

◆ TEST() [61/88]

blender::bke::tests::TEST ( lib_remap  ,
never_null_usage_flag_not_requested_on_delete   
)

◆ TEST() [62/88]

blender::bke::tests::TEST ( lib_remap  ,
never_null_usage_flag_not_requested_on_remap   
)

◆ TEST() [63/88]

blender::bke::tests::TEST ( lib_remap  ,
never_null_usage_flag_requested_on_delete   
)

◆ TEST() [64/88]

blender::bke::tests::TEST ( lib_remap  ,
never_null_usage_flag_requested_on_remap   
)

◆ TEST() [65/88]

blender::bke::tests::TEST ( lib_remap  ,
users_are_decreased_when_not_skipping_never_null   
)

◆ TEST() [66/88]

blender::bke::tests::TEST ( lib_remap  ,
users_are_same_when_skipping_never_null   
)

◆ TEST() [67/88]

blender::bke::tests::TEST ( mat3_vec_to_roll  ,
Rotationmatrix   
)

Definition at line 77 of file armature_test.cc.

References eul_to_mat3(), FLOAT_EPSILON, and mat3_vec_to_roll().

◆ TEST() [68/88]

blender::bke::tests::TEST ( mat3_vec_to_roll  ,
UnitMatrix   
)

Definition at line 47 of file armature_test.cc.

References FLOAT_EPSILON, mat3_vec_to_roll(), normalize_v3(), and unit_m3().

◆ TEST() [69/88]

blender::bke::tests::TEST ( udim  ,
image_ensure_tile_token   
)

◆ TEST() [70/88]

blender::bke::tests::TEST ( udim  ,
image_get_tile_number_from_filepath   
)

◆ TEST() [71/88]

blender::bke::tests::TEST ( udim  ,
image_get_tile_strformat   
)

◆ TEST() [72/88]

blender::bke::tests::TEST ( udim  ,
image_set_filepath_from_tile_number   
)

◆ TEST() [73/88]

blender::bke::tests::TEST ( vec_roll_to_mat3_normalized  ,
Flipped1   
)

Definition at line 181 of file armature_test.cc.

References input, and test_vec_roll_to_mat3_normalized().

◆ TEST() [74/88]

blender::bke::tests::TEST ( vec_roll_to_mat3_normalized  ,
Flipped2   
)

Definition at line 190 of file armature_test.cc.

References e, input, and test_vec_roll_to_mat3_normalized().

◆ TEST() [75/88]

blender::bke::tests::TEST ( vec_roll_to_mat3_normalized  ,
Flipped3   
)

Definition at line 201 of file armature_test.cc.

References input, and test_vec_roll_to_mat3_normalized().

◆ TEST() [76/88]

blender::bke::tests::TEST ( vec_roll_to_mat3_normalized  ,
FlippedBoundary1   
)

Definition at line 170 of file armature_test.cc.

References find_flip_boundary().

◆ TEST() [77/88]

blender::bke::tests::TEST ( vec_roll_to_mat3_normalized  ,
FlippedBoundary2   
)

Definition at line 175 of file armature_test.cc.

References find_flip_boundary().

◆ TEST() [78/88]

blender::bke::tests::TEST ( vec_roll_to_mat3_normalized  ,
Generic1   
)

Definition at line 245 of file armature_test.cc.

References input, and test_vec_roll_to_mat3_normalized().

◆ TEST() [79/88]

blender::bke::tests::TEST ( vec_roll_to_mat3_normalized  ,
Generic2   
)

Definition at line 254 of file armature_test.cc.

References input, and test_vec_roll_to_mat3_normalized().

◆ TEST() [80/88]

blender::bke::tests::TEST ( vec_roll_to_mat3_normalized  ,
Generic3   
)

Definition at line 263 of file armature_test.cc.

References input, and test_vec_roll_to_mat3_normalized().

◆ TEST() [81/88]

blender::bke::tests::TEST ( vec_roll_to_mat3_normalized  ,
Generic4   
)

Definition at line 272 of file armature_test.cc.

References input, and test_vec_roll_to_mat3_normalized().

◆ TEST() [82/88]

blender::bke::tests::TEST ( vec_roll_to_mat3_normalized  ,
Roll1   
)

Definition at line 282 of file armature_test.cc.

References input, M_PI_2, and test_vec_roll_to_mat3_normalized().

◆ TEST() [83/88]

blender::bke::tests::TEST ( vec_roll_to_mat3_normalized  ,
Rotate90_X_CCW   
)

Definition at line 236 of file armature_test.cc.

References input, and test_vec_roll_to_mat3_normalized().

◆ TEST() [84/88]

blender::bke::tests::TEST ( vec_roll_to_mat3_normalized  ,
Rotate90_X_CW   
)

Definition at line 228 of file armature_test.cc.

References input, and test_vec_roll_to_mat3_normalized().

◆ TEST() [85/88]

blender::bke::tests::TEST ( vec_roll_to_mat3_normalized  ,
Rotate90_Z_CCW   
)

Definition at line 220 of file armature_test.cc.

References input, and test_vec_roll_to_mat3_normalized().

◆ TEST() [86/88]

blender::bke::tests::TEST ( vec_roll_to_mat3_normalized  ,
Rotate90_Z_CW   
)

Definition at line 212 of file armature_test.cc.

References input, and test_vec_roll_to_mat3_normalized().

◆ TEST() [87/88]

blender::bke::tests::TEST ( view_layer  ,
aov_conflict   
)

◆ TEST() [88/88]

blender::bke::tests::TEST ( view_layer  ,
aov_unique_names   
)

◆ TEST_F() [1/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
backups   
)

◆ TEST_F() [2/58]

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

◆ TEST_F() [3/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
cat_collection_deep_copy__nonempty_cdf   
)

◆ TEST_F() [4/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
cat_collection_deep_copy__nonempty_nocdf   
)

◆ TEST_F() [5/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
create_catalog_after_loading_file   
)

◆ TEST_F() [6/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
create_catalog_filter   
)

◆ TEST_F() [7/58]

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

◆ TEST_F() [8/58]

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

◆ TEST_F() [9/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
create_catalog_path_cleanup   
)

◆ TEST_F() [10/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
create_catalog_simple_name   
)

◆ TEST_F() [11/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
create_first_catalog_from_scratch   
)

◆ TEST_F() [12/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
create_missing_catalogs   
)

◆ TEST_F() [13/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
create_missing_catalogs_after_loading   
)

◆ TEST_F() [14/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
delete_catalog_leaf   
)

◆ TEST_F() [15/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
delete_catalog_parent_by_id   
)

◆ TEST_F() [16/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
delete_catalog_parent_by_path   
)

◆ TEST_F() [17/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
delete_catalog_write_to_disk   
)

◆ TEST_F() [18/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
find_catalog_by_path   
)

◆ TEST_F() [19/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
foreach_in_tree   
)

◆ TEST_F() [20/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
insert_item_into_tree   
)

Definition at line 356 of file asset_catalog_test.cc.

References blender::bke::AssetCatalog::from_path(), and tree.

◆ TEST_F() [21/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
is_first_loaded_flag   
)

◆ TEST_F() [22/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
load_catalog_path_backslashes   
)

◆ TEST_F() [23/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
load_single_file   
)

◆ TEST_F() [24/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
load_single_file_into_tree   
)

◆ TEST_F() [25/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
merge_catalog_files   
)

◆ TEST_F() [26/58]

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

◆ TEST_F() [27/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
on_blendfile_save__from_memory_into_empty_directory   
)

◆ TEST_F() [28/58]

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

Definition at line 696 of file asset_catalog_test.cc.

◆ TEST_F() [29/58]

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

Definition at line 687 of file asset_catalog_test.cc.

◆ TEST_F() [30/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
on_blendfile_save__from_memory_into_existing_cdf_and_merge   
)

◆ TEST_F() [31/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
on_blendfile_save__with_existing_cdf   
)

◆ TEST_F() [32/58]

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

◆ TEST_F() [33/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
order_by_path_and_first_seen   
)

◆ TEST_F() [34/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
read_write_unicode_filepath   
)

◆ TEST_F() [35/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
refresh_catalogs_with_modification   
)

◆ TEST_F() [36/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
undo_redo_more_complex   
)

◆ TEST_F() [37/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
undo_redo_one_step   
)

◆ TEST_F() [38/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
update_catalog_path   
)

◆ TEST_F() [39/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
update_catalog_path_add_slashes   
)

◆ TEST_F() [40/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
update_catalog_path_longer_than_simplename   
)

◆ TEST_F() [41/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
update_catalog_path_simple_name   
)

◆ TEST_F() [42/58]

blender::bke::tests::TEST_F ( AssetCatalogTest  ,
write_single_file   
)

◆ TEST_F() [43/58]

blender::bke::tests::TEST_F ( AssetLibraryServiceTest  ,
catalogs_loaded   
)

◆ TEST_F() [44/58]

blender::bke::tests::TEST_F ( AssetLibraryServiceTest  ,
get_destroy   
)

◆ TEST_F() [45/58]

blender::bke::tests::TEST_F ( AssetLibraryServiceTest  ,
has_any_unsaved_catalogs   
)

◆ TEST_F() [46/58]

blender::bke::tests::TEST_F ( AssetLibraryServiceTest  ,
has_any_unsaved_catalogs_after_write   
)

◆ TEST_F() [47/58]

blender::bke::tests::TEST_F ( AssetLibraryServiceTest  ,
library_path_trailing_slashes   
)

◆ TEST_F() [48/58]

blender::bke::tests::TEST_F ( AssetLibraryServiceTest  ,
library_pointers   
)

◆ TEST_F() [49/58]

blender::bke::tests::TEST_F ( AssetLibraryTest  ,
bke_asset_library_load   
)

◆ TEST_F() [50/58]

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

◆ TEST_F() [51/58]

blender::bke::tests::TEST_F ( BKE_armature_find_selected_bones_test  ,
all_bones_selected   
)

◆ TEST_F() [52/58]

blender::bke::tests::TEST_F ( BKE_armature_find_selected_bones_test  ,
no_bones_selected   
)

◆ TEST_F() [53/58]

blender::bke::tests::TEST_F ( BKE_armature_find_selected_bones_test  ,
some_bones_selected   
)

◆ TEST_F() [54/58]

blender::bke::tests::TEST_F ( BPathTest  ,
convert_to_absolute   
)

◆ TEST_F() [55/58]

blender::bke::tests::TEST_F ( BPathTest  ,
convert_to_relative   
)

◆ TEST_F() [56/58]

blender::bke::tests::TEST_F ( BPathTest  ,
list_backup_restore   
)

◆ TEST_F() [57/58]

blender::bke::tests::TEST_F ( BPathTest  ,
rebase_on_absolute   
)

◆ TEST_F() [58/58]

blender::bke::tests::TEST_F ( BPathTest  ,
rebase_on_relative   
)

◆ test_lattice_deform()

static void blender::bke::tests::test_lattice_deform ( LatticeDeformTestContext ctx,
int32_t  num_items 
)
static

◆ test_lattice_deform_free()

static void blender::bke::tests::test_lattice_deform_free ( LatticeDeformTestContext ctx)
static

◆ test_lattice_deform_init()

static void blender::bke::tests::test_lattice_deform_init ( LatticeDeformTestContext ctx,
RandomNumberGenerator rng,
int32_t  num_items 
)
static

◆ test_lib_id_main_sort_check_order()

static void blender::bke::tests::test_lib_id_main_sort_check_order ( std::initializer_list< ID * >  list)
static

Definition at line 35 of file lib_id_test.cc.

References EXPECT_EQ(), id, ID::next, and ID::prev.

Referenced by TEST().

◆ test_render_pass_conflict()

static void blender::bke::tests::test_render_pass_conflict ( Scene scene,
RenderEngine engine,
ViewLayer view_layer,
ViewLayerAOV aov,
const char *  render_pass_name,
const char *  rna_prop_name 
)
static

◆ test_vec_roll_to_mat3_normalized()

static double blender::bke::tests::test_vec_roll_to_mat3_normalized ( const float  input[3],
float  roll,
const float  expected_roll_mat[3][3],
bool  normalize = true 
)
static

Generic function to test vec_roll_to_mat3_normalized.

Definition at line 111 of file armature_test.cc.

References copy_v3_v3(), EXPECT_M3_ORTHOGONAL(), input, blender::math::normalize(), normalize_v3_v3(), ORTHO_EPSILON, SCALE_EPSILON, and vec_roll_to_mat3_normalized().

Referenced by TEST(), and test_vec_roll_to_mat3_orthogonal().

◆ test_vec_roll_to_mat3_orthogonal() [1/2]

static double blender::bke::tests::test_vec_roll_to_mat3_orthogonal ( double  s,
double  x,
double  z 
)
static

Test that the matrix is orthogonal for an input close to -Y.

Definition at line 292 of file armature_test.cc.

References float(), input, sqrt(), test_vec_roll_to_mat3_normalized(), x, and z.

Referenced by test_vec_roll_to_mat3_orthogonal().

◆ test_vec_roll_to_mat3_orthogonal() [2/2]

static void blender::bke::tests::test_vec_roll_to_mat3_orthogonal ( double  s,
double  x1,
double  x2,
double  y1,
double  y2 
)
static

Test that the matrix is orthogonal for a range of inputs close to -Y.

Definition at line 300 of file armature_test.cc.

References blender::math::abs(), count, double(), interpd(), t, test_vec_roll_to_mat3_orthogonal(), x2, and y1.

Variable Documentation

◆ EPSILON

const float blender::bke::tests::EPSILON = 1e-7f
static

Definition at line 17 of file fcurve_test.cc.

Referenced by TEST().

◆ FLOAT_EPSILON

const float blender::bke::tests::FLOAT_EPSILON = 1.2e-7
static

Definition at line 15 of file armature_test.cc.

Referenced by TEST().

◆ ORTHO_EPSILON

const float blender::bke::tests::ORTHO_EPSILON = 5e-5
static

Definition at line 18 of file armature_test.cc.

Referenced by test_vec_roll_to_mat3_normalized().

◆ SCALE_EPSILON

const float blender::bke::tests::SCALE_EPSILON = 3.71e-5
static

Definition at line 17 of file armature_test.cc.

Referenced by test_vec_roll_to_mat3_normalized().

◆ UUID_AGENT_47

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

Referenced by TEST_F().

◆ UUID_ANOTHER_RUZENA

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

Referenced by TEST_F().

◆ UUID_ID_WITHOUT_PATH

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

Referenced by TEST_F().

◆ UUID_POSES_ELLIE

const bUUID blender::bke::tests::UUID_POSES_ELLIE ( "df60e1f6-2259-475b-93d9-69a1b4a8db78"  )

◆ UUID_POSES_ELLIE_BACKSLASHES

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

Referenced by TEST_F().

◆ UUID_POSES_ELLIE_TRAILING_SLASH

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

Referenced by TEST_F().

◆ UUID_POSES_ELLIE_WHITESPACE

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

Referenced by TEST_F().

◆ UUID_POSES_RUZENA

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

Referenced by TEST_F().

◆ UUID_POSES_RUZENA_FACE

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

Referenced by TEST_F().

◆ UUID_POSES_RUZENA_HAND

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

Referenced by TEST_F().

◆ UUID_WITHOUT_SIMPLENAME

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

Referenced by TEST_F().