|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <schematic_utils/schematic_file_util.h>#include <connection_graph.h>#include <schematic.h>#include <sch_marker.h>#include <erc/erc_settings.h>#include <erc/erc.h>#include <settings/settings_manager.h>#include <locale_io.h>Go to the source code of this file.
Classes | |
| struct | ERC_MARKER_COUNT_FIXTURE |
Functions | |
| BOOST_FIXTURE_TEST_CASE (ERCMarkerCountsExclusion, ERC_MARKER_COUNT_FIXTURE) | |
| SHEETLIST_ERC_ITEMS_PROVIDER caches per-severity counts. | |
| BOOST_FIXTURE_TEST_CASE | ( | ERCMarkerCountsExclusion | , |
| ERC_MARKER_COUNT_FIXTURE | ) |
SHEETLIST_ERC_ITEMS_PROVIDER caches per-severity counts.
Excluding a marker moves it between its error/warning bucket and the exclusion bucket, so the cached counts must follow the transition and stay identical to a fresh full recompute.
Definition at line 44 of file test_erc_marker_counts.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), dummy, ERCE_LIB_SYMBOL_ISSUES, ERCE_LIB_SYMBOL_MISMATCH, SHEETLIST_ERC_ITEMS_PROVIDER::GetCount(), RC_ITEM::GetErrorCode(), SHEETLIST_ERC_ITEMS_PROVIDER::GetItem(), MARKER_BASE::GetRCItem(), ERC_SETTINGS::GetSeverity(), MARKER_BASE::IsExcluded(), KI_TEST::LoadSchematic(), ERC_SETTINGS::m_ERCSeverities, RPT_SEVERITY_ERROR, RPT_SEVERITY_EXCLUSION, RPT_SEVERITY_IGNORE, RPT_SEVERITY_UNDEFINED, RPT_SEVERITY_WARNING, SHEETLIST_ERC_ITEMS_PROVIDER::SetMarkerExcluded(), SHEETLIST_ERC_ITEMS_PROVIDER::SetSeverities(), ERC_TESTER::TestMultiunitFootprints(), ERC_TESTER::TestMultUnitPinConflicts(), ERC_TESTER::TestNoConnectPins(), ERC_TESTER::TestPinToPin(), ERC_TESTER::TestSimilarLabels(), and ERC_TESTER::TestTextVars().