32#include <boost/test/unit_test.hpp>
43#include <wx/filename.h>
55 fn.SetName( wxS(
"test_issue24663_sheet_dnp" ) );
60 SCH_SHEET_LIST sheets = m_schematic->BuildSheetListSortedByPageNumbers();
78 model.AddColumn( wxS(
"${DNP}" ), wxS(
"DNP" ),
false );
80 int dnpCol =
model.GetFieldNameCol( wxS(
"${DNP}" ) );
90 BOOST_CHECK_EQUAL(
model.GetGroupedValue( row, dnpCol, wxT(
", " ), wxT(
"-" ),
true,
false ), wxS(
"DNP" ) );
92 model.SetShowColumn( dnpCol,
true );
94 model.SetFilter( wxS(
"DNP" ) );
98 model.SetFilter( wxS(
"1" ) );
A generic fixture for loading schematics and associated settings for qa tests.
Container to create a flattened list of symbols because in a complex hierarchy, a symbol can be used ...
A helper to define a symbol's reference designator in a schematic.
const SCH_SHEET_PATH & GetSheetPath() const
bool GetSymbolDNP(const wxString &aVariant=wxEmptyString) const
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.
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)
Definition of the SCH_SHEET_PATH and SCH_SHEET_LIST classes for Eeschema.
DATA_MODEL_ROW< SCH_REFERENCE > SYMBOL_FIELDS_TABLE_DATA_MODEL_ROW
BOOST_CHECK(res.column_datatype(0)==SQL_NUMERIC||res.column_datatype(0)==SQL_DECIMAL)
BOOST_REQUIRE_EQUAL(rows.size(), 1)
BOOST_CHECK_EQUAL(std::any_cast< std::string >(rows[0].at("val")), "12345678901234567.89")
BOOST_REQUIRE(res.columns()==1)
BOOST_FIXTURE_TEST_CASE(SheetDNPEffectiveInSymbolFields, ISSUE24663_FIXTURE)