|
3-phase PV router
|
Native unit tests for utils_override.h. More...

Go to the source code of this file.
Native unit tests for utils_override.h.
Tests pure C++ bitmask utilities: PinList, KeyIndexPair, OverridePins, indicesToBitmask, are_pins_valid. No config.h, no stubs - just the real code.
Definition in file test_main.cpp.
| int main | ( | void | ) |
| void setUp | ( | void | ) |
Definition at line 13 of file test_main.cpp.
| void tearDown | ( | void | ) |
Definition at line 14 of file test_main.cpp.
| void test_are_pins_valid_all_valid | ( | void | ) |
Definition at line 49 of file test_main.cpp.


| void test_are_pins_valid_rejects_pin_0 | ( | void | ) |
Definition at line 57 of file test_main.cpp.


| void test_are_pins_valid_rejects_pin_1 | ( | void | ) |
Definition at line 63 of file test_main.cpp.


| void test_are_pins_valid_rejects_pin_14_and_above | ( | void | ) |
Definition at line 69 of file test_main.cpp.


| void test_indicesToBitmask_all_bits | ( | void | ) |
Definition at line 39 of file test_main.cpp.


| void test_indicesToBitmask_consecutive | ( | void | ) |
Definition at line 33 of file test_main.cpp.


| void test_indicesToBitmask_multiple_indices | ( | void | ) |
Definition at line 27 of file test_main.cpp.


| void test_indicesToBitmask_single_index | ( | void | ) |
Definition at line 20 of file test_main.cpp.


| void test_KeyIndexPair_construction | ( | void | ) |
| void test_KeyIndexPair_from_bitmask | ( | void | ) |
| void test_KeyIndexPair_getBitmask | ( | void | ) |
| void test_KeyIndexPair_single_pin | ( | void | ) |
| void test_OverridePins_findBitmask_found | ( | void | ) |
| void test_OverridePins_findBitmask_not_found | ( | void | ) |
| void test_OverridePins_getBitmask_out_of_bounds | ( | void | ) |
| void test_OverridePins_getPin_out_of_bounds | ( | void | ) |
| void test_OverridePins_many_entries | ( | void | ) |
| void test_OverridePins_multiple_entries | ( | void | ) |
| void test_OverridePins_single_entry | ( | void | ) |
| void test_OverridePins_with_bitmask_constructor | ( | void | ) |
| void test_PinList_default_constructor | ( | void | ) |
| void test_PinList_from_bitmask | ( | void | ) |
| void test_PinList_from_bitmask_empty | ( | void | ) |
| void test_PinList_from_bitmask_full | ( | void | ) |
| void test_PinList_max_pins | ( | void | ) |
| void test_PinList_single_pin | ( | void | ) |
| void test_PinList_toBitmask | ( | void | ) |
| void test_PinList_variadic_constructor | ( | void | ) |