34#include <boost/test/unit_test.hpp>
46#include <wx/filename.h>
55 projectPath.AppendDir(
"issue23403" );
56 projectPath.SetName(
"issue23403" );
60 m_schematic = std::make_unique<SCHEMATIC>(
nullptr );
78 if( !aTopSheet || !aTopSheet->
GetScreen() )
108 dataDir.AppendDir(
"issue23403" );
111 wxFileName topFile( dataDir.GetPath(),
"top_level_sheet_1",
114 BOOST_REQUIRE_MESSAGE( rootFile.FileExists(),
115 "Test data missing: " + rootFile.GetFullPath().ToStdString() );
116 BOOST_REQUIRE_MESSAGE( topFile.FileExists(),
117 "Test data missing: " + topFile.GetFullPath().ToStdString() );
130 BOOST_REQUIRE_MESSAGE( screen1 !=
nullptr,
131 "First top-level sheet should contain shared1 sub-sheet" );
132 BOOST_REQUIRE_MESSAGE( screen2 !=
nullptr,
133 "Second top-level sheet should contain shared1 sub-sheet" );
135 BOOST_CHECK_MESSAGE( screen1 == screen2,
136 "Both top-level sheets must share the same SCH_SCREEN for shared1" );
139 "Shared screen ref count should be at least 2, got "
EE_TYPE OfType(KICAD_T aType) const
Instantiate the current locale within a scope in which you are expecting exceptions to be thrown.
Container for project specific data.
A SCH_IO derivation for loading schematic files using the new s-expression file format.
SCH_SHEET * LoadSchematicFile(const wxString &aFileName, SCHEMATIC *aSchematic, SCH_SHEET *aAppendToMe=nullptr, const std::map< std::string, UTF8 > *aProperties=nullptr) override
Load information from some input file format that this SCH_IO implementation knows about,...
Base class for any item which can be embedded within the SCHEMATIC container class,...
EE_RTREE & Items()
Get the full RTree, usually for iterating.
const wxString & GetFileName() const
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
SCH_SCREEN * GetScreen() const
static const std::string ProjectFileExtension
static const std::string KiCadSchematicFileExtension
std::string GetEeschemaTestDataDir()
Get the configured location of Eeschema test data.
std::vector< FAB_LAYER_COLOR > dummy
std::unique_ptr< SCHEMATIC > m_schematic
SETTINGS_MANAGER m_settingsManager
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_REQUIRE(intersection.has_value()==c.ExpectedIntersection.has_value())
BOOST_AUTO_TEST_SUITE_END()
static SCH_SCREEN * findSubSheetScreen(SCH_SHEET *aTopSheet, const wxString &aSubFileName)
Definition of file extensions used in Kicad.