void APL_Certifs::resetFlags() { //Reset the issuer, root and test flag //the order is important resetIssuers(); //First we define the issuers resetRoots(); //Then set the root flag resetTests(); //And last define the test flag }
// setup and run test suite void runSpiTests(){ resetTests(); add(&test_that_received_byte_is_placed_in_rxbuffer); add(&test_that_write_pos_wraps); add(&test_that_rxlength_is_set_on_first_byte); add(&test_that_rxbytecounter_is_reset_when_last_byte_is_received); add(&test_that_package_is_received_by_spi); add(&test_that_command_is_not_called_when_not_all_bytes_are_ready); add(&test_that_multiple_commands_may_be_treated); add(&test_that_only_first_command_is_treated_if_second_is_incomplete); add(&test_that_positive_8bit_controllers_are_converted_correctly); add(&test_that_negative_8bit_controllers_are_converted_correctly); add(&test_that_positive_16bit_controllers_are_converted_correctly); add(&test_that_negative_16bit_controllers_are_converted_correctly); add(&test_that_cc_to_input_mapping_is_set_correctly); add(&test_that_note_on_is_set_correctly); run(resetSpi); }