Blender V5.3
blender::editor::animation::tests Namespace Reference

Classes

class  KeyListTest
class  KeylistSummaryTest

Typedefs

using KeylistFindFunction = std::function<const ActKeyColumn *(const AnimKeylist *, float)>

Functions

static void build_fcurve (FCurve &fcurve)
static AnimKeylist * create_test_keylist ()
static void assert_act_key_column (const ActKeyColumn *column, const std::optional< float > expected_frame)
static void check_keylist_find_range (const AnimKeylist *keylist, KeylistFindFunction keylist_find_func, const float frame_from, const float frame_to, const std::optional< float > expected_frame)
static void check_keylist_find_next_range (const AnimKeylist *keylist, const float frame_from, const float frame_to, const std::optional< float > expected_frame)
 TEST_F (KeyListTest, find_next)
static void check_keylist_find_prev_range (const AnimKeylist *keylist, const float frame_from, const float frame_to, const std::optional< float > expected_frame)
 TEST_F (KeyListTest, find_prev)
static void check_keylist_find_exact_range (const AnimKeylist *keylist, const float frame_from, const float frame_to, const std::optional< float > expected_frame)
 TEST_F (KeyListTest, find_exact)
 TEST_F (KeyListTest, find_closest)
 TEST_F (KeylistSummaryTest, slot_summary_simple)
 TEST_F (KeylistSummaryTest, slot_summary_bone_selection)

Variables

const float KEYLIST_NEAR_ERROR = 0.1
const float FRAME_STEP = 0.005

Typedef Documentation

◆ KeylistFindFunction

Definition at line 77 of file keyframes_keylist_test.cc.

Function Documentation

◆ assert_act_key_column()

void blender::editor::animation::tests::assert_act_key_column ( const ActKeyColumn * column,
const std::optional< float > expected_frame )
static

◆ build_fcurve()

void blender::editor::animation::tests::build_fcurve ( FCurve & fcurve)
static

◆ check_keylist_find_exact_range()

void blender::editor::animation::tests::check_keylist_find_exact_range ( const AnimKeylist * keylist,
const float frame_from,
const float frame_to,
const std::optional< float > expected_frame )
static

◆ check_keylist_find_next_range()

void blender::editor::animation::tests::check_keylist_find_next_range ( const AnimKeylist * keylist,
const float frame_from,
const float frame_to,
const std::optional< float > expected_frame )
static

◆ check_keylist_find_prev_range()

void blender::editor::animation::tests::check_keylist_find_prev_range ( const AnimKeylist * keylist,
const float frame_from,
const float frame_to,
const std::optional< float > expected_frame )
static

◆ check_keylist_find_range()

void blender::editor::animation::tests::check_keylist_find_range ( const AnimKeylist * keylist,
KeylistFindFunction keylist_find_func,
const float frame_from,
const float frame_to,
const std::optional< float > expected_frame )
static

◆ create_test_keylist()

◆ TEST_F() [1/6]

◆ TEST_F() [2/6]

◆ TEST_F() [3/6]

blender::editor::animation::tests::TEST_F ( KeyListTest ,
find_closest  )

◆ TEST_F() [4/6]

blender::editor::animation::tests::TEST_F ( KeyListTest ,
find_exact  )

◆ TEST_F() [5/6]

blender::editor::animation::tests::TEST_F ( KeyListTest ,
find_next  )

◆ TEST_F() [6/6]

blender::editor::animation::tests::TEST_F ( KeyListTest ,
find_prev  )

Variable Documentation

◆ FRAME_STEP

const float blender::editor::animation::tests::FRAME_STEP = 0.005

Definition at line 37 of file keyframes_keylist_test.cc.

Referenced by check_keylist_find_range().

◆ KEYLIST_NEAR_ERROR

const float blender::editor::animation::tests::KEYLIST_NEAR_ERROR = 0.1

Definition at line 36 of file keyframes_keylist_test.cc.

Referenced by assert_act_key_column().