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

Classes

class  BKE_armature_find_selected_bones_test
 
class  BMainMergeTest
 
class  BMainTest
 
class  BPathTest
 
class  GreasePencilInterpolate
 
class  IDSubDataTestData
 
class  ImageTest
 
struct  LibIDMainSortTestContext
 
class  LibQueryTest
 
class  LibRemapTest
 
class  MaterialTestData
 
class  MeshObjectTestData
 
class  MeshTestData
 
class  PaintBVHTest
 
struct  PathTemplateTestCase
 
class  TestData
 
class  TwoMeshesTestData
 
class  WholeIDTestData
 

Functions

 TEST (action_groups, ReconstructGroupsWithReordering)
 
 TEST (action_assets, BKE_action_has_single_frame)
 
 TEST (anim_data, BKE_fcurves_id_cb_test)
 
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 (attribute_storage, Empty)
 
 TEST (attribute_storage, Single)
 
 TEST (attribute_storage, GetForWrite)
 
 TEST (attribute_storage, MultipleShared)
 
 TEST (attribute_storage, CopyConstruct)
 
 TEST (attribute_storage, MoveConstruct)
 
 TEST (attribute_storage, UniqueNames)
 
 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 (knot_vector, KnotVectorUniform)
 
 TEST (knot_vector, KnotVectorUniformClamped)
 
 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, re_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 (lib_id_make_local, brush)
 
 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)
 
static std::string error_to_string (const Error &error)
 
static std::string errors_to_string (Span< Error > errors)
 
 TEST (path_templates, VariableMap)
 
 TEST (path_templates, validate_and_apply_template)
 
 TEST (subdiv_ccg_coord, to_index)
 
 TEST (subdiv_ccg_coord, constructor)
 
 TEST_F (PaintBVHTest, from_mesh)
 
 TEST_F (GreasePencilInterpolate, sample_curve_empty_output)
 
 TEST_F (GreasePencilInterpolate, sample_curve_same_length)
 
 TEST_F (GreasePencilInterpolate, sample_curve_shorter)
 
 TEST_F (GreasePencilInterpolate, sample_curve_longer)
 
 TEST_F (GreasePencilInterpolate, sample_zero_length_curve)
 
Knot vector: KnotMode::NURBS_KNOT_MODE_ENDPOINT_BEZIER
 TEST (knot_vector, KnotVectorBezierClampedSegmentDeg2)
 
 TEST (knot_vector, KnotVectorBezierClampedSegmentDeg4)
 
 TEST (knot_vector, KnotVectorBezierClampedDeg2)
 
 TEST (knot_vector, KnotVectorBezierClampedUnevenDeg2)
 
 TEST (knot_vector, KnotVectorBezierClampedDeg4)
 
 TEST (knot_vector, KnotVectorBezierClampedUnevenDeg4)
 
 TEST (knot_vector, KnotVectorCircleCyclicUnevenDeg2)
 
 TEST (knot_vector, KnotVectorBezierClampedCyclicUnevenDeg4)
 
Knot vector: KnotMode::NURBS_KNOT_MODE_BEZIER
 TEST (knot_vector, KnotVectorBezierSegmentDeg2)
 
 TEST (knot_vector, KnotVectorBezierUnevenDeg2)
 
 TEST (knot_vector, KnotVectorBezierUnevenDeg4)
 
 TEST (knot_vector, KnotVectorBezierCyclicUnevenDeg4)
 
Query Tests
 TEST_F (LibQueryTest, libquery_basic)
 
 TEST_F (LibQueryTest, libquery_recursive)
 
 TEST_F (LibQueryTest, libquery_subdata)
 
Embedded IDs
 TEST_F (LibRemapTest, embedded_ids_can_not_be_remapped)
 
 TEST_F (LibRemapTest, embedded_ids_can_not_be_deleted)
 
Remap to self
 TEST_F (LibRemapTest, delete_when_remap_to_self_not_allowed)
 
User Reference Counting
 TEST_F (LibRemapTest, users_are_decreased_when_not_skipping_never_null)
 
 TEST_F (LibRemapTest, users_are_same_when_skipping_never_null)
 
Never Null
 TEST_F (LibRemapTest, do_not_delete_when_cannot_unset)
 
 TEST_F (LibRemapTest, force_never_null_usage)
 
 TEST_F (LibRemapTest, never_null_usage_flag_not_requested_on_delete)
 
 TEST_F (LibRemapTest, never_null_usage_storage_requested_on_delete)
 
 TEST_F (LibRemapTest, never_null_usage_flag_not_requested_on_remap)
 
 TEST_F (LibRemapTest, 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 383 of file lib_id_test.cc.

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

Referenced by TEST().

◆ change_lib()

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

◆ change_name()

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

Definition at line 71 of file lib_id_test.cc.

References BKE_libblock_rename(), and name.

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

◆ error_to_string()

static std::string blender::bke::tests::error_to_string ( const Error & error)
static

Definition at line 15 of file path_templates_test.cc.

References error().

Referenced by errors_to_string().

◆ errors_to_string()

static std::string blender::bke::tests::errors_to_string ( Span< Error > errors)
static

Definition at line 43 of file path_templates_test.cc.

References error(), and error_to_string().

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

References copy_m3d_m3(), blender::math::determinant(), determinant(), dot_v3v3_db(), blender::math::length(), and blender::MatBase< T, NumCol, NumRow, Alignment >::ptr().

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

References e, input, M_1_PI, normalize_v3(), sqrt, vec_roll_to_mat3_normalized(), x, 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 632 of file fcurve_test.cc.

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

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

◆ TEST() [1/107]

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

◆ TEST() [2/107]

◆ TEST() [3/107]

◆ TEST() [4/107]

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

◆ TEST() [5/107]

blender::bke::tests::TEST ( attribute_storage ,
CopyConstruct  )

◆ TEST() [6/107]

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

◆ TEST() [7/107]

◆ TEST() [8/107]

blender::bke::tests::TEST ( attribute_storage ,
MoveConstruct  )

◆ TEST() [9/107]

◆ TEST() [10/107]

◆ TEST() [11/107]

◆ TEST() [12/107]

◆ TEST() [13/107]

◆ TEST() [14/107]

◆ TEST() [15/107]

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

◆ TEST() [16/107]

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

◆ TEST() [17/107]

◆ TEST() [18/107]

◆ TEST() [19/107]

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

◆ TEST() [20/107]

◆ TEST() [21/107]

◆ TEST() [22/107]

◆ TEST() [23/107]

◆ TEST() [24/107]

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

◆ TEST() [25/107]

◆ TEST() [26/107]

◆ TEST() [27/107]

◆ TEST() [28/107]

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

Definition at line 22 of file fcurve_test.cc.

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

◆ TEST() [29/107]

◆ TEST() [30/107]

◆ TEST() [31/107]

◆ TEST() [32/107]

◆ TEST() [33/107]

◆ TEST() [34/107]

◆ TEST() [35/107]

◆ TEST() [36/107]

◆ TEST() [37/107]

◆ TEST() [38/107]

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

Definition at line 39 of file file_handler_test.cc.

References file_handler_add_test().

◆ TEST() [39/107]

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

◆ TEST() [40/107]

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() [41/107]

◆ TEST() [42/107]

◆ TEST() [43/107]

◆ TEST() [44/107]

◆ TEST() [45/107]

◆ TEST() [46/107]

◆ TEST() [47/107]

◆ TEST() [48/107]

◆ TEST() [49/107]

◆ TEST() [50/107]

◆ TEST() [51/107]

◆ TEST() [52/107]

◆ TEST() [53/107]

◆ TEST() [54/107]

◆ TEST() [55/107]

◆ TEST() [56/107]

◆ TEST() [57/107]

◆ TEST() [58/107]

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

◆ TEST() [59/107]

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

◆ TEST() [60/107]

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

◆ TEST() [61/107]

◆ TEST() [62/107]

◆ TEST() [63/107]

◆ TEST() [64/107]

◆ TEST() [65/107]

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

◆ TEST() [66/107]

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

◆ TEST() [67/107]

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

◆ TEST() [68/107]

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

◆ TEST() [69/107]

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

◆ TEST() [70/107]

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

◆ TEST() [71/107]

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

◆ TEST() [72/107]

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

◆ TEST() [73/107]

◆ TEST() [74/107]

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

Definition at line 82 of file armature_test.cc.

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

◆ TEST() [75/107]

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

Definition at line 52 of file armature_test.cc.

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

◆ TEST() [76/107]

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

◆ TEST() [77/107]

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

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

References BKE_nla_clip_length_get_nonzero(), and strip.

◆ TEST() [78/107]

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

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

References BKE_nlastrip_recalculate_blend(), and strip.

◆ TEST() [79/107]

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

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

References BKE_nlastrips_add_strip(), and NlaStrip::start.

◆ TEST() [80/107]

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

◆ TEST() [81/107]

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

◆ TEST() [82/107]

◆ TEST() [83/107]

◆ TEST() [84/107]

◆ TEST() [85/107]

blender::bke::tests::TEST ( path_templates ,
VariableMap  )

Definition at line 63 of file path_templates_test.cc.

References EXPECT_EQ().

◆ TEST() [86/107]

blender::bke::tests::TEST ( subdiv_ccg_coord ,
constructor  )

◆ TEST() [87/107]

blender::bke::tests::TEST ( subdiv_ccg_coord ,
to_index  )

◆ TEST() [88/107]

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

◆ TEST() [89/107]

◆ TEST() [90/107]

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

◆ TEST() [91/107]

◆ TEST() [92/107]

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

Definition at line 186 of file armature_test.cc.

References input, and test_vec_roll_to_mat3_normalized().

◆ TEST() [93/107]

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

Definition at line 195 of file armature_test.cc.

References e, input, and test_vec_roll_to_mat3_normalized().

◆ TEST() [94/107]

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

Definition at line 206 of file armature_test.cc.

References input, and test_vec_roll_to_mat3_normalized().

◆ TEST() [95/107]

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

Definition at line 175 of file armature_test.cc.

References find_flip_boundary().

◆ TEST() [96/107]

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

Definition at line 180 of file armature_test.cc.

References find_flip_boundary().

◆ TEST() [97/107]

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

Definition at line 250 of file armature_test.cc.

References input, and test_vec_roll_to_mat3_normalized().

◆ TEST() [98/107]

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

Definition at line 259 of file armature_test.cc.

References input, and test_vec_roll_to_mat3_normalized().

◆ TEST() [99/107]

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

Definition at line 268 of file armature_test.cc.

References input, and test_vec_roll_to_mat3_normalized().

◆ TEST() [100/107]

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

Definition at line 277 of file armature_test.cc.

References input, and test_vec_roll_to_mat3_normalized().

◆ TEST() [101/107]

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

Definition at line 287 of file armature_test.cc.

References input, M_PI_2, and test_vec_roll_to_mat3_normalized().

◆ TEST() [102/107]

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

Definition at line 241 of file armature_test.cc.

References input, and test_vec_roll_to_mat3_normalized().

◆ TEST() [103/107]

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

Definition at line 233 of file armature_test.cc.

References input, and test_vec_roll_to_mat3_normalized().

◆ TEST() [104/107]

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

Definition at line 225 of file armature_test.cc.

References input, and test_vec_roll_to_mat3_normalized().

◆ TEST() [105/107]

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

Definition at line 217 of file armature_test.cc.

References input, and test_vec_roll_to_mat3_normalized().

◆ TEST() [106/107]

◆ TEST() [107/107]

◆ TEST_F() [1/31]

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

◆ TEST_F() [2/31]

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

◆ TEST_F() [3/31]

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

◆ TEST_F() [4/31]

◆ TEST_F() [5/31]

◆ TEST_F() [6/31]

◆ TEST_F() [7/31]

◆ TEST_F() [8/31]

◆ TEST_F() [9/31]

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

◆ TEST_F() [10/31]

◆ TEST_F() [11/31]

blender::bke::tests::TEST_F ( GreasePencilInterpolate ,
sample_curve_empty_output  )

Definition at line 115 of file GEO_interpolate_curves_test.cc.

◆ TEST_F() [12/31]

blender::bke::tests::TEST_F ( GreasePencilInterpolate ,
sample_curve_longer  )

Definition at line 182 of file GEO_interpolate_curves_test.cc.

◆ TEST_F() [13/31]

blender::bke::tests::TEST_F ( GreasePencilInterpolate ,
sample_curve_same_length  )

Definition at line 124 of file GEO_interpolate_curves_test.cc.

◆ TEST_F() [14/31]

blender::bke::tests::TEST_F ( GreasePencilInterpolate ,
sample_curve_shorter  )

Definition at line 164 of file GEO_interpolate_curves_test.cc.

◆ TEST_F() [15/31]

blender::bke::tests::TEST_F ( GreasePencilInterpolate ,
sample_zero_length_curve  )

Definition at line 276 of file GEO_interpolate_curves_test.cc.

◆ TEST_F() [16/31]

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

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

References SEP_STR.

◆ TEST_F() [17/31]

◆ TEST_F() [18/31]

blender::bke::tests::TEST_F ( LibQueryTest ,
libquery_recursive  )

◆ TEST_F() [19/31]

◆ TEST_F() [20/31]

blender::bke::tests::TEST_F ( LibRemapTest ,
delete_when_remap_to_self_not_allowed  )

Definition at line 177 of file lib_remap_test.cc.

References BKE_libblock_remap(), and EXPECT_EQ().

◆ TEST_F() [21/31]

blender::bke::tests::TEST_F ( LibRemapTest ,
do_not_delete_when_cannot_unset  )

◆ TEST_F() [22/31]

blender::bke::tests::TEST_F ( LibRemapTest ,
embedded_ids_can_not_be_deleted  )

◆ TEST_F() [23/31]

blender::bke::tests::TEST_F ( LibRemapTest ,
embedded_ids_can_not_be_remapped  )

◆ TEST_F() [24/31]

blender::bke::tests::TEST_F ( LibRemapTest ,
force_never_null_usage  )

◆ TEST_F() [25/31]

blender::bke::tests::TEST_F ( LibRemapTest ,
never_null_usage_flag_not_requested_on_delete  )

◆ TEST_F() [26/31]

blender::bke::tests::TEST_F ( LibRemapTest ,
never_null_usage_flag_not_requested_on_remap  )

◆ TEST_F() [27/31]

◆ TEST_F() [28/31]

◆ TEST_F() [29/31]

blender::bke::tests::TEST_F ( LibRemapTest ,
users_are_decreased_when_not_skipping_never_null  )

Definition at line 196 of file lib_remap_test.cc.

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

◆ TEST_F() [30/31]

blender::bke::tests::TEST_F ( LibRemapTest ,
users_are_same_when_skipping_never_null  )

◆ TEST_F() [31/31]

blender::bke::tests::TEST_F ( PaintBVHTest ,
from_mesh  )

Definition at line 36 of file paint_test.cc.

References blender::bke::pbvh::Tree::from_mesh(), and tree.

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

References 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 305 of file armature_test.cc.

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

◆ testcurve_with_duplicates()

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

Definition at line 643 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 20 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 20 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 23 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 22 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().