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

Classes

class  BKE_armature_find_selected_bones_test
 
class  BMainMergeTest
 
class  BMainTest
 
class  BPathTest
 
class  CompositorTestData
 
class  Context
 
class  IDSubDataTestData
 
class  ImageTest
 
struct  LibIDMainSortTestContext
 
class  MeshObjectTestData
 
class  MeshTestData
 
class  SceneTestData
 
class  TestData
 
class  TwoMeshesTestData
 
class  WholeIDTestData
 

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 (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 (BKE_fcurve, BKE_fcurve_keyframe_move_time_with_handles)
 
 TEST (BKE_fcurve, BKE_fcurve_calc_range)
 
 TEST (BKE_fcurve, BKE_fcurve_calc_bounds)
 
static void set_key (FCurve *fcu, const int index, const float x, const float y)
 
static FCurvetestcurve_with_duplicates ()
 
 TEST (BKE_fcurve, sort_time_fcurve_stability)
 
 TEST (BKE_fcurve, BKE_fcurve_deduplicate_keys)
 
 TEST (BKE_fcurve, BKE_fcurve_deduplicate_keys_edge_cases)
 
 TEST (BKE_fcurve, BKE_fcurve_deduplicate_keys_prefer_whole_frames)
 
static void file_handler_add_test (const int test_number, const char *idname, const char *label, const char *file_extensions_str, blender::Vector< std::string > expected_file_extensions)
 
 TEST (file_handler, add)
 
 TEST (file_handler, find)
 
 TEST (file_handler, remove)
 
 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)
 
 TEST_F (ImageTest, multilayer)
 
 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 IDNewNameResult change_name (Main *bmain, ID *id, const char *name, const IDNewNameMode mode)
 
 TEST (lib_id_main_sort, linked_ids_1)
 
 TEST (lib_id_main_unique_name, local_ids_rename_existing_never)
 
 TEST (lib_id_main_unique_name, local_ids_rename_existing_always)
 
 TEST (lib_id_main_unique_name, local_ids_rename_existing_same_root)
 
 TEST (lib_id_main_unique_name, linked_ids_1)
 
static void change_name_global (Main *bmain, ID *id, const char *name)
 
 TEST (lib_id_main_global_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)
 
 TEST_F (BMainMergeTest, basics)
 
 TEST_F (BMainMergeTest, linked_data)
 
 TEST (nla_strip, BKE_nlastrip_recalculate_blend)
 
 TEST (nla_strip, BKE_nlastrips_add_strip)
 
 TEST (nla_strip, BKE_nla_clip_length_get_nonzero)
 
 TEST (nla_strip, BKE_nla_clip_length_ensure_nonzero)
 
 TEST (nla_track, BKE_nlatrack_remove_strip)
 
 TEST (nla_track, BKE_nlatrack_remove_and_free)
 
 TEST (nla_track, BKE_nlatrack_new_tail)
 
 TEST (nla_track, BKE_nlatrack_new_head)
 
 TEST (subdiv_ccg_coord, to_index)
 
 TEST (subdiv_ccg_coord, constructor)
 
Tests.
 TEST (lib_query, libquery_basic)
 
 TEST (lib_query, libquery_recursive)
 
 TEST (lib_query, libquery_subdata)
 
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_storage_requested_on_delete)
 
 TEST (lib_remap, never_null_usage_flag_not_requested_on_remap)
 
 TEST (lib_remap, never_null_usage_storage_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
 
static const float EPSILON = 1e-7f
 
static FileHandlerTypetest_file_handlers [MAX_FILE_HANDLERS_TEST_SIZE]
 

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 386 of file lib_id_test.cc.

References BKE_id_new(), change_lib(), 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 64 of file lib_id_test.cc.

References BKE_main_namemap_get_name(), BKE_main_namemap_remove_name(), and lib.

Referenced by add_id_in_library(), TEST(), TEST(), and TEST().

◆ change_name()

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

Definition at line 74 of file lib_id_test.cc.

References BKE_libblock_rename().

Referenced by TEST(), TEST(), TEST(), TEST(), and TEST().

◆ change_name_global()

static void blender::bke::tests::change_name_global ( 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 15 of file curves_geometry_test.cc.

References float.

Referenced by TEST(), and 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 27 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().

◆ file_handler_add_test()

static void blender::bke::tests::file_handler_add_test ( const int test_number,
const char * idname,
const char * label,
const char * file_extensions_str,
blender::Vector< std::string > expected_file_extensions )
static

◆ 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 145 of file armature_test.cc.

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

Referenced by TEST(), and TEST().

◆ set_key()

static void blender::bke::tests::set_key ( FCurve * fcu,
const int index,
const float x,
const float y )
static

Definition at line 634 of file fcurve_test.cc.

References FCurve::bezt, BezTriple::vec, x, and y.

Referenced by TEST(), TEST(), and testcurve_with_duplicates().

◆ TEST() [1/95]

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

◆ TEST() [2/95]

◆ TEST() [3/95]

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

◆ TEST() [4/95]

◆ TEST() [5/95]

◆ TEST() [6/95]

◆ TEST() [7/95]

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

◆ TEST() [8/95]

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

◆ TEST() [9/95]

◆ TEST() [10/95]

◆ TEST() [11/95]

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

◆ TEST() [12/95]

◆ TEST() [13/95]

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

◆ TEST() [14/95]

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

◆ TEST() [15/95]

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

Definition at line 220 of file curves_geometry_test.cc.

References CURVE_TYPE_CATMULL_ROM, and EXPECT_EQ().

◆ TEST() [16/95]

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

◆ TEST() [17/95]

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

◆ TEST() [18/95]

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

Definition at line 316 of file curves_geometry_test.cc.

References CURVE_TYPE_NURBS, and blender::Span< T >::index_range().

◆ TEST() [19/95]

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

◆ TEST() [20/95]

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

Definition at line 24 of file fcurve_test.cc.

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

◆ TEST() [21/95]

◆ TEST() [22/95]

◆ TEST() [23/95]

◆ TEST() [24/95]

◆ TEST() [25/95]

◆ TEST() [26/95]

◆ TEST() [27/95]

◆ TEST() [28/95]

◆ TEST() [29/95]

◆ TEST() [30/95]

blender::bke::tests::TEST ( file_handler ,
add  )

Definition at line 39 of file file_handler_test.cc.

References file_handler_add_test().

◆ TEST() [31/95]

blender::bke::tests::TEST ( file_handler ,
find  )

◆ TEST() [32/95]

blender::bke::tests::TEST ( file_handler ,
remove  )

FileHandlerType pointer in test_file_handlers[1] is not longer valid.

FileHandlerType pointer in test_file_handlers[7] is not longer valid.

Definition at line 70 of file file_handler_test.cc.

References EXPECT_EQ(), blender::bke::file_handler_find(), blender::bke::file_handler_remove(), blender::bke::file_handlers(), MAX_FILE_HANDLERS_TEST_SIZE, size(), and test_file_handlers.

◆ TEST() [33/95]

◆ TEST() [34/95]

◆ TEST() [35/95]

◆ TEST() [36/95]

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

◆ TEST() [37/95]

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

◆ TEST() [38/95]

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

◆ TEST() [39/95]

◆ TEST() [40/95]

◆ TEST() [41/95]

◆ TEST() [42/95]

◆ TEST() [43/95]

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

◆ TEST() [44/95]

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

◆ TEST() [45/95]

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

◆ TEST() [46/95]

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

◆ TEST() [47/95]

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

◆ TEST() [48/95]

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

◆ TEST() [49/95]

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

◆ TEST() [50/95]

◆ TEST() [51/95]

blender::bke::tests::TEST ( lib_query ,
libquery_recursive  )

◆ TEST() [52/95]

◆ TEST() [53/95]

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

Definition at line 204 of file lib_remap_test.cc.

References BKE_libblock_remap(), and EXPECT_EQ().

◆ TEST() [54/95]

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

◆ TEST() [55/95]

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

◆ TEST() [56/95]

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

◆ TEST() [57/95]

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

◆ TEST() [58/95]

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

◆ TEST() [59/95]

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

◆ TEST() [60/95]

◆ TEST() [61/95]

◆ TEST() [62/95]

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

Definition at line 224 of file lib_remap_test.cc.

References BKE_libblock_remap(), EXPECT_EQ(), and ID_TAG_DOIT.

◆ TEST() [63/95]

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

◆ TEST() [64/95]

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

Definition at line 83 of file armature_test.cc.

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

◆ TEST() [65/95]

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

Definition at line 53 of file armature_test.cc.

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

◆ TEST() [66/95]

blender::bke::tests::TEST ( nla_strip ,
BKE_nla_clip_length_ensure_nonzero  )

◆ TEST() [67/95]

blender::bke::tests::TEST ( nla_strip ,
BKE_nla_clip_length_get_nonzero  )

◆ TEST() [68/95]

blender::bke::tests::TEST ( nla_strip ,
BKE_nlastrip_recalculate_blend  )

◆ TEST() [69/95]

blender::bke::tests::TEST ( nla_strip ,
BKE_nlastrips_add_strip  )

Definition at line 45 of file blenkernel/intern/nla_test.cc.

References BKE_nlastrips_add_strip(), and NlaStrip::start.

◆ TEST() [70/95]

blender::bke::tests::TEST ( nla_track ,
BKE_nlatrack_new_head  )

◆ TEST() [71/95]

blender::bke::tests::TEST ( nla_track ,
BKE_nlatrack_new_tail  )

◆ TEST() [72/95]

◆ TEST() [73/95]

◆ TEST() [74/95]

◆ TEST() [75/95]

◆ TEST() [76/95]

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

◆ TEST() [77/95]

◆ TEST() [78/95]

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

◆ TEST() [79/95]

◆ TEST() [80/95]

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

Definition at line 187 of file armature_test.cc.

References test_vec_roll_to_mat3_normalized().

◆ TEST() [81/95]

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

Definition at line 196 of file armature_test.cc.

References e, and test_vec_roll_to_mat3_normalized().

◆ TEST() [82/95]

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

Definition at line 207 of file armature_test.cc.

References test_vec_roll_to_mat3_normalized().

◆ TEST() [83/95]

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

Definition at line 176 of file armature_test.cc.

References find_flip_boundary().

◆ TEST() [84/95]

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

Definition at line 181 of file armature_test.cc.

References find_flip_boundary().

◆ TEST() [85/95]

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

Definition at line 251 of file armature_test.cc.

References test_vec_roll_to_mat3_normalized().

◆ TEST() [86/95]

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

Definition at line 260 of file armature_test.cc.

References test_vec_roll_to_mat3_normalized().

◆ TEST() [87/95]

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

Definition at line 269 of file armature_test.cc.

References test_vec_roll_to_mat3_normalized().

◆ TEST() [88/95]

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

Definition at line 278 of file armature_test.cc.

References test_vec_roll_to_mat3_normalized().

◆ TEST() [89/95]

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

Definition at line 288 of file armature_test.cc.

References M_PI_2, and test_vec_roll_to_mat3_normalized().

◆ TEST() [90/95]

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

Definition at line 242 of file armature_test.cc.

References test_vec_roll_to_mat3_normalized().

◆ TEST() [91/95]

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

Definition at line 234 of file armature_test.cc.

References test_vec_roll_to_mat3_normalized().

◆ TEST() [92/95]

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

Definition at line 226 of file armature_test.cc.

References test_vec_roll_to_mat3_normalized().

◆ TEST() [93/95]

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

Definition at line 218 of file armature_test.cc.

References test_vec_roll_to_mat3_normalized().

◆ TEST() [94/95]

◆ TEST() [95/95]

◆ TEST_F() [1/11]

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

◆ TEST_F() [2/11]

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

Definition at line 397 of file armature_test.cc.

References blender::bke::BKE_armature_find_selected_bones(), and callback.

◆ TEST_F() [3/11]

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

◆ TEST_F() [4/11]

◆ TEST_F() [5/11]

◆ TEST_F() [6/11]

◆ TEST_F() [7/11]

◆ TEST_F() [8/11]

◆ TEST_F() [9/11]

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

◆ TEST_F() [10/11]

◆ TEST_F() [11/11]

blender::bke::tests::TEST_F ( ImageTest ,
multilayer  )

Definition at line 303 of file source/blender/blenkernel/intern/image_test.cc.

References SEP_STR.

◆ 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 36 of file lib_id_test.cc.

References EXPECT_EQ(), and ID::next.

Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and 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

◆ 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 298 of file armature_test.cc.

References float, sqrt(), test_vec_roll_to_mat3_normalized(), 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 306 of file armature_test.cc.

References abs(), count, double(), interpd(), printf, and test_vec_roll_to_mat3_orthogonal().

◆ testcurve_with_duplicates()

static FCurve * blender::bke::tests::testcurve_with_duplicates ( )
static

Definition at line 645 of file fcurve_test.cc.

References BEZT_BINARYSEARCH_THRESH, BKE_fcurve_create(), ED_keyframes_add(), and set_key().

Referenced by TEST(), TEST(), TEST(), and TEST().

Variable Documentation

◆ EPSILON

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

Definition at line 22 of file fcurve_test.cc.

Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().

◆ FLOAT_EPSILON

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

Definition at line 21 of file armature_test.cc.

Referenced by TEST(), and TEST().

◆ ORTHO_EPSILON

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

Definition at line 24 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 23 of file armature_test.cc.

Referenced by test_vec_roll_to_mat3_normalized().

◆ test_file_handlers

FileHandlerType* blender::bke::tests::test_file_handlers[MAX_FILE_HANDLERS_TEST_SIZE]
static

Definition at line 13 of file file_handler_test.cc.

Referenced by file_handler_add_test(), TEST(), and TEST().