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

Classes

class  AnimDataTest
class  ArmatureBoneIndexTest
class  ArmatureDeformTest
class  ArmatureDeformTestBase
class  AssetMetadataTest
class  AttributeStorageTest
class  BKE_armature_find_selected_bones_test
class  BKE_FCurveTest
class  BlenderProjectTest
class  BMainAllIDsIteratorTest
class  BMainMergeTest
class  BMainNameMapTest
class  BMainTest
class  BMeshPaintBVHTest
class  BoneIndexTestBase
class  BPathTest
class  Bundle
class  BundleKey
class  CurvesGeometryTest
class  DeformWeightsNormalizeTest
class  EvaluateFCurveTest
class  FCurveActiveKeyframeTest
class  FCurveSubdivideTest
class  FileHandlerTest
class  GList
class  GListPtr
class  GreasePencilInterpolate
class  GridsBVHTest
class  IDPropertyTest
class  ImageTest
class  KnotVectorTest
class  LibIDMainGlobalUniqueNameTest
class  LibIDMainSortTest
struct  LibIDMainSortTestContext
class  LibIDMainUniqueNameTest
class  LibIDMakeLocalTest
class  List
class  ListPtr
class  MeshPaintBVHTest
class  NlaStripTest
class  NlaTrackTest
class  PathTemplatesTest
struct  PathTemplateTestCase
class  PoseBoneIndexTest
class  RecentsTest
class  SceneTest
class  SocketValueVariantTest
class  SubdivCcgCoordTest
class  UdimTest
class  UnusedIDsTestData
class  ViewLayerTest

Typedefs

using TableArray = std::vector<std::map<std::string, std::string>>
using BundlePtr

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_F (AnimDataTest, 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_F (ArmatureBoneIndexTest, armature_init_data)
 TEST_F (ArmatureBoneIndexTest, armature_copy_data)
 TEST_F (PoseBoneIndexTest, pose_bone_get)
 TEST_F (PoseBoneIndexTest, reassign_armature_copy)
 TEST_F (PoseBoneIndexTest, pose_rebuild_test)
 TEST_F (AssetMetadataTest, set_catalog_id)
 TEST_F (AttributeStorageTest, Empty)
 TEST_F (AttributeStorageTest, Single)
 TEST_F (AttributeStorageTest, Iterator)
 TEST_F (AttributeStorageTest, GetForWrite)
 TEST_F (AttributeStorageTest, MultipleShared)
 TEST_F (AttributeStorageTest, CopyConstruct)
 TEST_F (AttributeStorageTest, MoveConstruct)
 TEST_F (AttributeStorageTest, UniqueNames)
 TEST_F (BlenderProjectTest, blender_project_init_clear_test)
 TEST_F (BlenderProjectTest, blender_project_replace_test)
 TEST_F (BlenderProjectTest, blender_project_name_and_path_test)
 TEST_F (BlenderProjectTest, blender_project_path_make_relative_test)
 TEST_F (BlenderProjectTest, blender_project_variable_new_test)
 TEST_F (BlenderProjectTest, blender_project_variable_new_names_test)
 TEST_F (BlenderProjectTest, blender_project_variable_rename_test)
 TEST_F (BlenderProjectTest, blender_project_variable_subtype_test)
 TEST_F (BlenderProjectTest, blender_project_variable_value_test)
 TEST_F (BlenderProjectTest, blender_project_variable_description_test)
 TEST_F (BlenderProjectTest, blender_project_variable_move_test)
 TEST_F (BlenderProjectTest, blender_project_variable_remove_test)
 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_F (CurvesGeometryTest, Empty)
 TEST_F (CurvesGeometryTest, Move)
 TEST_F (CurvesGeometryTest, TypeCount)
 TEST_F (CurvesGeometryTest, CyclicOffsets)
 TEST_F (CurvesGeometryTest, InvalidResolution)
 TEST_F (CurvesGeometryTest, AlignedHandleWithCoincidentVectorHandle)
 TEST_F (CurvesGeometryTest, CatmullRomEvaluation)
 TEST_F (CurvesGeometryTest, CatmullRomTwoPointCyclic)
 TEST_F (CurvesGeometryTest, BezierPositionEvaluation)
 TEST_F (CurvesGeometryTest, BezierGenericEvaluation)
 TEST_F (KnotVectorTest, KnotVectorUniform)
 TEST_F (KnotVectorTest, KnotVectorUniformClamped)
 TEST_F (DeformWeightsNormalizeTest, EmptyWeights)
 TEST_F (DeformWeightsNormalizeTest, SingleWeight)
 TEST_F (DeformWeightsNormalizeTest, TwoWeights)
 TEST_F (DeformWeightsNormalizeTest, FourWeights)
 TEST_F (EvaluateFCurveTest, EmptyFCurve)
 TEST_F (EvaluateFCurveTest, OnKeys)
 TEST_F (EvaluateFCurveTest, InterpolationConstant)
 TEST_F (EvaluateFCurveTest, InterpolationLinear)
 TEST_F (EvaluateFCurveTest, InterpolationBezier)
 TEST_F (EvaluateFCurveTest, InterpolationBounce)
 TEST_F (EvaluateFCurveTest, ExtrapolationLinearKeys)
 TEST_F (EvaluateFCurveTest, ExtrapolationBezierKeys)
 TEST_F (FCurveSubdivideTest, BKE_fcurve_bezt_subdivide_handles)
 TEST_F (FCurveActiveKeyframeTest, ActiveKeyframe)
 TEST_F (BKE_FCurveTest, BKE_fcurve_keyframe_move_value_with_handles)
 TEST_F (BKE_FCurveTest, BKE_fcurve_keyframe_move_time_with_handles)
 TEST_F (BKE_FCurveTest, BKE_fcurve_calc_range)
 TEST_F (BKE_FCurveTest, BKE_fcurve_calc_bounds)
static void set_key (FCurve *fcu, const int index, const float x, const float y)
static FCurve * testcurve_with_duplicates ()
 TEST_F (BKE_FCurveTest, sort_time_fcurve_stability)
 TEST_F (BKE_FCurveTest, BKE_fcurve_deduplicate_keys)
 TEST_F (BKE_FCurveTest, BKE_fcurve_deduplicate_keys_edge_cases)
 TEST_F (BKE_FCurveTest, 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, Vector< std::string > expected_file_extensions)
 TEST_F (FileHandlerTest, add)
 TEST_F (FileHandlerTest, find)
 TEST_F (FileHandlerTest, remove)
static void expect_label_with_extensions (const char *label, Vector< std::string > file_extensions, const std::string &expected)
 TEST_F (FileHandlerTest, label_with_extensions)
static bool idp_string_is_valid_utf8 (const IDProperty *prop)
 TEST_F (IDPropertyTest, NewStringMaxSizeUtf8Truncate)
 TEST_F (IDPropertyTest, AssignStringMaxSizeUtf8Truncate)
 TEST_F (IDPropertyTest, AssignStringMaxSizeBytesIgnoreUtf8)
 TEST_F (IDPropertyTest, CreateGroup)
 TEST_F (IDPropertyTest, AddToGroup)
 TEST_F (IDPropertyTest, ReplaceInGroup)
 TEST_F (IDPropertyTest, RemoveFromGroup)
 TEST_F (IDPropertyTest, ReplaceGroupInGroup)
 TEST_F (IDPropertyTest, SyncGroupValues)
 TEST_F (IDPropertyTest, GroupLookupFloatArray)
 TEST_F (IDPropertyTest, ReprGroup)
 TEST_F (UdimTest, image_ensure_tile_token)
 TEST_F (UdimTest, image_get_tile_strformat)
 TEST_F (UdimTest, image_get_tile_number_from_filepath)
 TEST_F (UdimTest, image_set_filepath_from_tile_number)
 TEST_F (ImageTest, multilayer)
 TEST_F (ShapekeyTest, mesh_key_creation)
 TEST_F (ShapekeyTest, mesh_key_evaluation_relative)
 TEST_F (ShapekeyTest, mesh_key_evaluation_absolute)
 TEST_F (ShapekeyTest, mesh_key_evaluation_relative_uneqal_element_count)
 TEST_F (ShapekeyTest, mesh_key_evaluation_absolute_uneqal_element_count)
 TEST_F (ViewLayerTest, 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_F (ViewLayerTest, aov_conflict)
static void test_lib_id_main_sort_check_order (std::initializer_list< ID * > list)
 TEST_F (LibIDMainSortTest, 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_F (LibIDMainSortTest, linked_ids_1)
 TEST_F (LibIDMainUniqueNameTest, local_ids_rename_existing_never)
 TEST_F (LibIDMainUniqueNameTest, local_ids_rename_existing_always)
 TEST_F (LibIDMainUniqueNameTest, local_ids_rename_existing_same_root)
 TEST_F (LibIDMainUniqueNameTest, linked_ids_1)
static void change_name_global (Main *bmain, ID *id, const char *name)
 TEST_F (LibIDMainGlobalUniqueNameTest, linked_ids_1)
 TEST_F (LibIDMainUniqueNameTest, ids_sorted_by_default)
static ID * add_id_in_library (Main *bmain, const char *name, Library *lib)
 TEST_F (LibIDMainUniqueNameTest, ids_sorted_by_default_with_libraries)
 TEST_F (LibIDMainUniqueNameTest, name_too_long_handling)
 TEST_F (LibIDMainUniqueNameTest, create_equivalent_numeric_suffixes)
 TEST_F (LibIDMainUniqueNameTest, re_create_equivalent_numeric_suffixes)
 TEST_F (LibIDMainUniqueNameTest, zero_suffix_is_never_assigned)
 TEST_F (LibIDMainUniqueNameTest, remove_after_dup_get_original_name)
 TEST_F (LibIDMainUniqueNameTest, name_number_suffix_assignment)
 TEST_F (LibIDMainUniqueNameTest, renames_with_duplicates)
 TEST_F (LibIDMainUniqueNameTest, names_are_unique_per_id_type)
 TEST_F (LibIDMainUniqueNameTest, name_huge_number_suffix)
 TEST_F (LibIDMakeLocalTest, brush)
 TEST_F (BMainNameMapTest, global_map_uniqueness)
 TEST_F (BMainAllIDsIteratorTest, basics)
 TEST_F (BMainMergeTest, basics)
 TEST_F (BMainMergeTest, linked_data)
 TEST_F (BMainMergeTest, link_lib_packed)
 TEST_F (NlaStripTest, BKE_nlastrip_recalculate_blend)
 TEST_F (NlaStripTest, BKE_nlastrips_add_strip)
 TEST_F (NlaStripTest, BKE_nla_clip_length_get_nonzero)
 TEST_F (NlaStripTest, BKE_nla_clip_length_ensure_nonzero)
 TEST_F (NlaTrackTest, BKE_nlatrack_remove_strip)
 TEST_F (NlaTrackTest, BKE_nlatrack_remove_and_free)
 TEST_F (NlaTrackTest, BKE_nlatrack_new_tail)
 TEST_F (NlaTrackTest, BKE_nlatrack_new_head)
 TEST_F (SocketValueVariantTest, SimpleInt)
 TEST_F (SocketValueVariantTest, IntToFloat)
 TEST_F (SocketValueVariantTest, IntToIntField)
 TEST_F (SocketValueVariantTest, IntToFloatField)
 TEST_F (SocketValueVariantTest, IntToGField)
 TEST_F (SocketValueVariantTest, ConstantIntFieldToInt)
 TEST_F (SocketValueVariantTest, ConstantIntFieldToFloat)
 TEST_F (SocketValueVariantTest, ConstIntFieldToFloatField)
 TEST_F (SocketValueVariantTest, IndexFieldToFloatField)
 TEST_F (SocketValueVariantTest, SimpleList)
 TEST_F (SocketValueVariantTest, IntListToFloatList)
 TEST_F (SocketValueVariantTest, IntToIntList)
 TEST_F (SocketValueVariantTest, SimpleString)
 TEST_F (SocketValueVariantTest, SimpleBundle)
static std::string error_to_string (const Error &error)
static std::string errors_to_string (Span< Error > errors)
 TEST_F (PathTemplatesTest, VariableMap)
 TEST_F (PathTemplatesTest, VariableMap_add_filename_only)
 TEST_F (PathTemplatesTest, VariableMap_add_path_up_to_file)
 TEST_F (PathTemplatesTest, validate_and_apply_template)
 TEST_F (PathTemplatesTest, escape_template)
 TEST_F (PathTemplatesTest, apply_template_alloc)
 TEST_F (RecentsTest, GetUnsetValueReturnsTypeDefault)
 TEST_F (RecentsTest, SetThenGetRoundTrip)
 TEST_F (RecentsTest, RootSectionStoresAtTopLevel)
 TEST_F (RecentsTest, SetInSectionThatIsNotATable)
 TEST_F (RecentsTest, GetWrongTypeReturnsTypeDefault)
 TEST_F (RecentsTest, ArrayOfTablesRoundTrip)
 TEST_F (RecentsTest, BuiltinRootDefaultsAreReadable)
 TEST_F (RecentsTest, SectionsAreIsolated)
 TEST_F (RecentsTest, RemoveItemFallsBackToDefault)
 TEST_F (RecentsTest, RemoveSectionClearsAllItems)
 TEST_F (RecentsTest, BuiltinSectionLevelDefault)
 TEST_F (RecentsTest, PerKeyDefaultOverridesSectionLevelDefault)
 TEST_F (RecentsTest, UserValueOverridesBuiltinDefault)
 TEST_F (RecentsTest, UserSectionDefaultOverridesBuiltinSectionDefault)
 TEST_F (RecentsTest, SaveIsNoOpInBackgroundMode)
 TEST_F (RecentsTest, SaveStampsBlenderVersion)
 TEST_F (RecentsTest, ExplicitInitIsSafeToCallAgain)
 TEST_F (SceneTest, frame_snap_by_seconds)
 TEST_F (SceneTest, linked_copy_id_remapping)
 TEST_F (SubdivCcgCoordTest, to_index)
 TEST_F (SubdivCcgCoordTest, constructor)
 TEST_F (MeshPaintBVHTest, from_mesh)
 TEST_F (GridsBVHTest, from_grids)
 TEST_F (BMeshPaintBVHTest, from_bmesh)
 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: Evaluation
static CurvesGeometry create_single_nurbs (const int num_points)
 TEST_F (CurvesGeometryTest, NURBSEvaluation)
 TEST_F (CurvesGeometryTest, NURBSEvaluateZeroOrderBezierDeg3)
 TEST_F (CurvesGeometryTest, NURBSEvaluateZeroOrderClampedDeg3)
NURBS: Basis Cache Calculation
 TEST_F (CurvesGeometryTest, BasisCacheBezierSegmentDeg2)
 TEST_F (CurvesGeometryTest, BasisCacheNonUniformDeg2)
Knot vector: KnotMode::NURBS_KNOT_MODE_ENDPOINT_BEZIER
 TEST_F (KnotVectorTest, KnotVectorBezierClampedSegmentDeg2)
 TEST_F (KnotVectorTest, KnotVectorBezierClampedSegmentDeg4)
 TEST_F (KnotVectorTest, KnotVectorBezierClampedDeg2)
 TEST_F (KnotVectorTest, KnotVectorBezierClampedUnevenDeg2)
 TEST_F (KnotVectorTest, KnotVectorBezierClampedDeg4)
 TEST_F (KnotVectorTest, KnotVectorBezierClampedUnevenDeg4)
 TEST_F (KnotVectorTest, KnotVectorCircleCyclicUnevenDeg2)
 TEST_F (KnotVectorTest, KnotVectorBezierClampedCyclicUnevenDeg4)
Knot vector: KnotMode::NURBS_KNOT_MODE_BEZIER
 TEST_F (KnotVectorTest, KnotVectorBezierSegmentDeg2)
 TEST_F (KnotVectorTest, KnotVectorBezierUnevenDeg2)
 TEST_F (KnotVectorTest, KnotVectorBezierUnevenDeg4)
 TEST_F (KnotVectorTest, KnotVectorBezierCyclicUnevenDeg4)
Query Tests
 TEST_F (LibQueryTest, libquery_basic)
 TEST_F (LibQueryTest, libquery_recursive)
 TEST_F (LibQueryTest, libquery_subdata)
Unused IDs detection tests.
 TEST_F (LibQueryTest, libquery_unused_ids_direct)
 TEST_F (LibQueryTest, libquery_unused_ids_recursive)
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
constexpr float EPSILON_FLT32 = 1e-6f
static const float EPSILON = 1e-7f
static FileHandlerType * test_file_handlers [MAX_FILE_HANDLERS_TEST_SIZE]
static const char * idp_utf8_4byte

Typedef Documentation

◆ BundlePtr

◆ TableArray

using blender::bke::tests::TableArray = std::vector<std::map<std::string, std::string>>

Definition at line 23 of file recents_test.cc.

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

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

References blender::BKE_libblock_rename(), and change_name().

Referenced by change_name(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

◆ 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 18 of file curves_geometry_test.cc.

References create_basic_curves(), and float.

Referenced by create_basic_curves(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

◆ create_single_nurbs()

CurvesGeometry blender::bke::tests::create_single_nurbs ( const int num_points)
static

◆ error_to_string()

◆ errors_to_string()

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

Definition at line 44 of file path_templates_test.cc.

References error_to_string(), and errors_to_string().

Referenced by errors_to_string(), TEST_F(), and TEST_F().

◆ expect_label_with_extensions()

void blender::bke::tests::expect_label_with_extensions ( const char * label,
Vector< std::string > file_extensions,
const std::string & expected )
static

◆ EXPECT_M3_ORTHOGONAL()

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

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

References blender::e, find_flip_boundary(), float, FLT_EPSILON, M_1_PI, blender::normalize_v3(), scale(), blender::sqrt(), blender::vec_roll_to_mat3_normalized(), blender::x, and z().

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

◆ idp_string_is_valid_utf8()

bool blender::bke::tests::idp_string_is_valid_utf8 ( const IDProperty * prop)
static

◆ set_key()

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

◆ TEST() [1/16]

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

◆ TEST() [2/16]

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

◆ TEST() [3/16]

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

◆ TEST() [4/16]

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

◆ TEST() [5/16]

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

◆ TEST() [6/16]

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

◆ TEST() [7/16]

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

◆ TEST() [8/16]

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

◆ TEST() [9/16]

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

◆ TEST() [10/16]

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

◆ TEST() [11/16]

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

◆ TEST() [12/16]

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

◆ TEST() [13/16]

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

◆ TEST() [14/16]

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

◆ TEST() [15/16]

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

◆ TEST() [16/16]

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

◆ TEST_F() [1/214]

blender::bke::tests::TEST_F ( AnimDataTest ,
BKE_fcurves_id_cb_test  )

Definition at line 27 of file anim_data_test.cc.

References blender::animrig::action_fcurve_ensure(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::animrig::assign_action(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::begin(), blender::BKE_fcurves_id_cb(), blender::BKE_id_new(), blender::BKE_main_free(), blender::BKE_main_new(), blender::BKE_object_add_only_object(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::clear(), blender::Vector< T, InlineBufferCapacity, Allocator >::clear(), blender::EXPECT_EQ(), blender::Object::id, blender::OB_EMPTY, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), and TEST_F().

Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

◆ TEST_F() [2/214]

◆ TEST_F() [3/214]

blender::bke::tests::TEST_F ( ArmatureBoneIndexTest ,
armature_init_data  )

Definition at line 476 of file armature_test.cc.

References blender::EXPECT_EQ(), and TEST_F().

◆ TEST_F() [4/214]

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

◆ TEST_F() [5/214]

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

◆ TEST_F() [6/214]

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

◆ TEST_F() [7/214]

◆ TEST_F() [8/214]

◆ TEST_F() [9/214]

◆ TEST_F() [10/214]

blender::bke::tests::TEST_F ( AttributeStorageTest ,
Empty  )

Definition at line 15 of file attribute_storage_test.cc.

References blender::EXPECT_EQ(), storage, and TEST_F().

◆ TEST_F() [11/214]

◆ TEST_F() [12/214]

◆ TEST_F() [13/214]

◆ TEST_F() [14/214]

◆ TEST_F() [15/214]

◆ TEST_F() [16/214]

◆ TEST_F() [17/214]

◆ TEST_F() [18/214]

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

◆ TEST_F() [19/214]

◆ TEST_F() [20/214]

◆ TEST_F() [21/214]

◆ TEST_F() [22/214]

◆ TEST_F() [23/214]

◆ TEST_F() [24/214]

◆ TEST_F() [25/214]

◆ TEST_F() [26/214]

◆ TEST_F() [27/214]

◆ TEST_F() [28/214]

blender::bke::tests::TEST_F ( BlenderProjectTest ,
blender_project_init_clear_test  )

◆ TEST_F() [29/214]

blender::bke::tests::TEST_F ( BlenderProjectTest ,
blender_project_name_and_path_test  )

◆ TEST_F() [30/214]

◆ TEST_F() [31/214]

blender::bke::tests::TEST_F ( BlenderProjectTest ,
blender_project_replace_test  )

◆ TEST_F() [32/214]

◆ TEST_F() [33/214]

blender::bke::tests::TEST_F ( BlenderProjectTest ,
blender_project_variable_move_test  )

◆ TEST_F() [34/214]

◆ TEST_F() [35/214]

◆ TEST_F() [36/214]

blender::bke::tests::TEST_F ( BlenderProjectTest ,
blender_project_variable_remove_test  )

◆ TEST_F() [37/214]

◆ TEST_F() [38/214]

◆ TEST_F() [39/214]

◆ TEST_F() [40/214]

◆ TEST_F() [41/214]

◆ TEST_F() [42/214]

◆ TEST_F() [43/214]

◆ TEST_F() [44/214]

◆ TEST_F() [45/214]

blender::bke::tests::TEST_F ( BMeshPaintBVHTest ,
from_bmesh  )

◆ TEST_F() [46/214]

◆ TEST_F() [47/214]

◆ TEST_F() [48/214]

◆ TEST_F() [49/214]

◆ TEST_F() [50/214]

◆ TEST_F() [51/214]

◆ TEST_F() [52/214]

◆ TEST_F() [53/214]

◆ TEST_F() [54/214]

◆ TEST_F() [55/214]

◆ TEST_F() [56/214]

blender::bke::tests::TEST_F ( CurvesGeometryTest ,
CatmullRomEvaluation  )

◆ TEST_F() [57/214]

blender::bke::tests::TEST_F ( CurvesGeometryTest ,
CatmullRomTwoPointCyclic  )

◆ TEST_F() [58/214]

blender::bke::tests::TEST_F ( CurvesGeometryTest ,
CyclicOffsets  )

Definition at line 93 of file curves_geometry_test.cc.

References create_basic_curves(), EXPECT_FALSE, EXPECT_TRUE, and TEST_F().

◆ TEST_F() [59/214]

◆ TEST_F() [60/214]

◆ TEST_F() [61/214]

◆ TEST_F() [62/214]

blender::bke::tests::TEST_F ( CurvesGeometryTest ,
NURBSEvaluateZeroOrderBezierDeg3  )

◆ TEST_F() [63/214]

blender::bke::tests::TEST_F ( CurvesGeometryTest ,
NURBSEvaluateZeroOrderClampedDeg3  )

◆ TEST_F() [64/214]

blender::bke::tests::TEST_F ( CurvesGeometryTest ,
NURBSEvaluation  )

◆ TEST_F() [65/214]

◆ TEST_F() [66/214]

blender::bke::tests::TEST_F ( DeformWeightsNormalizeTest ,
EmptyWeights  )

Definition at line 16 of file deform_test.cc.

References blender::BKE_defvert_normalize_ex(), and TEST_F().

◆ TEST_F() [67/214]

blender::bke::tests::TEST_F ( DeformWeightsNormalizeTest ,
FourWeights  )

◆ TEST_F() [68/214]

blender::bke::tests::TEST_F ( DeformWeightsNormalizeTest ,
SingleWeight  )

◆ TEST_F() [69/214]

blender::bke::tests::TEST_F ( DeformWeightsNormalizeTest ,
TwoWeights  )

◆ TEST_F() [70/214]

blender::bke::tests::TEST_F ( EvaluateFCurveTest ,
EmptyFCurve  )

◆ TEST_F() [71/214]

◆ TEST_F() [72/214]

◆ TEST_F() [73/214]

◆ TEST_F() [74/214]

◆ TEST_F() [75/214]

◆ TEST_F() [76/214]

◆ TEST_F() [77/214]

◆ TEST_F() [78/214]

◆ TEST_F() [79/214]

◆ TEST_F() [80/214]

blender::bke::tests::TEST_F ( FileHandlerTest ,
add  )

Definition at line 42 of file file_handler_test.cc.

References file_handler_add_test(), and TEST_F().

◆ TEST_F() [81/214]

◆ TEST_F() [82/214]

blender::bke::tests::TEST_F ( FileHandlerTest ,
label_with_extensions  )

Definition at line 130 of file file_handler_test.cc.

References expect_label_with_extensions(), and TEST_F().

◆ TEST_F() [83/214]

◆ TEST_F() [84/214]

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

Definition at line 113 of file GEO_interpolate_curves_test.cc.

References TEST_F().

◆ TEST_F() [85/214]

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

Definition at line 180 of file GEO_interpolate_curves_test.cc.

References TEST_F().

◆ TEST_F() [86/214]

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

Definition at line 122 of file GEO_interpolate_curves_test.cc.

References TEST_F().

◆ TEST_F() [87/214]

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

Definition at line 162 of file GEO_interpolate_curves_test.cc.

References TEST_F().

◆ TEST_F() [88/214]

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

Definition at line 274 of file GEO_interpolate_curves_test.cc.

References TEST_F().

◆ TEST_F() [89/214]

blender::bke::tests::TEST_F ( GridsBVHTest ,
from_grids  )

◆ TEST_F() [90/214]

◆ TEST_F() [91/214]

◆ TEST_F() [92/214]

◆ TEST_F() [93/214]

blender::bke::tests::TEST_F ( IDPropertyTest ,
CreateGroup  )

◆ TEST_F() [94/214]

◆ TEST_F() [95/214]

◆ TEST_F() [96/214]

◆ TEST_F() [97/214]

◆ TEST_F() [98/214]

◆ TEST_F() [99/214]

◆ TEST_F() [100/214]

◆ TEST_F() [101/214]

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

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

References SEP_STR, and TEST_F().

◆ TEST_F() [102/214]

◆ TEST_F() [103/214]

◆ TEST_F() [104/214]

◆ TEST_F() [105/214]

◆ TEST_F() [106/214]

◆ TEST_F() [107/214]

◆ TEST_F() [108/214]

◆ TEST_F() [109/214]

◆ TEST_F() [110/214]

◆ TEST_F() [111/214]

◆ TEST_F() [112/214]

◆ TEST_F() [113/214]

◆ TEST_F() [114/214]

◆ TEST_F() [115/214]

◆ TEST_F() [116/214]

◆ TEST_F() [117/214]

◆ TEST_F() [118/214]

◆ TEST_F() [119/214]

◆ TEST_F() [120/214]

◆ TEST_F() [121/214]

◆ TEST_F() [122/214]

◆ TEST_F() [123/214]

◆ TEST_F() [124/214]

◆ TEST_F() [125/214]

◆ TEST_F() [126/214]

◆ TEST_F() [127/214]

◆ TEST_F() [128/214]

◆ TEST_F() [129/214]

◆ TEST_F() [130/214]

◆ TEST_F() [131/214]

◆ TEST_F() [132/214]

◆ TEST_F() [133/214]

◆ TEST_F() [134/214]

◆ TEST_F() [135/214]

◆ TEST_F() [136/214]

◆ TEST_F() [137/214]

◆ TEST_F() [138/214]

◆ TEST_F() [139/214]

◆ TEST_F() [140/214]

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

Definition at line 148 of file lib_remap_test.cc.

References blender::BKE_libblock_remap(), blender::EXPECT_EQ(), and TEST_F().

◆ TEST_F() [141/214]

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

◆ TEST_F() [142/214]

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

◆ TEST_F() [143/214]

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

◆ TEST_F() [144/214]

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

◆ TEST_F() [145/214]

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

◆ TEST_F() [146/214]

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

◆ TEST_F() [147/214]

◆ TEST_F() [148/214]

◆ TEST_F() [149/214]

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

◆ TEST_F() [150/214]

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

◆ TEST_F() [151/214]

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

◆ TEST_F() [152/214]

blender::bke::tests::TEST_F ( NlaStripTest ,
BKE_nla_clip_length_ensure_nonzero  )

◆ TEST_F() [153/214]

◆ TEST_F() [154/214]

◆ TEST_F() [155/214]

◆ TEST_F() [156/214]

◆ TEST_F() [157/214]

◆ TEST_F() [158/214]

◆ TEST_F() [159/214]

◆ TEST_F() [160/214]

◆ TEST_F() [161/214]

blender::bke::tests::TEST_F ( PathTemplatesTest ,
escape_template  )

◆ TEST_F() [162/214]

◆ TEST_F() [163/214]

◆ TEST_F() [164/214]

◆ TEST_F() [165/214]

◆ TEST_F() [166/214]

blender::bke::tests::TEST_F ( PoseBoneIndexTest ,
pose_bone_get  )

◆ TEST_F() [167/214]

blender::bke::tests::TEST_F ( PoseBoneIndexTest ,
pose_rebuild_test  )

◆ TEST_F() [168/214]

◆ TEST_F() [169/214]

blender::bke::tests::TEST_F ( RecentsTest ,
ArrayOfTablesRoundTrip  )

◆ TEST_F() [170/214]

blender::bke::tests::TEST_F ( RecentsTest ,
BuiltinRootDefaultsAreReadable  )

Definition at line 120 of file recents_test.cc.

References blender::EXPECT_EQ(), blender::recents::Section::get(), and TEST_F().

◆ TEST_F() [171/214]

blender::bke::tests::TEST_F ( RecentsTest ,
BuiltinSectionLevelDefault  )

◆ TEST_F() [172/214]

◆ TEST_F() [173/214]

blender::bke::tests::TEST_F ( RecentsTest ,
GetUnsetValueReturnsTypeDefault  )

Definition at line 44 of file recents_test.cc.

References blender::EXPECT_EQ(), blender::recents::Section::get(), and TEST_F().

◆ TEST_F() [174/214]

blender::bke::tests::TEST_F ( RecentsTest ,
GetWrongTypeReturnsTypeDefault  )

◆ TEST_F() [175/214]

blender::bke::tests::TEST_F ( RecentsTest ,
PerKeyDefaultOverridesSectionLevelDefault  )

Definition at line 174 of file recents_test.cc.

References blender::recents::Section::get(), and TEST_F().

◆ TEST_F() [176/214]

blender::bke::tests::TEST_F ( RecentsTest ,
RemoveItemFallsBackToDefault  )

◆ TEST_F() [177/214]

blender::bke::tests::TEST_F ( RecentsTest ,
RemoveSectionClearsAllItems  )

◆ TEST_F() [178/214]

blender::bke::tests::TEST_F ( RecentsTest ,
RootSectionStoresAtTopLevel  )

◆ TEST_F() [179/214]

blender::bke::tests::TEST_F ( RecentsTest ,
SaveIsNoOpInBackgroundMode  )

Definition at line 219 of file recents_test.cc.

References EXPECT_FALSE, blender::recents::save(), and TEST_F().

◆ TEST_F() [180/214]

blender::bke::tests::TEST_F ( RecentsTest ,
SaveStampsBlenderVersion  )

◆ TEST_F() [181/214]

blender::bke::tests::TEST_F ( RecentsTest ,
SectionsAreIsolated  )

◆ TEST_F() [182/214]

blender::bke::tests::TEST_F ( RecentsTest ,
SetInSectionThatIsNotATable  )

Definition at line 86 of file recents_test.cc.

References blender::EXPECT_EQ(), blender::recents::Section::set(), and TEST_F().

◆ TEST_F() [183/214]

blender::bke::tests::TEST_F ( RecentsTest ,
SetThenGetRoundTrip  )

◆ TEST_F() [184/214]

blender::bke::tests::TEST_F ( RecentsTest ,
UserSectionDefaultOverridesBuiltinSectionDefault  )

◆ TEST_F() [185/214]

blender::bke::tests::TEST_F ( RecentsTest ,
UserValueOverridesBuiltinDefault  )

◆ TEST_F() [186/214]

blender::bke::tests::TEST_F ( SceneTest ,
frame_snap_by_seconds  )

◆ TEST_F() [187/214]

◆ TEST_F() [188/214]

◆ TEST_F() [189/214]

◆ TEST_F() [190/214]

◆ TEST_F() [191/214]

◆ TEST_F() [192/214]

◆ TEST_F() [193/214]

blender::bke::tests::TEST_F ( SocketValueVariantTest ,
ConstantIntFieldToFloat  )

◆ TEST_F() [194/214]

blender::bke::tests::TEST_F ( SocketValueVariantTest ,
ConstantIntFieldToInt  )

◆ TEST_F() [195/214]

◆ TEST_F() [196/214]

◆ TEST_F() [197/214]

◆ TEST_F() [198/214]

◆ TEST_F() [199/214]

◆ TEST_F() [200/214]

◆ TEST_F() [201/214]

◆ TEST_F() [202/214]

blender::bke::tests::TEST_F ( SocketValueVariantTest ,
IntToIntList  )

◆ TEST_F() [203/214]

◆ TEST_F() [204/214]

◆ TEST_F() [205/214]

◆ TEST_F() [206/214]

blender::bke::tests::TEST_F ( SocketValueVariantTest ,
SimpleString  )

◆ TEST_F() [207/214]

◆ TEST_F() [208/214]

◆ TEST_F() [209/214]

blender::bke::tests::TEST_F ( UdimTest ,
image_ensure_tile_token  )

◆ TEST_F() [210/214]

◆ TEST_F() [211/214]

◆ TEST_F() [212/214]

◆ TEST_F() [213/214]

◆ TEST_F() [214/214]

◆ test_lib_id_main_sort_check_order()

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

◆ test_render_pass_conflict()

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

References float, blender::sqrt(), test_vec_roll_to_mat3_normalized(), test_vec_roll_to_mat3_orthogonal(), blender::x, and z().

Referenced by test_vec_roll_to_mat3_orthogonal(), and 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 316 of file armature_test.cc.

References abs, blender::interpd(), blender::gpu::shader::metadata::printf, and test_vec_roll_to_mat3_orthogonal().

◆ testcurve_with_duplicates()

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

Variable Documentation

◆ EPSILON

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

Definition at line 21 of file fcurve_test.cc.

Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

◆ EPSILON_FLT32

float blender::bke::tests::EPSILON_FLT32 = 1e-6f
constexpr

Definition at line 16 of file curves_geometry_test.cc.

Referenced by TEST_F(), TEST_F(), TEST_F(), and TEST_F().

◆ FLOAT_EPSILON

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

Definition at line 31 of file armature_test.cc.

Referenced by TEST(), and TEST().

◆ idp_utf8_4byte

const char* blender::bke::tests::idp_utf8_4byte
static
Initial value:
=
"\U0001D400\U0001D400\U0001D400\U0001D400\U0001D400"

Definition at line 17 of file idprop_test.cc.

Referenced by TEST_F(), TEST_F(), and TEST_F().

◆ ORTHO_EPSILON

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

Definition at line 34 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 33 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 14 of file file_handler_test.cc.

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