|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <tools/backannotate.h>#include <map>#include <vector>Go to the source code of this file.
Functions | |
| static BACKANNOTATE_UNIT_SWAP_CANDIDATE | make_candidate (const char *aRef, int aUnit, const std::vector< const char * > &aPins, const std::initializer_list< std::pair< const char *, const char * > > &aNets) |
| static std::map< wxString, wxString > | make_pin_map (const std::initializer_list< std::pair< const char *, const char * > > &aNets) |
| static void | check_plan (const BACKANNOTATE_UNIT_SWAP_PLAN &aPlan, bool aMappingOk, bool aIdentity, std::initializer_list< size_t > aExpectedSwappedCandidateIndices) |
| static void | check_final_units (const std::vector< BACKANNOTATE_UNIT_SWAP_CANDIDATE > &aCandidates, const BACKANNOTATE_UNIT_SWAP_PLAN &aPlan, std::initializer_list< int > aExpectedUnits) |
| BOOST_AUTO_TEST_CASE (BackannotateUnitSwapPlanner_DetectsIdentityMapping) | |
| BOOST_AUTO_TEST_CASE (BackannotateUnitSwapPlanner_DetectsSimpleUnitSwap) | |
| BOOST_AUTO_TEST_CASE (BackannotateUnitSwapPlanner_DetectsBAS16TWGateRotation) | |
| BOOST_AUTO_TEST_CASE (BackannotateUnitSwapPlanner_DetectsRN1GateRotationWithSharedCommonPin) | |
| BOOST_AUTO_TEST_CASE (BackannotateUnitSwapPlanner_DoesNotTreatHybridBAS16TWGateAndPinSwapAsPureUnitRotation) | |
| BOOST_AUTO_TEST_CASE | ( | BackannotateUnitSwapPlanner_DetectsBAS16TWGateRotation | ) |
Definition at line 145 of file test_backannotate_unit_swap.cpp.
References check_final_units(), check_plan(), make_candidate(), make_pin_map(), and PlanBackannotateUnitSwaps().
| BOOST_AUTO_TEST_CASE | ( | BackannotateUnitSwapPlanner_DetectsIdentityMapping | ) |
Definition at line 105 of file test_backannotate_unit_swap.cpp.
References BOOST_AUTO_TEST_CASE(), check_final_units(), check_plan(), make_candidate(), make_pin_map(), and PlanBackannotateUnitSwaps().
| BOOST_AUTO_TEST_CASE | ( | BackannotateUnitSwapPlanner_DetectsRN1GateRotationWithSharedCommonPin | ) |
Definition at line 163 of file test_backannotate_unit_swap.cpp.
References check_final_units(), check_plan(), make_candidate(), make_pin_map(), and PlanBackannotateUnitSwaps().
| BOOST_AUTO_TEST_CASE | ( | BackannotateUnitSwapPlanner_DetectsSimpleUnitSwap | ) |
Definition at line 125 of file test_backannotate_unit_swap.cpp.
References check_final_units(), check_plan(), make_candidate(), make_pin_map(), and PlanBackannotateUnitSwaps().
| BOOST_AUTO_TEST_CASE | ( | BackannotateUnitSwapPlanner_DoesNotTreatHybridBAS16TWGateAndPinSwapAsPureUnitRotation | ) |
Definition at line 181 of file test_backannotate_unit_swap.cpp.
References BACKANNOTATE_UNIT_SWAP_PLAN::m_mappingOk, BACKANNOTATE_UNIT_SWAP_PLAN::m_steps, BACKANNOTATE_UNIT_SWAP_PLAN::m_swappedCandidateIndices, make_candidate(), make_pin_map(), and PlanBackannotateUnitSwaps().
|
static |
Definition at line 81 of file test_backannotate_unit_swap.cpp.
References BOOST_CHECK_EQUAL(), BACKANNOTATE_UNIT_SWAP_STEP::m_firstIndex, BACKANNOTATE_UNIT_SWAP_STEP::m_secondIndex, and BACKANNOTATE_UNIT_SWAP_PLAN::m_steps.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 66 of file test_backannotate_unit_swap.cpp.
References BOOST_CHECK_EQUAL(), BACKANNOTATE_UNIT_SWAP_PLAN::m_identity, BACKANNOTATE_UNIT_SWAP_PLAN::m_mappingOk, and BACKANNOTATE_UNIT_SWAP_PLAN::m_swappedCandidateIndices.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 33 of file test_backannotate_unit_swap.cpp.
References BACKANNOTATE_UNIT_SWAP_CANDIDATE::m_currentUnit, BACKANNOTATE_UNIT_SWAP_CANDIDATE::m_ref, BACKANNOTATE_UNIT_SWAP_CANDIDATE::m_schNetsByPin, BACKANNOTATE_UNIT_SWAP_CANDIDATE::m_unitPinNumbers, and pin.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 51 of file test_backannotate_unit_swap.cpp.
References pin.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().