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

Classes

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

Enumerations

enum class  TargetDataType { Mesh , EditMesh , Curves , GreasePencil }
enum class  InterpolationTest { Linear , DualQuaternion }
enum class  OutputValueTest { Position , PositionAndDeformMatrix }
enum class  WeightingTest { None , Envelope , VertexGroups , EnvelopeAndVertexGroups }
enum class  MaskingTest { All , VertexGroup }
enum class  VertexWeightSource { TargetObject , SeparateMesh }

Functions

 TEST (action_groups, ReconstructGroupsWithReordering)
 TEST (action_assets, BKE_action_has_single_frame)
 TEST (anim_data, BKE_fcurves_id_cb_test)
 TEST_F (ArmatureDeformTest, MeshDeform)
 TEST_F (ArmatureDeformTest, EditMeshDeform)
 TEST_F (ArmatureDeformTest, CurvesDeform)
 TEST_F (ArmatureDeformTest, GreasePencilDeform)
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, CyclicOffsets)
 TEST (curves_geometry, InvalidResolution)
 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 (vertex_weights_normalize, EmptyWeights)
 TEST (vertex_weights_normalize, SingleWeight)
 TEST (vertex_weights_normalize, TwoWeights)
 TEST (vertex_weights_normalize, FourWeights)
 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 (idproperties, CreateGroup)
 TEST (idproperties, AddToGroup)
 TEST (idproperties, ReplaceInGroup)
 TEST (idproperties, RemoveFromGroup)
 TEST (idproperties, ReplaceGroupInGroup)
 TEST (idproperties, SyncGroupValues)
 TEST (idproperties, ReprGroup)
 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, VariableMap_add_filename_only)
 TEST (path_templates, VariableMap_add_path_up_to_file)
 TEST (path_templates, validate_and_apply_template)
 TEST (scene, frame_snap_by_seconds)
 TEST_F (SceneTest, linked_copy_id_remapping)
 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)
NURBS: Basis Cache Calculation
 TEST (curves_geometry, BasisCacheBezierSegmentDeg2)
 TEST (curves_geometry, BasisCacheNonUniformDeg2)
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]

Enumeration Type Documentation

◆ InterpolationTest

Enumerator
Linear 
DualQuaternion 

Definition at line 51 of file armature_deform_test.cc.

◆ MaskingTest

Enumerator
All 
VertexGroup 

Definition at line 76 of file armature_deform_test.cc.

◆ OutputValueTest

Enumerator
Position 
PositionAndDeformMatrix 

Definition at line 58 of file armature_deform_test.cc.

◆ TargetDataType

Enumerator
Mesh 
EditMesh 
Curves 
GreasePencil 

Definition at line 44 of file armature_deform_test.cc.

◆ VertexWeightSource

Enumerator
TargetObject 
SeparateMesh 

Definition at line 84 of file armature_deform_test.cc.

◆ WeightingTest

Enumerator
None 
Envelope 
VertexGroups 
EnvelopeAndVertexGroups 

Definition at line 65 of file armature_deform_test.cc.

Function Documentation

◆ add_id_in_library()

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

Definition at line 399 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()

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

◆ change_name()

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

Definition at line 73 of file lib_id_test.cc.

References BKE_libblock_rename(), and name.

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

◆ change_name_global()

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

◆ create_basic_curves()

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, and i.

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

◆ error_to_string()

◆ errors_to_string()

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

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

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

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, float, input, M_1_PI, normalize_v3(), sqrt, vec_roll_to_mat3_normalized(), x, and z().

Referenced by TEST(), and TEST().

◆ set_key()

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/125]

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

◆ TEST() [2/125]

◆ TEST() [3/125]

◆ TEST() [4/125]

◆ TEST() [5/125]

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

◆ TEST() [6/125]

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

◆ TEST() [7/125]

◆ TEST() [8/125]

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

◆ TEST() [9/125]

◆ TEST() [10/125]

◆ TEST() [11/125]

◆ TEST() [12/125]

◆ TEST() [13/125]

◆ TEST() [14/125]

◆ TEST() [15/125]

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

◆ TEST() [16/125]

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

◆ TEST() [17/125]

◆ TEST() [18/125]

◆ TEST() [19/125]

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

◆ TEST() [20/125]

◆ TEST() [21/125]

◆ TEST() [22/125]

◆ TEST() [23/125]

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

◆ TEST() [24/125]

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

◆ TEST() [25/125]

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

Definition at line 269 of file curves_geometry_test.cc.

References CURVE_TYPE_CATMULL_ROM, and EXPECT_EQ().

◆ TEST() [26/125]

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

Definition at line 88 of file curves_geometry_test.cc.

References create_basic_curves().

◆ TEST() [27/125]

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

◆ TEST() [28/125]

◆ TEST() [29/125]

◆ TEST() [30/125]

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

Definition at line 365 of file curves_geometry_test.cc.

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

◆ TEST() [31/125]

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

◆ TEST() [32/125]

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() [33/125]

◆ TEST() [34/125]

◆ TEST() [35/125]

◆ TEST() [36/125]

◆ TEST() [37/125]

◆ TEST() [38/125]

◆ TEST() [39/125]

◆ TEST() [40/125]

◆ TEST() [41/125]

◆ TEST() [42/125]

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

Definition at line 39 of file file_handler_test.cc.

References add(), and file_handler_add_test().

◆ TEST() [43/125]

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

◆ TEST() [44/125]

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

◆ TEST() [45/125]

blender::bke::tests::TEST ( idproperties ,
AddToGroup  )

◆ TEST() [46/125]

blender::bke::tests::TEST ( idproperties ,
CreateGroup  )

Definition at line 10 of file idprop_test.cc.

References blender::bke::idprop::create_group(), and IDP_FreeProperty().

◆ TEST() [47/125]

blender::bke::tests::TEST ( idproperties ,
RemoveFromGroup  )

◆ TEST() [48/125]

blender::bke::tests::TEST ( idproperties ,
ReplaceGroupInGroup  )

◆ TEST() [49/125]

◆ TEST() [50/125]

◆ TEST() [51/125]

blender::bke::tests::TEST ( idproperties ,
SyncGroupValues  )

◆ TEST() [52/125]

blender::bke::tests::TEST ( knot_vector ,
KnotVectorBezierClampedCyclicUnevenDeg4  )

◆ TEST() [53/125]

blender::bke::tests::TEST ( knot_vector ,
KnotVectorBezierClampedDeg2  )

◆ TEST() [54/125]

blender::bke::tests::TEST ( knot_vector ,
KnotVectorBezierClampedDeg4  )

◆ TEST() [55/125]

blender::bke::tests::TEST ( knot_vector ,
KnotVectorBezierClampedSegmentDeg2  )

◆ TEST() [56/125]

blender::bke::tests::TEST ( knot_vector ,
KnotVectorBezierClampedSegmentDeg4  )

◆ TEST() [57/125]

blender::bke::tests::TEST ( knot_vector ,
KnotVectorBezierClampedUnevenDeg2  )

◆ TEST() [58/125]

blender::bke::tests::TEST ( knot_vector ,
KnotVectorBezierClampedUnevenDeg4  )

◆ TEST() [59/125]

◆ TEST() [60/125]

blender::bke::tests::TEST ( knot_vector ,
KnotVectorBezierSegmentDeg2  )

◆ TEST() [61/125]

◆ TEST() [62/125]

◆ TEST() [63/125]

blender::bke::tests::TEST ( knot_vector ,
KnotVectorCircleCyclicUnevenDeg2  )

◆ TEST() [64/125]

blender::bke::tests::TEST ( knot_vector ,
KnotVectorUniform  )

◆ TEST() [65/125]

blender::bke::tests::TEST ( knot_vector ,
KnotVectorUniformClamped  )

◆ TEST() [66/125]

◆ TEST() [67/125]

◆ TEST() [68/125]

◆ TEST() [69/125]

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

◆ TEST() [70/125]

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

◆ TEST() [71/125]

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

◆ TEST() [72/125]

◆ TEST() [73/125]

◆ TEST() [74/125]

◆ TEST() [75/125]

◆ TEST() [76/125]

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

◆ TEST() [77/125]

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

◆ TEST() [78/125]

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

◆ TEST() [79/125]

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

◆ TEST() [80/125]

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

◆ TEST() [81/125]

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

◆ TEST() [82/125]

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

◆ TEST() [83/125]

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

◆ TEST() [84/125]

◆ TEST() [85/125]

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() [86/125]

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() [87/125]

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

◆ TEST() [88/125]

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

◆ TEST() [89/125]

◆ TEST() [90/125]

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

◆ TEST() [91/125]

◆ TEST() [92/125]

◆ TEST() [93/125]

◆ TEST() [94/125]

◆ TEST() [95/125]

◆ TEST() [96/125]

◆ TEST() [97/125]

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

◆ TEST() [98/125]

◆ TEST() [99/125]

blender::bke::tests::TEST ( scene ,
frame_snap_by_seconds  )

◆ TEST() [100/125]

◆ TEST() [101/125]

◆ TEST() [102/125]

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

◆ TEST() [103/125]

◆ TEST() [104/125]

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

◆ TEST() [105/125]

◆ TEST() [106/125]

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

◆ TEST() [107/125]

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

◆ TEST() [108/125]

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

◆ TEST() [109/125]

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

Definition at line 175 of file armature_test.cc.

References find_flip_boundary(), and vec_roll_to_mat3_normalized().

◆ TEST() [110/125]

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

Definition at line 180 of file armature_test.cc.

References find_flip_boundary(), and vec_roll_to_mat3_normalized().

◆ TEST() [111/125]

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

◆ TEST() [112/125]

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

◆ TEST() [113/125]

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

◆ TEST() [114/125]

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

◆ TEST() [115/125]

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

◆ TEST() [116/125]

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

◆ TEST() [117/125]

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

◆ TEST() [118/125]

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

◆ TEST() [119/125]

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

◆ TEST() [120/125]

blender::bke::tests::TEST ( vertex_weights_normalize ,
EmptyWeights  )

Definition at line 13 of file deform_test.cc.

References BKE_defvert_normalize_ex().

◆ TEST() [121/125]

blender::bke::tests::TEST ( vertex_weights_normalize ,
FourWeights  )

◆ TEST() [122/125]

blender::bke::tests::TEST ( vertex_weights_normalize ,
SingleWeight  )

◆ TEST() [123/125]

blender::bke::tests::TEST ( vertex_weights_normalize ,
TwoWeights  )

◆ TEST() [124/125]

◆ TEST() [125/125]

◆ TEST_F() [1/36]

blender::bke::tests::TEST_F ( ArmatureDeformTest ,
CurvesDeform  )

◆ TEST_F() [2/36]

blender::bke::tests::TEST_F ( ArmatureDeformTest ,
EditMeshDeform  )

◆ TEST_F() [3/36]

blender::bke::tests::TEST_F ( ArmatureDeformTest ,
GreasePencilDeform  )

◆ TEST_F() [4/36]

◆ TEST_F() [5/36]

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

◆ TEST_F() [6/36]

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

Definition at line 391 of file armature_test.cc.

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

◆ TEST_F() [7/36]

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

◆ TEST_F() [8/36]

◆ TEST_F() [9/36]

◆ TEST_F() [10/36]

◆ TEST_F() [11/36]

◆ TEST_F() [12/36]

◆ TEST_F() [13/36]

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

◆ TEST_F() [14/36]

◆ TEST_F() [15/36]

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

Definition at line 114 of file GEO_interpolate_curves_test.cc.

◆ TEST_F() [16/36]

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

Definition at line 181 of file GEO_interpolate_curves_test.cc.

◆ TEST_F() [17/36]

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

Definition at line 123 of file GEO_interpolate_curves_test.cc.

◆ TEST_F() [18/36]

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

Definition at line 163 of file GEO_interpolate_curves_test.cc.

◆ TEST_F() [19/36]

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

Definition at line 275 of file GEO_interpolate_curves_test.cc.

◆ TEST_F() [20/36]

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() [21/36]

◆ TEST_F() [22/36]

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

◆ TEST_F() [23/36]

◆ TEST_F() [24/36]

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() [25/36]

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

◆ TEST_F() [26/36]

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

◆ TEST_F() [27/36]

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

◆ TEST_F() [28/36]

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

◆ TEST_F() [29/36]

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

◆ TEST_F() [30/36]

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

◆ TEST_F() [31/36]

◆ TEST_F() [32/36]

◆ TEST_F() [33/36]

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() [34/36]

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

◆ TEST_F() [35/36]

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

Definition at line 44 of file paint_test.cc.

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

◆ TEST_F() [36/36]

◆ test_lib_id_main_sort_check_order()

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(), and ID::next.

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

◆ test_render_pass_conflict()

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

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]

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 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]

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, i, interpd(), printf, and test_vec_roll_to_mat3_orthogonal().

◆ testcurve_with_duplicates()

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