|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include "eeschema_test_utils.h"#include <sch_reference_list.h>#include <sch_sheet_path.h>Go to the source code of this file.
Classes | |
| struct | REANNOTATED_REFERENCE |
| class | TEST_SCH_REFERENCE_LIST_FIXTURE |
| struct | REANNOTATION_CASE |
| struct | DUPLICATE_REANNOTATION_CASE |
Functions | |
| BOOST_AUTO_TEST_CASE (Reannotate) | |
| BOOST_AUTO_TEST_CASE (ReannotateDuplicates) | |
| BOOST_AUTO_TEST_CASE (ReferenceListDoesNotMutateEmptyValue) | |
| BOOST_AUTO_TEST_CASE (ReannotateSameValueMultiUnitPreservesGrouping) | |
| Test for issue #23183: multi-unit symbols with the same value should maintain unit grouping when reannotated with reset. | |
Variables | |
| static const std::vector< REANNOTATION_CASE > | reannotationCases |
| static const std::vector< DUPLICATE_REANNOTATION_CASE > | reannotateDuplicatesCases |
| BOOST_AUTO_TEST_CASE | ( | Reannotate | ) |
Definition at line 243 of file test_sch_reference_list.cpp.
References reannotationCases.
| BOOST_AUTO_TEST_CASE | ( | ReannotateDuplicates | ) |
Definition at line 283 of file test_sch_reference_list.cpp.
References INCREMENTAL_BY_REF, and reannotateDuplicatesCases.
| BOOST_AUTO_TEST_CASE | ( | ReannotateSameValueMultiUnitPreservesGrouping | ) |
Test for issue #23183: multi-unit symbols with the same value should maintain unit grouping when reannotated with reset.
When annotations are cleared before building locked groups (old design block placement behavior), the locked groups are empty and units from different symbols can get mixed during annotation. The fix preserves original refs for locked group construction, then resets.
Definition at line 334 of file test_sch_reference_list.cpp.
References SCH_REFERENCE_LIST::Annotate(), SCH_SHEET_PATH::AppendMultiUnitSymbol(), SCH_SHEET_PATH::AppendSymbol(), KIID::AsString(), BOOST_CHECK_EQUAL(), SCH_REFERENCE_LIST::GetCount(), SCH_SCREEN::Items(), SCH_SHEET_PATH::LastScreen(), LoadSchematic(), EDA_ITEM::m_Uuid, EE_RTREE::OfType(), SCH_REFERENCE_LIST::RemoveAnnotation(), SCH_SYMBOL_T, SCH_REFERENCE_LIST::SetRefDesTracker(), SCH_REFERENCE_LIST::SplitReferences(), and SCH_REFERENCE_LIST::UpdateAnnotation().
| BOOST_AUTO_TEST_CASE | ( | ReferenceListDoesNotMutateEmptyValue | ) |
Definition at line 300 of file test_sch_reference_list.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SCH_REFERENCE_LIST::GetCount(), SCH_SYMBOL::GetValue(), SCH_SYMBOL_T, and SCH_SYMBOL::SetValueFieldText().
|
static |
Definition at line 269 of file test_sch_reference_list.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 138 of file test_sch_reference_list.cpp.
Referenced by BOOST_AUTO_TEST_CASE().