Tests module

Testing helpers.

Contents

Functions

void test_project_check_vs_original_state(Position* p1, Position* p2, int check_selections)
Checks that the objects are back to their original state.
void test_project_rebootstrap_timeline(Position* p1, Position* p2)
Bootstraps the test with test data.
void test_helper_zrythm_init()
To be called by every test's main to initialize Zrythm to default values.
void test_helper_zrythm_cleanup()
To be called by every test's main at the end to clean up (TODO).
void test_helper_zrythm_gui_init(int argc, char* argv[])
To be called after test_helper_zrythm_init() to initialize the UI (GTK).

Defines

#define MN_VAL
MidiNote value to use.
#define MN_VEL
MidiNote velocity to use.
#define AP_VAL1
First AP value.
#define AP_VAL2
Second AP value.
#define MARKER_NAME
Marker name.
#define DEFAULT_FISHBOWL_TIME
Time to run fishbowl, in seconds.
#define g_assert_cmppos(a, b)
Compares 2 Position pointers.

Function documentation

void test_project_check_vs_original_state(Position* p1, Position* p2, int check_selections)

Checks that the objects are back to their original state.

Parameters
p1
p2
check_selections Also checks that the selections are back to where they were.

void test_project_rebootstrap_timeline(Position* p1, Position* p2)

Bootstraps the test with test data.

void test_helper_zrythm_init()

To be called by every test's main to initialize Zrythm to default values.

void test_helper_zrythm_cleanup()

To be called by every test's main at the end to clean up (TODO).

void test_helper_zrythm_gui_init(int argc, char* argv[])

To be called after test_helper_zrythm_init() to initialize the UI (GTK).

Define documentation

#define MN_VAL

MidiNote value to use.

#define MN_VEL

MidiNote velocity to use.

#define AP_VAL1

First AP value.

#define AP_VAL2

Second AP value.

#define DEFAULT_FISHBOWL_TIME

Time to run fishbowl, in seconds.

#define g_assert_cmppos(a, b)

Compares 2 Position pointers.