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

Classes

class  AccessibleEvaluationResult
class  ActionFCurveMoveTest
class  ActionFilterTest
class  ActionIteratorsTest
class  ActionLayersTest
class  ActionLegacyTest
class  ActionQueryTest
class  ActionTest
class  AnimationEvaluationResultTest
class  AnimationEvaluationTest
class  AnimBoneCollectionTest
class  AnimDrawTest
class  AnimRnaTest
class  ArmatureBoneCollections
class  ArmatureBoneCollectionsLiboverrides
class  ArmatureBoneCollectionsTestList
class  ChannelbagTest
class  KeyframingTest
class  PoseTest

Functions

 TEST_F (ActionIteratorsTest, iterate_all_fcurves_of_slot)
 TEST_F (ActionIteratorsTest, foreach_action_slot_use_with_references)
 TEST_F (ActionIteratorsTest, foreach_action_slot_use_with_rna)
 TEST_F (ActionLegacyTest, fcurves_all)
 TEST_F (ActionLegacyTest, action_fcurves_remove)
 TEST_F (ActionTest, low_level_initialisation)
 TEST_F (ActionLayersTest, add_layer)
 TEST_F (ActionLayersTest, add_layer__reset_idroot)
 TEST_F (ActionLayersTest, remove_layer)
 TEST_F (ActionLayersTest, add_strip)
 TEST_F (ActionLayersTest, remove_strip)
 TEST_F (ActionLayersTest, remove_strip_instances)
 TEST_F (ActionLayersTest, add_slot)
 TEST_F (ActionLayersTest, add_slot__reset_idroot)
 TEST_F (ActionLayersTest, add_slot_multiple)
 TEST_F (ActionLayersTest, slot_remove)
 TEST_F (ActionLayersTest, slot_move_to_index)
 TEST_F (ActionLayersTest, action_assign_id)
 TEST_F (ActionLayersTest, rename_slot)
 TEST_F (ActionLayersTest, slot_identifier_ensure_prefix)
 TEST_F (ActionLayersTest, slot_identifier_prefix)
 TEST_F (ActionLayersTest, rename_slot_identifier_collision)
 TEST_F (ActionLayersTest, generic_slot_for_autoassign)
 TEST_F (ActionLayersTest, generic_slot_for_autoassign_untyped_wildcarding)
 TEST_F (ActionLayersTest, active_slot)
 TEST_F (ActionLayersTest, assign_action_ensure_slot_for_keying)
 TEST_F (ActionLayersTest, strip)
 TEST_F (ActionLayersTest, KeyframeStrip__keyframe_insert)
 TEST_F (ActionLayersTest, action_slot_get_id_for_keying__empty_action)
 TEST_F (ActionLayersTest, action_slot_get_id_for_keying__layered_action)
 TEST_F (ActionLayersTest, action_move_slot)
 TEST_F (ActionLayersTest, action_move_slot_without_channelbag)
 TEST_F (ActionLayersTest, action_duplicate_slot)
 TEST_F (ActionLayersTest, action_duplicate_slot_without_channelbag)
 TEST_F (ActionLayersTest, fcurves_for_action_slot)
static void allocate_keyframes (FCurve &fcu, const size_t num_keyframes)
static void add_keyframe (FCurve &fcu, float x, float y)
static void add_fcurve_to_action (Action &action, FCurve &fcu)
 TEST_F (ActionQueryTest, BKE_action_frame_range_calc)
 TEST_F (ActionQueryTest, action_has_single_frame)
 TEST_F (ChannelbagTest, fcurve_create_many)
 TEST_F (ChannelbagTest, fcurve_move_to_index)
 TEST_F (ChannelbagTest, channel_group_create)
 TEST_F (ChannelbagTest, channel_group_remove)
 TEST_F (ChannelbagTest, channel_group_find)
 TEST_F (ChannelbagTest, channel_group_ensure)
 TEST_F (ChannelbagTest, channel_group_fcurve_creation)
 TEST_F (ChannelbagTest, channel_group_fcurve_removal)
 TEST_F (ChannelbagTest, channel_group_move_to_index)
 TEST_F (ChannelbagTest, channel_group_move_fcurve_into)
 TEST_F (ChannelbagTest, channel_group_fcurve_ungroup)
 TEST_F (ActionFCurveMoveTest, test_fcurve_move_layered)
 TEST_F (AnimRnaTest, is_rotation_path)
 TEST_F (AnimRnaTest, rotation_mode_from_path)
 TEST_F (AnimBoneCollectionTest, bonecoll_new_free)
 TEST_F (AnimBoneCollectionTest, bonecoll_default_name)
 TEST_F (ArmatureBoneCollections, armature_owned_collections)
 TEST_F (ArmatureBoneCollections, collection_hierarchy_creation)
 TEST_F (ArmatureBoneCollections, collection_hierarchy_removal)
 TEST_F (ArmatureBoneCollections, collection_hierarchy_removal__more_complex_remove_inner_child)
 TEST_F (ArmatureBoneCollections, collection_hierarchy_removal__more_complex_remove_root)
 TEST_F (ArmatureBoneCollections, find_parent_index)
 TEST_F (ArmatureBoneCollections, collection_hierarchy_visibility)
 TEST_F (ArmatureBoneCollections, bones_assign_unassign)
 TEST_F (ArmatureBoneCollections, bones_assign_remove)
 TEST_F (ArmatureBoneCollections, active_set_clear_by_pointer)
 TEST_F (ArmatureBoneCollections, active_set_clear_by_index)
 TEST_F (ArmatureBoneCollections, bcoll_is_editable)
 TEST_F (ArmatureBoneCollections, bcoll_move_to_index__roots)
 TEST_F (ArmatureBoneCollections, bcoll_move_to_index__siblings)
 TEST_F (ArmatureBoneCollections, bcoll_move_to_parent)
 TEST_F (ArmatureBoneCollections, bcoll_move_to_parent__root_unroot)
 TEST_F (ArmatureBoneCollections, bcoll_move_to_parent__within_siblings)
 TEST_F (ArmatureBoneCollections, internal__bonecolls_rotate_block)
 TEST_F (ArmatureBoneCollectionsTestList, move_before_after_index__before_first_sibling)
 TEST_F (ArmatureBoneCollectionsTestList, move_before_after_index__after_first_sibling)
 TEST_F (ArmatureBoneCollectionsTestList, move_before_after_index__before_last_sibling)
 TEST_F (ArmatureBoneCollectionsTestList, move_before_after_index__after_last_sibling)
 TEST_F (ArmatureBoneCollectionsTestList, move_before_after_index__other_parent_before__move_left)
 TEST_F (ArmatureBoneCollectionsTestList, move_before_after_index__other_parent_after__move_left)
 TEST_F (ArmatureBoneCollectionsTestList, move_before_after_index__other_parent_before__move_right)
 TEST_F (ArmatureBoneCollectionsTestList, move_before_after_index__other_parent_after__move_right)
 TEST_F (ArmatureBoneCollectionsTestList, move_before_after_index__to_root__before)
 TEST_F (ArmatureBoneCollectionsTestList, move_before_after_index__to_root__after)
 TEST_F (ArmatureBoneCollectionsTestList, child_number_set__roots)
 TEST_F (ArmatureBoneCollectionsTestList, child_number_set__siblings)
 TEST_F (ArmatureBoneCollectionsTestList, bone_collection_solo)
 TEST_F (ArmatureBoneCollectionsLiboverrides, bcoll_insert_copy_after)
 TEST_F (AnimationEvaluationTest, evaluate_layer__keyframes)
 TEST_F (AnimationEvaluationTest, evaluate_layer__mesh_vertices)
 TEST_F (AnimationEvaluationTest, strip_boundaries__single_strip)
 TEST_F (AnimationEvaluationTest, strip_boundaries__nonoverlapping)
 TEST_F (AnimationEvaluationTest, strip_boundaries__overlapping_edge)
 TEST_F (AnimationEvaluationResultTest, prop_identifier_hashing)
 TEST_F (KeyframingTest, insert_keyframes__non_array_property)
 TEST_F (KeyframingTest, insert_keyframes__action_reuse)
 TEST_F (KeyframingTest, insert_keyframes__action_reuse_material)
 TEST_F (KeyframingTest, insert_keyframes__action_reuse_multiuser)
 TEST_F (KeyframingTest, insert_keyframes__single_element)
 TEST_F (KeyframingTest, insert_keyframes__all_elements)
 TEST_F (KeyframingTest, insert_keyframes__pose_bone_rna_pointer)
 TEST_F (KeyframingTest, insert_keyframes__pose_bone_owner_id_pointer)
 TEST_F (KeyframingTest, insert_keyframes__multiple_properties)
 TEST_F (KeyframingTest, insert_keyframes__multiple_ids)
 TEST_F (KeyframingTest, insert_keyframes__only_available)
 TEST_F (KeyframingTest, insert_keyframes__only_replace)
 TEST_F (KeyframingTest, insert_keyframes__only_needed)
 TEST_F (KeyframingTest, insert_keyframes__optional_frame)
 TEST_F (KeyframingTest, insert_keyframes__optional_channel_group)
 TEST_F (KeyframingTest, insert_keyframes__nla_time_remapping)
 TEST_F (PoseTest, get_best_slot)
 TEST_F (PoseTest, apply_action_object)
 TEST_F (PoseTest, apply_action_all_bones_single_slot)
 TEST_F (PoseTest, apply_action_all_bones_multiple_slots)
 TEST_F (PoseTest, apply_action_blend_single_slot)
 TEST_F (PoseTest, apply_action_multiple_objects)
 TEST_F (PoseTest, apply_action_multiple_objects_single_slot)
static void reset_pose_bone_rotations (bPoseChannel &pose_bone)
 TEST_F (PoseTest, apply_action_differing_rotation_mode_from_euler)
 TEST_F (PoseTest, apply_action_differing_rotation_mode_from_quaternion)
 TEST_F (PoseTest, apply_action_differing_rotation_mode_from_axisangle)
 TEST_F (AnimDrawTest, anim_unit_mapping_get_factor_not_normalizing)
 TEST_F (ActionFilterTest, slots_expanded_or_not)
 TEST_F (ActionFilterTest, layered_action_active_fcurves)

Function Documentation

◆ add_fcurve_to_action()

◆ add_keyframe()

void blender::animrig::tests::add_keyframe ( FCurve & fcu,
float x,
float y )
static

◆ allocate_keyframes()

void blender::animrig::tests::allocate_keyframes ( FCurve & fcu,
const size_t num_keyframes )
static

◆ reset_pose_bone_rotations()

void blender::animrig::tests::reset_pose_bone_rotations ( bPoseChannel & pose_bone)
static

◆ TEST_F() [1/120]

◆ TEST_F() [2/120]

◆ TEST_F() [3/120]

blender::animrig::tests::TEST_F ( ActionFilterTest ,
slots_expanded_or_not  )

Definition at line 52 of file anim_filter_test.cc.

References blender::bAnimContext::active_action, blender::bAnimContext::active_action_user, blender::bAnimContext::ads, blender::SpaceAction::ads, blender::bAnimListElem::adt, blender::ALE_ACTION_SLOT, blender::ANIM_animdata_filter(), blender::ANIM_animdata_freelist(), blender::ANIMCONT_ACTION, blender::ANIMFILTER_DATA_VISIBLE, blender::ANIMFILTER_FOREDIT, blender::ANIMFILTER_LIST_CHANNELS, blender::ANIMFILTER_LIST_VISIBLE, blender::ANIMFILTER_NODUPLIS, blender::ANIMFILTER_SEL, blender::ANIMTYPE_ACTION_SLOT, blender::ANIMTYPE_FCURVE, blender::animrig::assign_action(), blender::animrig::assign_action_slot(), blender::BLI_findlink(), blender::bAnimContext::bmain, blender::animrig::StripKeyframeData::channelbag_for_slot(), blender::animrig::Strip::data(), blender::bAnimContext::data, blender::bAnimListElem::data, blender::bAnimContext::datatype, blender::bAnimListElem::datatype, blender::EXPECT_EQ(), blender::animrig::Channelbag::fcurve_find(), blender::bAnimListElem::fcurve_owner_id, blender::FCURVE_SELECTED, blender::bDopeSheet::filterflag, blender::bAnimListElem::flag, blender::FCurve::flag, blender::animrig::get_keyframe_settings(), blender::ActionSlot::handle, blender::bAnimListElem::id, blender::bAnimListElem::key_data, blender::animrig::Strip::Keyframe, blender::animrig::StripKeyframeData::keyframe_insert(), layer, blender::ID::name, blender::bAnimContext::obact, blender::animrig::OK, blender::animrig::Slot::set_expanded(), blender::animrig::Slot::set_selected(), blender::bAnimContext::sl, blender::ActionSlot::slot_flags, blender::bAnimListElem::slot_handle, blender::SPACE_ACTION, blender::bAnimContext::spacetype, blender::animrig::SUCCESS, TEST_F(), and blender::bAnimListElem::type.

◆ TEST_F() [4/120]

◆ TEST_F() [5/120]

◆ TEST_F() [6/120]

blender::animrig::tests::TEST_F ( ActionIteratorsTest ,
iterate_all_fcurves_of_slot  )

Definition at line 39 of file action_iterators_test.cc.

References blender::animrig::Strip::data(), blender::animrig::foreach_fcurve_in_action_slot(), blender::animrig::get_keyframe_settings(), blender::ActionSlot::handle, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::animrig::Strip::Keyframe, blender::animrig::StripKeyframeData::keyframe_insert(), layer, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::animrig::SUCCESS, 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(), and TEST_F().

◆ TEST_F() [7/120]

◆ TEST_F() [8/120]

◆ TEST_F() [9/120]

◆ TEST_F() [10/120]

◆ TEST_F() [11/120]

◆ TEST_F() [12/120]

blender::animrig::tests::TEST_F ( ActionLayersTest ,
action_slot_get_id_for_keying__empty_action  )

◆ TEST_F() [13/120]

blender::animrig::tests::TEST_F ( ActionLayersTest ,
action_slot_get_id_for_keying__layered_action  )

◆ TEST_F() [14/120]

◆ TEST_F() [15/120]

blender::animrig::tests::TEST_F ( ActionLayersTest ,
add_layer  )

Definition at line 67 of file action_test.cc.

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

◆ TEST_F() [16/120]

blender::animrig::tests::TEST_F ( ActionLayersTest ,
add_layer__reset_idroot  )

Definition at line 79 of file action_test.cc.

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

◆ TEST_F() [17/120]

◆ TEST_F() [18/120]

blender::animrig::tests::TEST_F ( ActionLayersTest ,
add_slot__reset_idroot  )

Definition at line 311 of file action_test.cc.

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

◆ TEST_F() [19/120]

◆ TEST_F() [20/120]

◆ TEST_F() [21/120]

◆ TEST_F() [22/120]

◆ TEST_F() [23/120]

◆ TEST_F() [24/120]

◆ TEST_F() [25/120]

◆ TEST_F() [26/120]

◆ TEST_F() [27/120]

◆ TEST_F() [28/120]

◆ TEST_F() [29/120]

◆ TEST_F() [30/120]

blender::animrig::tests::TEST_F ( ActionLayersTest ,
rename_slot_identifier_collision  )

Definition at line 700 of file action_test.cc.

References blender::ActionSlot::identifier, and TEST_F().

◆ TEST_F() [31/120]

blender::animrig::tests::TEST_F ( ActionLayersTest ,
slot_identifier_ensure_prefix  )

◆ TEST_F() [32/120]

◆ TEST_F() [33/120]

blender::animrig::tests::TEST_F ( ActionLayersTest ,
slot_move_to_index  )

◆ TEST_F() [34/120]

◆ TEST_F() [35/120]

◆ TEST_F() [36/120]

◆ TEST_F() [37/120]

◆ TEST_F() [38/120]

◆ TEST_F() [39/120]

◆ TEST_F() [40/120]

blender::animrig::tests::TEST_F ( ActionTest ,
low_level_initialisation  )

◆ TEST_F() [41/120]

blender::animrig::tests::TEST_F ( AnimationEvaluationResultTest ,
prop_identifier_hashing  )

◆ TEST_F() [42/120]

◆ TEST_F() [43/120]

◆ TEST_F() [44/120]

◆ TEST_F() [45/120]

◆ TEST_F() [46/120]

◆ TEST_F() [47/120]

blender::animrig::tests::TEST_F ( AnimBoneCollectionTest ,
bonecoll_default_name  )

◆ TEST_F() [48/120]

◆ TEST_F() [49/120]

◆ TEST_F() [50/120]

◆ TEST_F() [51/120]

◆ TEST_F() [52/120]

◆ TEST_F() [53/120]

◆ TEST_F() [54/120]

blender::animrig::tests::TEST_F ( ArmatureBoneCollections ,
armature_owned_collections  )

◆ TEST_F() [55/120]

◆ TEST_F() [56/120]

blender::animrig::tests::TEST_F ( ArmatureBoneCollections ,
bcoll_move_to_index__roots  )

◆ TEST_F() [57/120]

◆ TEST_F() [58/120]

◆ TEST_F() [59/120]

◆ TEST_F() [60/120]

blender::animrig::tests::TEST_F ( ArmatureBoneCollections ,
bcoll_move_to_parent__within_siblings  )

◆ TEST_F() [61/120]

◆ TEST_F() [62/120]

◆ TEST_F() [63/120]

◆ TEST_F() [64/120]

blender::animrig::tests::TEST_F ( ArmatureBoneCollections ,
collection_hierarchy_removal  )

◆ TEST_F() [65/120]

blender::animrig::tests::TEST_F ( ArmatureBoneCollections ,
collection_hierarchy_removal__more_complex_remove_inner_child  )

◆ TEST_F() [66/120]

blender::animrig::tests::TEST_F ( ArmatureBoneCollections ,
collection_hierarchy_removal__more_complex_remove_root  )

◆ TEST_F() [67/120]

◆ TEST_F() [68/120]

◆ TEST_F() [69/120]

◆ TEST_F() [70/120]

◆ TEST_F() [71/120]

◆ TEST_F() [72/120]

◆ TEST_F() [73/120]

blender::animrig::tests::TEST_F ( ArmatureBoneCollectionsTestList ,
child_number_set__siblings  )

◆ TEST_F() [74/120]

◆ TEST_F() [75/120]

◆ TEST_F() [76/120]

◆ TEST_F() [77/120]

◆ TEST_F() [78/120]

blender::animrig::tests::TEST_F ( ArmatureBoneCollectionsTestList ,
move_before_after_index__other_parent_after__move_left  )

◆ TEST_F() [79/120]

blender::animrig::tests::TEST_F ( ArmatureBoneCollectionsTestList ,
move_before_after_index__other_parent_after__move_right  )

◆ TEST_F() [80/120]

blender::animrig::tests::TEST_F ( ArmatureBoneCollectionsTestList ,
move_before_after_index__other_parent_before__move_left  )

◆ TEST_F() [81/120]

blender::animrig::tests::TEST_F ( ArmatureBoneCollectionsTestList ,
move_before_after_index__other_parent_before__move_right  )

◆ TEST_F() [82/120]

◆ TEST_F() [83/120]

◆ TEST_F() [84/120]

blender::animrig::tests::TEST_F ( ChannelbagTest ,
channel_group_create  )

◆ TEST_F() [85/120]

blender::animrig::tests::TEST_F ( ChannelbagTest ,
channel_group_ensure  )

Definition at line 1692 of file action_test.cc.

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

◆ TEST_F() [86/120]

blender::animrig::tests::TEST_F ( ChannelbagTest ,
channel_group_fcurve_creation  )

◆ TEST_F() [87/120]

blender::animrig::tests::TEST_F ( ChannelbagTest ,
channel_group_fcurve_removal  )

◆ TEST_F() [88/120]

blender::animrig::tests::TEST_F ( ChannelbagTest ,
channel_group_fcurve_ungroup  )

◆ TEST_F() [89/120]

blender::animrig::tests::TEST_F ( ChannelbagTest ,
channel_group_find  )

Definition at line 1675 of file action_test.cc.

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

◆ TEST_F() [90/120]

blender::animrig::tests::TEST_F ( ChannelbagTest ,
channel_group_move_fcurve_into  )

◆ TEST_F() [91/120]

blender::animrig::tests::TEST_F ( ChannelbagTest ,
channel_group_move_to_index  )

◆ TEST_F() [92/120]

blender::animrig::tests::TEST_F ( ChannelbagTest ,
channel_group_remove  )

Definition at line 1589 of file action_test.cc.

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

◆ TEST_F() [93/120]

◆ TEST_F() [94/120]

blender::animrig::tests::TEST_F ( ChannelbagTest ,
fcurve_move_to_index  )

◆ TEST_F() [95/120]

◆ TEST_F() [96/120]

◆ TEST_F() [97/120]

◆ TEST_F() [98/120]

◆ TEST_F() [99/120]

◆ TEST_F() [100/120]

◆ TEST_F() [101/120]

◆ TEST_F() [102/120]

◆ TEST_F() [103/120]

◆ TEST_F() [104/120]

◆ TEST_F() [105/120]

◆ TEST_F() [106/120]

◆ TEST_F() [107/120]

◆ TEST_F() [108/120]

◆ TEST_F() [109/120]

◆ TEST_F() [110/120]

◆ TEST_F() [111/120]

◆ TEST_F() [112/120]

◆ TEST_F() [113/120]

◆ TEST_F() [114/120]

◆ TEST_F() [115/120]

◆ TEST_F() [116/120]

◆ TEST_F() [117/120]

blender::animrig::tests::TEST_F ( PoseTest ,
apply_action_multiple_objects  )

◆ TEST_F() [118/120]

blender::animrig::tests::TEST_F ( PoseTest ,
apply_action_multiple_objects_single_slot  )

◆ TEST_F() [119/120]

blender::animrig::tests::TEST_F ( PoseTest ,
apply_action_object  )

◆ TEST_F() [120/120]

blender::animrig::tests::TEST_F ( PoseTest ,
get_best_slot  )