3-phase PV router
Loading...
Searching...
No Matches
test_main.cpp File Reference

Native tests for the rotation groups: the setting, its resolution and the rotation. More...

#include <unity.h>
#include "config_types.h"
#include "load_map.h"
#include "load_priorities.h"
#include "rotation_groups.h"
Include dependency graph for test_main.cpp:

Go to the source code of this file.

Functions

int main (int, char **)
 
void setUp (void)
 
void tearDown (void)
 
void test_check_group_of_one (void)
 
void test_check_load_twice (void)
 
void test_check_mixed_local_and_remote (void)
 
void test_check_relay_is_not_a_load (void)
 
void test_check_two_remote_units (void)
 
void test_checks_pass_for_two_good_groups (void)
 
void test_checks_pass_without_groups (void)
 
void test_loads_of_groups_and_relays (void)
 
void test_loads_of_load_and_local_load (void)
 
void test_loads_of_pin_is_the_local_load_on_it (void)
 
void test_loads_of_remote_load_follows_map_order (void)
 
void test_loads_outside_groups_never_move (void)
 
void test_missing_inner_braces_make_one_load_groups (void)
 
void test_n_rotations_are_back_to_the_start (void)
 
void test_no_group (void)
 
void test_on_bits_travel_with_their_load (void)
 
void test_one_group_of_every_load_is_todays_rotation (void)
 
void test_one_group_of_every_local_load (void)
 
void test_table_gives_the_loads_of_each_group (void)
 
void test_table_without_groups_changes_nothing (void)
 
void test_two_groups_keep_their_codes (void)
 
void test_two_interleaved_groups_rotate_apart (void)
 

Detailed Description

Native tests for the rotation groups: the setting, its resolution and the rotation.

rotationGroups in config.h lists the loads that take turns, as groups written with the target codes of the override pins. Each group rotates among the priority places its loads hold; loads in no group never move.

Definition in file test_main.cpp.

Function Documentation

◆ main()

int main ( int ,
char **  )

Definition at line 225 of file test_main.cpp.

Here is the call graph for this function:

◆ setUp()

void setUp ( void )

Definition at line 18 of file test_main.cpp.

◆ tearDown()

void tearDown ( void )

Definition at line 19 of file test_main.cpp.

◆ test_check_group_of_one()

void test_check_group_of_one ( void )

Definition at line 116 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_check_load_twice()

void test_check_load_twice ( void )

Definition at line 122 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_check_mixed_local_and_remote()

void test_check_mixed_local_and_remote ( void )

Definition at line 132 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_check_relay_is_not_a_load()

void test_check_relay_is_not_a_load ( void )

Definition at line 110 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_check_two_remote_units()

void test_check_two_remote_units ( void )

Definition at line 138 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_checks_pass_for_two_good_groups()

void test_checks_pass_for_two_good_groups ( void )

Definition at line 104 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_checks_pass_without_groups()

void test_checks_pass_without_groups ( void )

Definition at line 144 of file test_main.cpp.

Here is the caller graph for this function:

◆ test_loads_of_groups_and_relays()

void test_loads_of_groups_and_relays ( void )

Definition at line 92 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_loads_of_load_and_local_load()

void test_loads_of_load_and_local_load ( void )

Definition at line 70 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_loads_of_pin_is_the_local_load_on_it()

void test_loads_of_pin_is_the_local_load_on_it ( void )

Definition at line 86 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_loads_of_remote_load_follows_map_order()

void test_loads_of_remote_load_follows_map_order ( void )

Definition at line 78 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_loads_outside_groups_never_move()

void test_loads_outside_groups_never_move ( void )

Definition at line 175 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_missing_inner_braces_make_one_load_groups()

void test_missing_inner_braces_make_one_load_groups ( void )

Definition at line 45 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_n_rotations_are_back_to_the_start()

void test_n_rotations_are_back_to_the_start ( void )

Definition at line 195 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_no_group()

void test_no_group ( void )

Definition at line 23 of file test_main.cpp.

Here is the caller graph for this function:

◆ test_on_bits_travel_with_their_load()

void test_on_bits_travel_with_their_load ( void )

Definition at line 184 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_one_group_of_every_load_is_todays_rotation()

void test_one_group_of_every_load_is_todays_rotation ( void )

Definition at line 152 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_one_group_of_every_local_load()

void test_one_group_of_every_local_load ( void )

Definition at line 29 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_table_gives_the_loads_of_each_group()

void test_table_gives_the_loads_of_each_group ( void )

Definition at line 217 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_table_without_groups_changes_nothing()

void test_table_without_groups_changes_nothing ( void )

Definition at line 207 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_two_groups_keep_their_codes()

void test_two_groups_keep_their_codes ( void )

Definition at line 37 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_two_interleaved_groups_rotate_apart()

void test_two_interleaved_groups_rotate_apart ( void )

Definition at line 164 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: