Blender  V3.3
Namespaces | Typedefs | Functions | Variables
keyframes_keylist_test.cc File Reference
#include "testing/testing.h"
#include "BLI_utildefines.h"
#include "ED_keyframes_keylist.h"
#include "DNA_anim_types.h"
#include "DNA_curve_types.h"
#include "MEM_guardedalloc.h"
#include "BKE_fcurve.h"
#include <functional>
#include <optional>

Go to the source code of this file.

Namespaces

 blender
 
 blender::editor
 
 blender::editor::animation
 
 blender::editor::animation::tests
 

Typedefs

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

Functions

static void blender::editor::animation::tests::build_fcurve (FCurve &fcurve)
 
static AnimKeylistblender::editor::animation::tests::create_test_keylist ()
 
static void blender::editor::animation::tests::assert_act_key_column (const ActKeyColumn *column, const std::optional< float > expected_frame)
 
static float 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 float 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)
 
 blender::editor::animation::tests::TEST (keylist, find_next)
 
static float 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)
 
 blender::editor::animation::tests::TEST (keylist, find_prev)
 
static float 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)
 
 blender::editor::animation::tests::TEST (keylist, find_exact)
 

Variables

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