47 BOOST_REQUIRE_GE( refs.
GetCount(), 2 );
49 refs[1].GetSymbol()->SetRef( &refs[1].GetSheetPath(), refs[0].GetSymbol()->GetRef( &refs[0].GetSheetPath() ) );
50 ERC_TESTER( m_schematic.get() ).
RunTests(
nullptr,
nullptr,
nullptr, &m_schematic->Project(),
nullptr );
58 std::shared_ptr<RC_ITEM> rcItem =
static_cast<SCH_MARKER*
>( item )->GetRCItem();
64 BOOST_CHECK( !std::static_pointer_cast<ERC_ITEM>( rcItem )->IsSheetSpecific() );
69 BOOST_CHECK_GE( duplicates, 1 );
Runs the electrical rules checks and adds a SCH_MARKER for each violation.
void RunTests(DS_PROXY_VIEW_ITEM *aDrawingSheet, SCH_EDIT_FRAME *aEditFrame, KIFACE *aCvPcb, PROJECT *aProject, PROGRESS_REPORTER *aProgressReporter)
A generic fixture for loading schematics and associated settings for qa tests.
Base class for any item which can be embedded within the SCHEMATIC container class,...
Container to create a flattened list of symbols because in a complex hierarchy, a symbol can be used ...
A container for handling SCH_SHEET_PATH objects in a flattened hierarchy.
void GetSymbols(SCH_REFERENCE_LIST &aReferences, SYMBOL_FILTER aSymbolFilter, bool aForceIncludeOrphanSymbols=false) const
Add a SCH_REFERENCE object to aReferences for each symbol in the list of sheets.
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
@ ERCE_DUPLICATE_REFERENCE
More than one symbol with the same reference.
static const std::string KiCadSchematicFileExtension
std::string GetEeschemaTestDataDir()
Get the configured location of Eeschema test data.
static void LoadSchematic(SCHEMATIC *aSchematic, SCH_SHEET *aRootSheet, const wxString &aFileName, REPORTER *aReporter)
@ SYMBOL_FILTER_NON_POWER
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_CHECK(res.column_datatype(0)==SQL_NUMERIC||res.column_datatype(0)==SQL_DECIMAL)
BOOST_AUTO_TEST_SUITE_END()
Definition of file extensions used in Kicad.