|
KiCad PCB EDA Suite
|
Test for issue #24663: DNP set on a hierarchical sheet must read as effective DNP in the symbol fields table, without stamping the attribute onto the child symbols. More...
#include <boost/test/unit_test.hpp>#include <qa_utils/wx_utils/unit_test_utils.h>#include "eeschema_test_utils.h"#include <fields_data_model.h>#include <sch_reference_list.h>#include <sch_sheet_path.h>#include <sch_symbol.h>#include <schematic.h>#include <wx/filename.h>Go to the source code of this file.
Classes | |
| struct | ISSUE24663_FIXTURE |
Functions | |
| BOOST_FIXTURE_TEST_CASE (SheetDNPEffectiveInSymbolFields, ISSUE24663_FIXTURE) | |
Test for issue #24663: DNP set on a hierarchical sheet must read as effective DNP in the symbol fields table, without stamping the attribute onto the child symbols.
The fixture has a root sheet whose only subsheet is marked Do Not Populate. The one symbol inside it (R1) has its own DNP attribute OFF. Setting DNP on a sheet is an effective rollup computed at netlist, BOM and plot time, it is never written onto the child symbols. The symbol fields table must still show that effective state, otherwise the column contradicts the netlist, the BOM and the dialog's own "Exclude DNP" filter.
Definition in file test_issue24663_sheet_dnp_fields.cpp.
| BOOST_FIXTURE_TEST_CASE | ( | SheetDNPEffectiveInSymbolFields | , |
| ISSUE24663_FIXTURE | ) |
Definition at line 51 of file test_issue24663_sheet_dnp_fields.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SCH_REFERENCE_LIST::GetCount(), SCH_SHEET_PATH::GetDNP(), KI_TEST::GetEeschemaTestDataDir(), SCH_REFERENCE::GetSheetPath(), SCH_REFERENCE::GetSymbolDNP(), SCH_SHEET_LIST::GetSymbols(), group, GROUP_SINGLETON, FILEEXT::KiCadSchematicFileExtension, LoadSchematic(), model, and SYMBOL_FILTER_ALL.