Native unit tests for utils_override.h.
More...
#include <unity.h>
#include "utils_override.h"
Go to the source code of this file.
Native unit tests for utils_override.h.
Tests pure C++ bitmask utilities: PinList, KeyIndexPair, OverrideTable, TargetMap, indicesToBitmask, are_pins_valid. No config.h, no stubs - just the real code.
Definition in file test_main.cpp.
◆ REMOTE_LOAD
Value:
constexpr uint8_t REMOTE_PIN_BASE
Base value for virtual pins representing remote loads.
Definition at line 278 of file test_main.cpp.
◆ main()
◆ setUp()
◆ tearDown()
◆ test_are_pins_valid_all_valid()
| void test_are_pins_valid_all_valid |
( |
void | | ) |
|
◆ test_are_pins_valid_rejects_pin_0()
| void test_are_pins_valid_rejects_pin_0 |
( |
void | | ) |
|
◆ test_are_pins_valid_rejects_pin_1()
| void test_are_pins_valid_rejects_pin_1 |
( |
void | | ) |
|
◆ test_are_pins_valid_rejects_pin_14_and_above()
| void test_are_pins_valid_rejects_pin_14_and_above |
( |
void | | ) |
|
◆ test_indicesToBitmask_all_bits()
| void test_indicesToBitmask_all_bits |
( |
void | | ) |
|
◆ test_indicesToBitmask_consecutive()
| void test_indicesToBitmask_consecutive |
( |
void | | ) |
|
◆ test_indicesToBitmask_multiple_indices()
| void test_indicesToBitmask_multiple_indices |
( |
void | | ) |
|
◆ test_indicesToBitmask_single_index()
| void test_indicesToBitmask_single_index |
( |
void | | ) |
|
◆ test_KeyIndexPair_construction()
| void test_KeyIndexPair_construction |
( |
void | | ) |
|
◆ test_KeyIndexPair_from_bitmask()
| void test_KeyIndexPair_from_bitmask |
( |
void | | ) |
|
◆ test_KeyIndexPair_getLocalBitmask()
| void test_KeyIndexPair_getLocalBitmask |
( |
void | | ) |
|
◆ test_KeyIndexPair_getRemoteBitmask_empty()
| void test_KeyIndexPair_getRemoteBitmask_empty |
( |
void | | ) |
|
◆ test_KeyIndexPair_getRemoteBitmask_mixed()
| void test_KeyIndexPair_getRemoteBitmask_mixed |
( |
void | | ) |
|
◆ test_KeyIndexPair_getRemoteBitmask_remote_only()
| void test_KeyIndexPair_getRemoteBitmask_remote_only |
( |
void | | ) |
|
◆ test_KeyIndexPair_single_pin()
| void test_KeyIndexPair_single_pin |
( |
void | | ) |
|
◆ test_OverrideTable_findLocalBitmask_found()
| void test_OverrideTable_findLocalBitmask_found |
( |
void | | ) |
|
◆ test_OverrideTable_findLocalBitmask_not_found()
| void test_OverrideTable_findLocalBitmask_not_found |
( |
void | | ) |
|
◆ test_OverrideTable_findRemoteBitmask_found()
| void test_OverrideTable_findRemoteBitmask_found |
( |
void | | ) |
|
◆ test_OverrideTable_findRemoteBitmask_not_found()
| void test_OverrideTable_findRemoteBitmask_not_found |
( |
void | | ) |
|
◆ test_OverrideTable_from_the_settings_matches_plain_pins()
| void test_OverrideTable_from_the_settings_matches_plain_pins |
( |
void | | ) |
|
◆ test_OverrideTable_getLocalBitmask_out_of_bounds()
| void test_OverrideTable_getLocalBitmask_out_of_bounds |
( |
void | | ) |
|
◆ test_OverrideTable_getPin_out_of_bounds()
| void test_OverrideTable_getPin_out_of_bounds |
( |
void | | ) |
|
◆ test_OverrideTable_getRemoteBitmask_local_only()
| void test_OverrideTable_getRemoteBitmask_local_only |
( |
void | | ) |
|
◆ test_OverrideTable_getRemoteBitmask_mixed()
| void test_OverrideTable_getRemoteBitmask_mixed |
( |
void | | ) |
|
◆ test_OverrideTable_getRemoteBitmask_out_of_bounds()
| void test_OverrideTable_getRemoteBitmask_out_of_bounds |
( |
void | | ) |
|
◆ test_OverrideTable_getRemoteBitmask_remote_only()
| void test_OverrideTable_getRemoteBitmask_remote_only |
( |
void | | ) |
|
◆ test_OverrideTable_many_entries()
| void test_OverrideTable_many_entries |
( |
void | | ) |
|
◆ test_OverrideTable_multiple_entries()
| void test_OverrideTable_multiple_entries |
( |
void | | ) |
|
◆ test_OverrideTable_multiple_entries_mixed()
| void test_OverrideTable_multiple_entries_mixed |
( |
void | | ) |
|
◆ test_OverrideTable_single_entry()
| void test_OverrideTable_single_entry |
( |
void | | ) |
|
◆ test_OverrideTable_with_bitmask_constructor()
| void test_OverrideTable_with_bitmask_constructor |
( |
void | | ) |
|
◆ test_PinList_default_constructor()
| void test_PinList_default_constructor |
( |
void | | ) |
|
◆ test_PinList_from_bitmask()
| void test_PinList_from_bitmask |
( |
void | | ) |
|
◆ test_PinList_from_bitmask_empty()
| void test_PinList_from_bitmask_empty |
( |
void | | ) |
|
◆ test_PinList_from_bitmask_full()
| void test_PinList_from_bitmask_full |
( |
void | | ) |
|
◆ test_PinList_from_uint32_bitmask_local_only()
| void test_PinList_from_uint32_bitmask_local_only |
( |
void | | ) |
|
◆ test_PinList_from_uint32_bitmask_mixed()
| void test_PinList_from_uint32_bitmask_mixed |
( |
void | | ) |
|
◆ test_PinList_from_uint32_bitmask_remote_only()
| void test_PinList_from_uint32_bitmask_remote_only |
( |
void | | ) |
|
◆ test_PinList_max_pins()
| void test_PinList_max_pins |
( |
void | | ) |
|
◆ test_PinList_single_pin()
| void test_PinList_single_pin |
( |
void | | ) |
|
◆ test_PinList_toLocalBitmask()
| void test_PinList_toLocalBitmask |
( |
void | | ) |
|
◆ test_PinList_toRemoteBitmask_empty()
| void test_PinList_toRemoteBitmask_empty |
( |
void | | ) |
|
◆ test_PinList_toRemoteBitmask_local_only()
| void test_PinList_toRemoteBitmask_local_only |
( |
void | | ) |
|
◆ test_PinList_toRemoteBitmask_mixed()
| void test_PinList_toRemoteBitmask_mixed |
( |
void | | ) |
|
◆ test_PinList_toRemoteBitmask_multiple_remote()
| void test_PinList_toRemoteBitmask_multiple_remote |
( |
void | | ) |
|
◆ test_PinList_toRemoteBitmask_single_remote()
| void test_PinList_toRemoteBitmask_single_remote |
( |
void | | ) |
|
◆ test_PinList_variadic_constructor()
| void test_PinList_variadic_constructor |
( |
void | | ) |
|
◆ test_TargetMap_a_group_and_single_targets_in_one_list()
| void test_TargetMap_a_group_and_single_targets_in_one_list |
( |
void | | ) |
|
◆ test_TargetMap_groups()
| void test_TargetMap_groups |
( |
void | | ) |
|
◆ test_TargetMap_LOAD_gives_the_pin_or_the_remote_rank()
| void test_TargetMap_LOAD_gives_the_pin_or_the_remote_rank |
( |
void | | ) |
|
◆ test_TargetMap_out_of_range_gives_pin_0()
| void test_TargetMap_out_of_range_gives_pin_0 |
( |
void | | ) |
|
◆ test_TargetMap_plain_pins_pass_through()
| void test_TargetMap_plain_pins_pass_through |
( |
void | | ) |
|
◆ test_TargetMap_RELAY_needs_relay_diversion()
| void test_TargetMap_RELAY_needs_relay_diversion |
( |
void | | ) |
|