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

Classes

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

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, fcurves_all_layered)
 TEST_F (ActionLegacyTest, fcurves_for_action_slot)
 TEST_F (ActionLegacyTest, fcurves_for_action_slot_layered)
 TEST_F (ActionLegacyTest, action_fcurves_remove_legacy)
 TEST_F (ActionLegacyTest, action_fcurves_remove_layered)
 TEST (action, 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, is_action_assignable_to)
 TEST_F (ActionLayersTest, action_slot_get_id_for_keying__empty_action)
 TEST_F (ActionLayersTest, action_slot_get_id_for_keying__legacy_action)
 TEST_F (ActionLayersTest, action_slot_get_id_for_keying__layered_action)
 TEST_F (ActionLayersTest, conversion_to_layered)
 TEST_F (ActionLayersTest, conversion_to_layered_action_groups)
 TEST_F (ActionLayersTest, empty_to_layered)
 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)
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 (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_legacy)
 TEST_F (ActionFCurveMoveTest, test_fcurve_move_layered)
 TEST (ANIM_bone_collections, bonecoll_new_free)
 TEST (ANIM_bone_collections, 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, strip_boundaries__single_strip)
 TEST_F (AnimationEvaluationTest, strip_boundaries__nonoverlapping)
 TEST_F (AnimationEvaluationTest, strip_boundaries__overlapping_edge)
 TEST (AnimationEvaluationResultTest, prop_identifier_hashing)
 TEST_F (KeyframingTest, insert_keyframes__layered_action__non_array_property)
 TEST_F (KeyframingTest, insert_keyframes__layered_action__action_reuse)
 TEST_F (KeyframingTest, insert_keyframes__layered_action__action_reuse_material)
 TEST_F (KeyframingTest, insert_keyframes__layered_action__action_reuse_multiuser)
 TEST_F (KeyframingTest, insert_keyframes__layered_action__single_element)
 TEST_F (KeyframingTest, insert_keyframes__layered_action__all_elements)
 TEST_F (KeyframingTest, insert_keyframes__layered_action__pose_bone_rna_pointer)
 TEST_F (KeyframingTest, insert_keyframes__pose_bone_owner_id_pointer)
 TEST_F (KeyframingTest, insert_keyframes__layered_action__multiple_properties)
 TEST_F (KeyframingTest, insert_keyframes__layered_action__multiple_ids)
 TEST_F (KeyframingTest, insert_keyframes__baklava_legacy_action)
 TEST_F (KeyframingTest, insert_keyframes__layered_action__only_available)
 TEST_F (KeyframingTest, insert_keyframes__layered_action__only_replace)
 TEST_F (KeyframingTest, insert_keyframes__layered_action__only_needed)
 TEST_F (KeyframingTest, insert_keyframes__legacy_action__non_array_property)
 TEST_F (KeyframingTest, insert_keyframes__legacy_action__optional_frame)
 TEST_F (KeyframingTest, insert_keyframes__legacy_action__optional_channel_group)
 TEST_F (KeyframingTest, insert_keyframes__single_element)
 TEST_F (KeyframingTest, insert_keyframes__legacy_action__all_elements)
 TEST_F (KeyframingTest, insert_keyframes__legacy_action__pose_bone_rna_pointer)
 TEST_F (KeyframingTest, insert_keyframes__legacy_action__pose_bone_owner_id_pointer)
 TEST_F (KeyframingTest, insert_keyframes__legacy_action__multiple_properties)
 TEST_F (KeyframingTest, insert_keyframes__legacy_action__only_available)
 TEST_F (KeyframingTest, insert_keyframes__legacy_action__only_replace)
 TEST_F (KeyframingTest, insert_keyframes__legacy_action__only_needed)
 TEST_F (KeyframingTest, insert_keyframes__nla_time_remapping)
 TEST_F (KeyframingTest, insert_keyframes__legacy_action__quaternion_on_nla)
 TEST_F (KeyframingTest, insert_keyframes__legacy_action__quaternion_on_nla__only_available)
 TEST_F (KeyframingTest, insert_keyframes__legacy_action__quaternion_on_nla__only_replace)
 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)
 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

Definition at line 1400 of file animrig/intern/action_test.cc.

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

Referenced by TEST_F().

◆ allocate_keyframes()

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

Definition at line 1394 of file animrig/intern/action_test.cc.

References FCurve::bezt, and MEM_calloc_arrayN().

Referenced by TEST_F().

◆ TEST() [1/4]

blender::animrig::tests::TEST ( action ,
low_level_initialisation  )

◆ TEST() [2/4]

blender::animrig::tests::TEST ( ANIM_bone_collections ,
bonecoll_default_name  )

◆ TEST() [3/4]

◆ TEST() [4/4]

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

◆ TEST_F() [1/131]

◆ TEST_F() [2/131]

◆ TEST_F() [3/131]

◆ TEST_F() [4/131]

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

◆ TEST_F() [5/131]

◆ TEST_F() [6/131]

◆ TEST_F() [7/131]

◆ TEST_F() [8/131]

◆ TEST_F() [9/131]

◆ TEST_F() [10/131]

◆ TEST_F() [11/131]

◆ TEST_F() [12/131]

◆ TEST_F() [13/131]

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

◆ TEST_F() [14/131]

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

◆ TEST_F() [15/131]

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

◆ TEST_F() [16/131]

◆ TEST_F() [17/131]

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

◆ TEST_F() [18/131]

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

Definition at line 91 of file animrig/intern/action_test.cc.

References EXPECT_EQ(), and ID_CA.

◆ TEST_F() [19/131]

◆ TEST_F() [20/131]

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

Definition at line 323 of file animrig/intern/action_test.cc.

References EXPECT_EQ(), and ID_CA.

◆ TEST_F() [21/131]

◆ TEST_F() [22/131]

◆ TEST_F() [23/131]

◆ TEST_F() [24/131]

◆ TEST_F() [25/131]

◆ TEST_F() [26/131]

◆ TEST_F() [27/131]

◆ TEST_F() [28/131]

◆ TEST_F() [29/131]

◆ TEST_F() [30/131]

◆ TEST_F() [31/131]

◆ TEST_F() [32/131]

◆ TEST_F() [33/131]

◆ TEST_F() [34/131]

◆ TEST_F() [35/131]

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

Definition at line 712 of file animrig/intern/action_test.cc.

References ActionSlot::identifier.

◆ TEST_F() [36/131]

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

◆ TEST_F() [37/131]

◆ TEST_F() [38/131]

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

◆ TEST_F() [39/131]

◆ TEST_F() [40/131]

◆ TEST_F() [41/131]

◆ TEST_F() [42/131]

blender::animrig::tests::TEST_F ( ActionLegacyTest ,
action_fcurves_remove_legacy  )

◆ TEST_F() [43/131]

◆ TEST_F() [44/131]

◆ TEST_F() [45/131]

◆ TEST_F() [46/131]

◆ TEST_F() [47/131]

blender::animrig::tests::TEST_F ( ActionQueryTest ,
BKE_action_frame_range_calc  )

◆ TEST_F() [48/131]

◆ TEST_F() [49/131]

blender::animrig::tests::TEST_F ( AnimationEvaluationTest ,
strip_boundaries__nonoverlapping  )

◆ TEST_F() [50/131]

blender::animrig::tests::TEST_F ( AnimationEvaluationTest ,
strip_boundaries__overlapping_edge  )

◆ TEST_F() [51/131]

blender::animrig::tests::TEST_F ( AnimationEvaluationTest ,
strip_boundaries__single_strip  )

◆ TEST_F() [52/131]

◆ TEST_F() [53/131]

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

◆ TEST_F() [54/131]

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

◆ TEST_F() [55/131]

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

◆ TEST_F() [56/131]

◆ TEST_F() [57/131]

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

◆ TEST_F() [58/131]

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

◆ TEST_F() [59/131]

◆ TEST_F() [60/131]

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

◆ TEST_F() [61/131]

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

◆ TEST_F() [62/131]

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

◆ TEST_F() [63/131]

◆ TEST_F() [64/131]

◆ TEST_F() [65/131]

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

◆ TEST_F() [66/131]

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

◆ TEST_F() [67/131]

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

◆ TEST_F() [68/131]

◆ TEST_F() [69/131]

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

◆ TEST_F() [70/131]

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

◆ TEST_F() [71/131]

◆ TEST_F() [72/131]

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

◆ TEST_F() [73/131]

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

◆ TEST_F() [74/131]

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

◆ TEST_F() [75/131]

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

◆ TEST_F() [76/131]

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

◆ TEST_F() [77/131]

◆ TEST_F() [78/131]

◆ TEST_F() [79/131]

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

◆ TEST_F() [80/131]

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

◆ TEST_F() [81/131]

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

◆ TEST_F() [82/131]

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

◆ TEST_F() [83/131]

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

◆ TEST_F() [84/131]

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

◆ TEST_F() [85/131]

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

◆ TEST_F() [86/131]

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

Definition at line 1815 of file animrig/intern/action_test.cc.

References EXPECT_EQ().

◆ TEST_F() [87/131]

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

◆ TEST_F() [88/131]

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

◆ TEST_F() [89/131]

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

◆ TEST_F() [90/131]

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

Definition at line 1798 of file animrig/intern/action_test.cc.

References EXPECT_EQ().

◆ TEST_F() [91/131]

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

◆ TEST_F() [92/131]

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

◆ TEST_F() [93/131]

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

Definition at line 1712 of file animrig/intern/action_test.cc.

References EXPECT_EQ(), and FCurve::grp.

◆ TEST_F() [94/131]

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

◆ TEST_F() [95/131]

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

◆ TEST_F() [96/131]

◆ TEST_F() [97/131]

◆ TEST_F() [98/131]

◆ TEST_F() [99/131]

◆ TEST_F() [100/131]

◆ TEST_F() [101/131]

◆ TEST_F() [102/131]

◆ TEST_F() [103/131]

◆ TEST_F() [104/131]

◆ TEST_F() [105/131]

◆ TEST_F() [106/131]

◆ TEST_F() [107/131]

◆ TEST_F() [108/131]

◆ TEST_F() [109/131]

blender::animrig::tests::TEST_F ( KeyframingTest ,
insert_keyframes__legacy_action__all_elements  )

◆ TEST_F() [110/131]

blender::animrig::tests::TEST_F ( KeyframingTest ,
insert_keyframes__legacy_action__multiple_properties  )

◆ TEST_F() [111/131]

◆ TEST_F() [112/131]

◆ TEST_F() [113/131]

◆ TEST_F() [114/131]

◆ TEST_F() [115/131]

◆ TEST_F() [116/131]

◆ TEST_F() [117/131]

blender::animrig::tests::TEST_F ( KeyframingTest ,
insert_keyframes__legacy_action__pose_bone_owner_id_pointer  )

◆ TEST_F() [118/131]

◆ TEST_F() [119/131]

blender::animrig::tests::TEST_F ( KeyframingTest ,
insert_keyframes__legacy_action__quaternion_on_nla  )

◆ TEST_F() [120/131]

◆ TEST_F() [121/131]

◆ TEST_F() [122/131]

◆ TEST_F() [123/131]

◆ TEST_F() [124/131]

blender::animrig::tests::TEST_F ( KeyframingTest ,
insert_keyframes__single_element  )

◆ TEST_F() [125/131]

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

◆ TEST_F() [126/131]

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

◆ TEST_F() [127/131]

◆ TEST_F() [128/131]

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

◆ TEST_F() [129/131]

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

◆ TEST_F() [130/131]

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

◆ TEST_F() [131/131]

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

Definition at line 102 of file pose_test.cc.

References EXPECT_EQ(), and blender::animrig::get_best_pose_slot_for_id().