KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <sch_pin.h>
#include <lib_symbol.h>
#include <eeschema_test_utils.h>
Go to the source code of this file.
Classes | |
struct | STACKED_PIN_CONVERSION_FIXTURE |
Functions | |
BOOST_AUTO_TEST_CASE (TestStackedPinExpansion) | |
Test basic stacked pin number expansion functionality. | |
BOOST_AUTO_TEST_CASE (TestStackedPinValidity) | |
Test stacked pin validity checking. | |
BOOST_AUTO_TEST_CASE (TestPinCreation) | |
Test pin creation and positioning for conversion tests. | |
BOOST_AUTO_TEST_CASE (TestStackedPinNetNaming) | |
Test net name generation with stacked pins. | |
BOOST_AUTO_TEST_CASE (TestConvertMultiplePinsToStacked) | |
Test conversion from multiple co-located pins to stacked notation. | |
BOOST_AUTO_TEST_CASE (TestRangeCollapsingConversion) | |
Test range collapsing functionality in stacked pin conversion. | |
BOOST_AUTO_TEST_CASE (TestRoundTripConversion) | |
Test round-trip conversion: multiple pins -> stacked -> multiple pins. | |
BOOST_AUTO_TEST_CASE (TestVisibilityHandling) | |
Test visibility behavior during conversions. | |
BOOST_AUTO_TEST_CASE (TestAlphanumericRangeCollapsing) | |
Test alphanumeric range collapsing functionality. | |
BOOST_AUTO_TEST_CASE | ( | TestAlphanumericRangeCollapsing | ) |
Test alphanumeric range collapsing functionality.
Definition at line 633 of file test_stacked_pin_conversion.cpp.
References BOOST_CHECK_EQUAL(), and end.
BOOST_AUTO_TEST_CASE | ( | TestConvertMultiplePinsToStacked | ) |
Test conversion from multiple co-located pins to stacked notation.
Definition at line 188 of file test_stacked_pin_conversion.cpp.
References BOOST_CHECK_EQUAL(), SCH_PIN::GetNumber(), SCH_PIN::GetStackedPinNumbers(), PIN_RIGHT, SCH_PIN::SetNumber(), SCH_PIN::SetOrientation(), SCH_PIN::SetPosition(), and SCH_PIN::SetVisible().
BOOST_AUTO_TEST_CASE | ( | TestPinCreation | ) |
Test pin creation and positioning for conversion tests.
Definition at line 129 of file test_stacked_pin_conversion.cpp.
References BOOST_CHECK_EQUAL(), SCH_PIN::GetPosition(), SCH_PIN::IsStacked(), PIN_RIGHT, SCH_PIN::SetNumber(), SCH_PIN::SetOrientation(), and SCH_PIN::SetPosition().
BOOST_AUTO_TEST_CASE | ( | TestRangeCollapsingConversion | ) |
Test range collapsing functionality in stacked pin conversion.
Definition at line 252 of file test_stacked_pin_conversion.cpp.
References BOOST_CHECK_EQUAL(), end, SCH_PIN::GetStackedPinNumbers(), result, and SCH_PIN::SetNumber().
BOOST_AUTO_TEST_CASE | ( | TestRoundTripConversion | ) |
Test round-trip conversion: multiple pins -> stacked -> multiple pins.
Definition at line 452 of file test_stacked_pin_conversion.cpp.
References BOOST_CHECK_EQUAL(), SCH_ITEM::GetBodyStyle(), SCH_PIN::GetLength(), SCH_PIN::GetName(), SCH_PIN::GetNameTextSize(), SCH_PIN::GetNumberTextSize(), SCH_PIN::GetOrientation(), SCH_PIN::GetPosition(), SCH_PIN::GetShape(), SCH_PIN::GetStackedPinNumbers(), SCH_PIN::GetType(), SCH_ITEM::GetUnit(), pin, PIN_LEFT, PT_INPUT, SCH_ITEM::SetBodyStyle(), SCH_PIN::SetLength(), SCH_PIN::SetName(), SCH_PIN::SetNameTextSize(), SCH_PIN::SetNumber(), SCH_PIN::SetNumberTextSize(), SCH_PIN::SetOrientation(), SCH_PIN::SetPosition(), SCH_PIN::SetShape(), SCH_PIN::SetType(), SCH_ITEM::SetUnit(), and SCH_PIN::SetVisible().
BOOST_AUTO_TEST_CASE | ( | TestStackedPinExpansion | ) |
Test basic stacked pin number expansion functionality.
Definition at line 43 of file test_stacked_pin_conversion.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), and pin.
BOOST_AUTO_TEST_CASE | ( | TestStackedPinNetNaming | ) |
Test net name generation with stacked pins.
Definition at line 166 of file test_stacked_pin_conversion.cpp.
References BOOST_CHECK_EQUAL(), and pin.
BOOST_AUTO_TEST_CASE | ( | TestStackedPinValidity | ) |
Test stacked pin validity checking.
Definition at line 95 of file test_stacked_pin_conversion.cpp.
References BOOST_CHECK_EQUAL(), and pin.
BOOST_AUTO_TEST_CASE | ( | TestVisibilityHandling | ) |
Test visibility behavior during conversions.
Definition at line 589 of file test_stacked_pin_conversion.cpp.
References BOOST_CHECK_EQUAL(), and pin.