Blender V5.3
blender::animrig::tests::AnimationEvaluationTest Class Reference

Inherits blender::bke::BlenderGTestBase.

Public Member Functions

void SetUp () override
void TearDown () override
std::optional< float > evaluate_single_property (const StringRefNull rna_path, const int array_index, const float eval_time)
testing::AssertionResult test_evaluate_layer (const StringRefNull rna_path, const int array_index, const float2 eval_time__expect_value)
testing::AssertionResult test_evaluate_layer_no_result (const StringRefNull rna_path, const int array_index, const float eval_time)

Protected Attributes

Main * bmain
Action * action
Object * cube
Slot * slot
Layer * layer
KeyframeSettings settings = get_keyframe_settings(false)
AnimationEvalContext anim_eval_context = {}
PointerRNA cube_rna_ptr

Additional Inherited Members

Static Public Member Functions inherited from blender::bke::BlenderGTestBase
static void SetUpTestSuite ()
static void TearDownTestSuite ()

Detailed Description

Definition at line 34 of file evaluation_test.cc.

Member Function Documentation

◆ evaluate_single_property()

std::optional< float > blender::animrig::tests::AnimationEvaluationTest::evaluate_single_property ( const StringRefNull rna_path,
const int array_index,
const float eval_time )
inline

◆ SetUp()

◆ TearDown()

void blender::animrig::tests::AnimationEvaluationTest::TearDown ( )
inlineoverride

Definition at line 65 of file evaluation_test.cc.

References blender::BKE_main_free(), and bmain.

◆ test_evaluate_layer()

testing::AssertionResult blender::animrig::tests::AnimationEvaluationTest::test_evaluate_layer ( const StringRefNull rna_path,
const int array_index,
const float2 eval_time__expect_value )
inline

Evaluate the layer, and test that the given property evaluates to the expected value.

Definition at line 93 of file evaluation_test.cc.

References evaluate_single_property(), and blender::ulp_diff_ff().

◆ test_evaluate_layer_no_result()

testing::AssertionResult blender::animrig::tests::AnimationEvaluationTest::test_evaluate_layer_no_result ( const StringRefNull rna_path,
const int array_index,
const float eval_time )
inline

Evaluate the layer, and test that the given property is not part of the result.

Definition at line 122 of file evaluation_test.cc.

References evaluate_single_property().

Member Data Documentation

◆ action

Action* blender::animrig::tests::AnimationEvaluationTest::action
protected

Definition at line 37 of file evaluation_test.cc.

Referenced by evaluate_single_property(), and SetUp().

◆ anim_eval_context

AnimationEvalContext blender::animrig::tests::AnimationEvaluationTest::anim_eval_context = {}
protected

Definition at line 43 of file evaluation_test.cc.

Referenced by evaluate_single_property().

◆ bmain

Main* blender::animrig::tests::AnimationEvaluationTest::bmain
protected

Definition at line 36 of file evaluation_test.cc.

Referenced by SetUp(), and TearDown().

◆ cube

Object* blender::animrig::tests::AnimationEvaluationTest::cube
protected

Definition at line 38 of file evaluation_test.cc.

Referenced by SetUp().

◆ cube_rna_ptr

PointerRNA blender::animrig::tests::AnimationEvaluationTest::cube_rna_ptr
protected

Definition at line 44 of file evaluation_test.cc.

Referenced by evaluate_single_property(), and SetUp().

◆ layer

Layer* blender::animrig::tests::AnimationEvaluationTest::layer
protected

Definition at line 40 of file evaluation_test.cc.

Referenced by evaluate_single_property(), and SetUp().

◆ settings

KeyframeSettings blender::animrig::tests::AnimationEvaluationTest::settings = get_keyframe_settings(false)
protected

Definition at line 42 of file evaluation_test.cc.

Referenced by SetUp().

◆ slot

Slot* blender::animrig::tests::AnimationEvaluationTest::slot
protected

Definition at line 39 of file evaluation_test.cc.

Referenced by evaluate_single_property(), and SetUp().


The documentation for this class was generated from the following file: