68 tester.
RunTests(
nullptr,
nullptr,
nullptr, &m_schematic->Project(),
nullptr );
71 SCH_SCREEN* rootScreen = m_schematic->RootScreen();
76 symbolToModify =
static_cast<SCH_SYMBOL*
>( item );
86 rootScreen->
Remove( symbolToModify );
87 delete symbolToModify;
88 symbolToModify =
nullptr;
90 rootScreen->
Append( clonedSymbol );
94 BOOST_CHECK_NO_THROW( tester.
RunTests(
nullptr,
nullptr,
nullptr, &m_schematic->Project(),
nullptr ) );
EE_TYPE OfType(KICAD_T aType) const
void RunTests(DS_PROXY_VIEW_ITEM *aDrawingSheet, SCH_EDIT_FRAME *aEditFrame, KIFACE *aCvPcb, PROJECT *aProject, PROGRESS_REPORTER *aProgressReporter)
Instantiate the current locale within a scope in which you are expecting exceptions to be thrown.
Base class for any item which can be embedded within the SCHEMATIC container class,...
void Append(SCH_ITEM *aItem, bool aUpdateLibSymbol=true)
EE_RTREE & Items()
Get the full RTree, usually for iterating.
bool Remove(SCH_ITEM *aItem, bool aUpdateLibSymbol=true)
Remove aItem from the schematic associated with this screen.
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
void LoadSchematic(SETTINGS_MANAGER &aSettingsManager, const wxString &aRelPath, std::unique_ptr< SCHEMATIC > &aSchematic)
std::vector< FAB_LAYER_COLOR > dummy
std::unique_ptr< SCHEMATIC > m_schematic
SETTINGS_MANAGER m_settingsManager
ERC_RULE_AREA_TEST_FIXTURE()
BOOST_FIXTURE_TEST_CASE(ERCRuleAreaItemDeletion, ERC_RULE_AREA_TEST_FIXTURE)
Regression test for issue 22854.
BOOST_REQUIRE(intersection.has_value()==c.ExpectedIntersection.has_value())