|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <eeschema/sch_io/geda/sch_io_geda.h>#include <schematic.h>#include <sch_sheet.h>#include <sch_screen.h>#include <sch_symbol.h>#include <sch_line.h>#include <sch_junction.h>#include <sch_label.h>#include <sch_no_connect.h>#include <sch_bus_entry.h>#include <sch_bitmap.h>#include <sch_shape.h>#include <sch_text.h>#include <sch_pin.h>#include <lib_symbol.h>#include <settings/settings_manager.h>#include <reporter.h>#include <algorithm>#include <map>#include <set>Go to the source code of this file.
Classes | |
| struct | GEDA_SCH_IMPORT_FIXTURE |
Functions | |
| BOOST_AUTO_TEST_CASE (CanReadSchematicFile) | |
| BOOST_AUTO_TEST_CASE (RejectsNonSchExtension) | |
| BOOST_AUTO_TEST_CASE (RejectsNonGedaSchFiles) | |
| BOOST_AUTO_TEST_CASE (MinimalSchematicLoad) | |
| BOOST_AUTO_TEST_CASE (MinimalSchematicSymbolAttributes) | |
| BOOST_AUTO_TEST_CASE (MinimalSchematicWires) | |
| BOOST_AUTO_TEST_CASE (MinimalSchematicNetLabels) | |
| BOOST_AUTO_TEST_CASE (MinimalSchematicJunctions) | |
| BOOST_AUTO_TEST_CASE (AyabSchematicLoad) | |
| BOOST_AUTO_TEST_CASE (AyabSymbolAttributes) | |
| BOOST_AUTO_TEST_CASE (AyabFootprintAttributes) | |
| BOOST_AUTO_TEST_CASE (AyabCustomSymbolsLoaded) | |
| BOOST_AUTO_TEST_CASE (AyabStdlibSymbolsLoaded) | |
| BOOST_AUTO_TEST_CASE (ProjectSymbolOverridesSystem) | |
| BOOST_AUTO_TEST_CASE (AyabGlobalLabelsFromNetAttributes) | |
| BOOST_AUTO_TEST_CASE (AyabGlobalLabelCounts) | |
| BOOST_AUTO_TEST_CASE (AyabPowerSymbols) | |
| BOOST_AUTO_TEST_CASE (AyabJunctionsPlaced) | |
| BOOST_AUTO_TEST_CASE (AyabAllRefdesUnique) | |
| BOOST_AUTO_TEST_CASE (AyabWireEndpointsInPositiveSpace) | |
| BOOST_AUTO_TEST_CASE (AyabSymbolPositionsInPositiveSpace) | |
| BOOST_AUTO_TEST_CASE (AyabComponentOrientations) | |
| BOOST_AUTO_TEST_CASE (AyabTextAnnotations) | |
| BOOST_AUTO_TEST_CASE (AyabWireConnectivity) | |
| BOOST_AUTO_TEST_CASE (AyabGlobalLabelPositionsPositive) | |
| BOOST_AUTO_TEST_CASE (AyabTotalGlobalLabelCount) | |
| BOOST_AUTO_TEST_CASE (RealWorldSchematicLoad) | |
| BOOST_AUTO_TEST_CASE (CommentLinesIgnored) | |
| BOOST_AUTO_TEST_CASE (OldFormatGraphicsParse) | |
| BOOST_AUTO_TEST_CASE (OldFormatBusPinParse) | |
| BOOST_AUTO_TEST_CASE (OldFormatTextParse) | |
| BOOST_AUTO_TEST_CASE (VeryOldFormatTextParse) | |
| BOOST_AUTO_TEST_CASE (BusLayerCorrect) | |
| BOOST_AUTO_TEST_CASE (NoConnectFromNcSymbol) | |
| BOOST_AUTO_TEST_CASE (AyabNoConnectsCreated) | |
| BOOST_AUTO_TEST_CASE (NoConnectAtPinPosition) | |
| BOOST_AUTO_TEST_CASE (DocumentationToDatasheet) | |
| BOOST_AUTO_TEST_CASE (AyabDescriptionFieldVisibility) | |
| BOOST_AUTO_TEST_CASE (AyabBusLayerFixed) | |
| BOOST_AUTO_TEST_CASE (TextOverbarConversion) | |
| BOOST_AUTO_TEST_CASE (BezierCurveSubdivision) | |
| BOOST_AUTO_TEST_CASE (EmbeddedPictureImport) | |
| BOOST_AUTO_TEST_CASE (TextSizeScaling) | |
| BOOST_AUTO_TEST_CASE (TextAngleNormalization) | |
| BOOST_AUTO_TEST_CASE (RelativePathCommands) | |
| BOOST_AUTO_TEST_CASE (EmbeddedPrefixStripped) | |
| BOOST_AUTO_TEST_CASE (LeptonConfLibraryDiscovery) | |
| BOOST_AUTO_TEST_CASE (GschemrcLibraryDiscovery) | |
| BOOST_AUTO_TEST_CASE (BusRipperCreation) | |
| BOOST_AUTO_TEST_CASE (SymversionMismatchWarning) | |
| BOOST_AUTO_TEST_CASE (FuzzyMatchSuggestion) | |
| BOOST_AUTO_TEST_CASE (HierarchicalSheetCreation) | |
| BOOST_AUTO_TEST_CASE (HierarchicalSheetMissingSource) | |
| BOOST_AUTO_TEST_CASE (MultiSlotPinRemapping) | |
| BOOST_AUTO_TEST_CASE (GraphicalAttributeExclusion) | |
| BOOST_AUTO_TEST_CASE (MultiPageSchematicImport) | |
| BOOST_AUTO_TEST_CASE (BuiltinSymbolsLoad) | |
| BOOST_AUTO_TEST_CASE (TJunctionDetection) | |
| BOOST_AUTO_TEST_CASE (PinOrientationCorrect) | |
| BOOST_AUTO_TEST_CASE (PageSizeAndContentPlacement) | |
| BOOST_AUTO_TEST_CASE (PowerDetectionWithProjectOverride) | |
| BOOST_AUTO_TEST_CASE (PropertiesSearchPaths) | |
| BOOST_AUTO_TEST_CASE | ( | AyabAllRefdesUnique | ) |
Definition at line 630 of file test_geda_sch_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_SYMBOL::GetField(), SCH_SHEET::GetScreen(), SCH_FIELD::GetText(), SCH_SCREEN::Items(), REFERENCE, and SCH_SYMBOL_T.
| BOOST_AUTO_TEST_CASE | ( | AyabBusLayerFixed | ) |
Definition at line 1231 of file test_geda_sch_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SCH_ITEM::GetLayer(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), LAYER_NOTES, and SCH_LINE_T.
| BOOST_AUTO_TEST_CASE | ( | AyabComponentOrientations | ) |
Definition at line 720 of file test_geda_sch_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_SYMBOL::GetOrientation(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), SCH_SYMBOL_T, SYM_MIRROR_Y, SYM_ORIENT_180, SYM_ORIENT_270, and SYM_ORIENT_90.
| BOOST_AUTO_TEST_CASE | ( | AyabCustomSymbolsLoaded | ) |
Definition at line 387 of file test_geda_sch_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_SYMBOL::GetField(), SCH_SYMBOL::GetLibPins(), SCH_SHEET::GetScreen(), SCH_FIELD::GetText(), SCH_SCREEN::Items(), REFERENCE, and SCH_SYMBOL_T.
| BOOST_AUTO_TEST_CASE | ( | AyabDescriptionFieldVisibility | ) |
Definition at line 1199 of file test_geda_sch_import.cpp.
References BOOST_REQUIRE(), DESCRIPTION, SCH_SYMBOL::GetField(), SCH_SHEET::GetScreen(), SCH_FIELD::GetText(), EDA_TEXT::IsVisible(), SCH_SCREEN::Items(), REFERENCE, and SCH_SYMBOL_T.
| BOOST_AUTO_TEST_CASE | ( | AyabFootprintAttributes | ) |
Definition at line 347 of file test_geda_sch_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), FOOTPRINT, SCH_SYMBOL::GetField(), SCH_SHEET::GetScreen(), SCH_FIELD::GetText(), SCH_SCREEN::Items(), REFERENCE, and SCH_SYMBOL_T.
| BOOST_AUTO_TEST_CASE | ( | AyabGlobalLabelCounts | ) |
Definition at line 535 of file test_geda_sch_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SCH_SHEET::GetScreen(), EDA_TEXT::GetText(), SCH_SCREEN::Items(), and SCH_GLOBAL_LABEL_T.
| BOOST_AUTO_TEST_CASE | ( | AyabGlobalLabelPositionsPositive | ) |
Definition at line 833 of file test_geda_sch_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_TEXT::GetPosition(), SCH_SHEET::GetScreen(), EDA_TEXT::GetText(), SCH_SCREEN::Items(), SCH_GLOBAL_LABEL_T, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | AyabGlobalLabelsFromNetAttributes | ) |
Definition at line 499 of file test_geda_sch_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_SHEET::GetScreen(), EDA_TEXT::GetText(), SCH_SCREEN::Items(), and SCH_GLOBAL_LABEL_T.
| BOOST_AUTO_TEST_CASE | ( | AyabJunctionsPlaced | ) |
Definition at line 608 of file test_geda_sch_import.cpp.
References BOOST_REQUIRE(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), and SCH_JUNCTION_T.
| BOOST_AUTO_TEST_CASE | ( | AyabNoConnectsCreated | ) |
Definition at line 1122 of file test_geda_sch_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), and SCH_NO_CONNECT_T.
| BOOST_AUTO_TEST_CASE | ( | AyabPowerSymbols | ) |
Definition at line 565 of file test_geda_sch_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_SYMBOL::GetField(), SCH_SYMBOL::GetLibSymbolRef(), SCH_SHEET::GetScreen(), SCH_FIELD::GetText(), LIB_SYMBOL::IsPower(), EDA_TEXT::IsVisible(), SCH_SCREEN::Items(), REFERENCE, SCH_SYMBOL_T, and VALUE.
| BOOST_AUTO_TEST_CASE | ( | AyabSchematicLoad | ) |
Definition at line 261 of file test_geda_sch_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SCH_ITEM::GetLayer(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), LAYER_WIRE, SCH_LINE_T, and SCH_SYMBOL_T.
| BOOST_AUTO_TEST_CASE | ( | AyabStdlibSymbolsLoaded | ) |
Definition at line 430 of file test_geda_sch_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_SYMBOL::GetField(), SCH_SYMBOL::GetLibPins(), SCH_SHEET::GetScreen(), SCH_FIELD::GetText(), SCH_SCREEN::Items(), REFERENCE, and SCH_SYMBOL_T.
| BOOST_AUTO_TEST_CASE | ( | AyabSymbolAttributes | ) |
Definition at line 289 of file test_geda_sch_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_SYMBOL::GetField(), SCH_SHEET::GetScreen(), SCH_FIELD::GetText(), SCH_SCREEN::Items(), REFERENCE, SCH_SYMBOL_T, and VALUE.
| BOOST_AUTO_TEST_CASE | ( | AyabSymbolPositionsInPositiveSpace | ) |
Definition at line 696 of file test_geda_sch_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_SYMBOL::GetPosition(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), SCH_SYMBOL_T, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | AyabTextAnnotations | ) |
Definition at line 755 of file test_geda_sch_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), SCH_TEXT_T, and text.
| BOOST_AUTO_TEST_CASE | ( | AyabTotalGlobalLabelCount | ) |
Definition at line 858 of file test_geda_sch_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), and SCH_GLOBAL_LABEL_T.
| BOOST_AUTO_TEST_CASE | ( | AyabWireConnectivity | ) |
Definition at line 789 of file test_geda_sch_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), end, SCH_LINE::GetEndPoint(), SCH_ITEM::GetLayer(), SCH_SHEET::GetScreen(), SCH_LINE::GetStartPoint(), SCH_SCREEN::Items(), LAYER_WIRE, SCH_LINE_T, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | AyabWireEndpointsInPositiveSpace | ) |
Definition at line 662 of file test_geda_sch_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), end, SCH_LINE::GetEndPoint(), SCH_ITEM::GetLayer(), SCH_SHEET::GetScreen(), SCH_LINE::GetStartPoint(), SCH_SCREEN::Items(), LAYER_WIRE, SCH_LINE_T, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | BezierCurveSubdivision | ) |
Definition at line 1333 of file test_geda_sch_import.cpp.
References BEZIER, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SCH_SHEET::GetScreen(), EDA_SHAPE::GetShape(), SCH_SCREEN::Items(), SCH_LINE_T, and SCH_SHAPE_T.
| BOOST_AUTO_TEST_CASE | ( | BuiltinSymbolsLoad | ) |
Definition at line 1969 of file test_geda_sch_import.cpp.
References BOOST_CHECK_MESSAGE(), SCH_IO_GEDA::getBuiltinSymbols(), and name.
| BOOST_AUTO_TEST_CASE | ( | BusLayerCorrect | ) |
Definition at line 1062 of file test_geda_sch_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SCH_ITEM::GetLayer(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), LAYER_BUS, LAYER_NOTES, LAYER_WIRE, and SCH_LINE_T.
| BOOST_AUTO_TEST_CASE | ( | BusRipperCreation | ) |
Definition at line 1616 of file test_geda_sch_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_ITEM::GetLayer(), SCH_SHEET::GetScreen(), SCH_BUS_ENTRY_BASE::GetSize(), SCH_SCREEN::Items(), LAYER_BUS, LAYER_WIRE, SCH_BUS_WIRE_ENTRY_T, SCH_LINE_T, and VECTOR2< T >::x.
| BOOST_AUTO_TEST_CASE | ( | CanReadSchematicFile | ) |
Definition at line 88 of file test_geda_sch_import.cpp.
References BOOST_AUTO_TEST_CASE(), and KI_TEST::GetEeschemaTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | CommentLinesIgnored | ) |
Definition at line 910 of file test_geda_sch_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SCH_ITEM::GetLayer(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), LAYER_WIRE, SCH_LINE_T, and SCH_SYMBOL_T.
| BOOST_AUTO_TEST_CASE | ( | DocumentationToDatasheet | ) |
Definition at line 1171 of file test_geda_sch_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), DATASHEET, SCH_SYMBOL::GetField(), SCH_SHEET::GetScreen(), SCH_FIELD::GetText(), SCH_SCREEN::Items(), and SCH_SYMBOL_T.
| BOOST_AUTO_TEST_CASE | ( | EmbeddedPictureImport | ) |
Definition at line 1371 of file test_geda_sch_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), and SCH_BITMAP_T.
| BOOST_AUTO_TEST_CASE | ( | EmbeddedPrefixStripped | ) |
Definition at line 1501 of file test_geda_sch_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_SYMBOL::GetLibId(), LIB_ID::GetLibItemName(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), name, and SCH_SYMBOL_T.
| BOOST_AUTO_TEST_CASE | ( | FuzzyMatchSuggestion | ) |
Definition at line 1689 of file test_geda_sch_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), and reporter.
| BOOST_AUTO_TEST_CASE | ( | GraphicalAttributeExclusion | ) |
Definition at line 1853 of file test_geda_sch_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_SYMBOL::GetExcludedFromBoard(), SCH_SYMBOL::GetExcludedFromBOM(), SCH_SYMBOL::GetExcludedFromSim(), SCH_SYMBOL::GetField(), SCH_SHEET::GetScreen(), SCH_FIELD::GetText(), SCH_SCREEN::Items(), REFERENCE, and SCH_SYMBOL_T.
| BOOST_AUTO_TEST_CASE | ( | GschemrcLibraryDiscovery | ) |
Definition at line 1579 of file test_geda_sch_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_SYMBOL::GetField(), SCH_SYMBOL::GetLibPins(), SCH_SHEET::GetScreen(), SCH_FIELD::GetText(), SCH_SCREEN::Items(), REFERENCE, and SCH_SYMBOL_T.
| BOOST_AUTO_TEST_CASE | ( | HierarchicalSheetCreation | ) |
Definition at line 1712 of file test_geda_sch_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_SHEET::GetField(), SCH_ITEM::GetLayer(), SCH_SHEET::GetScreen(), SCH_FIELD::GetText(), SCH_SCREEN::Items(), LAYER_WIRE, name, SCH_LINE_T, SCH_SHEET_T, SHEET_FILENAME, and SHEET_NAME.
| BOOST_AUTO_TEST_CASE | ( | HierarchicalSheetMissingSource | ) |
Definition at line 1780 of file test_geda_sch_import.cpp.
References BOOST_REQUIRE(), and SCH_SHEET::GetScreen().
| BOOST_AUTO_TEST_CASE | ( | LeptonConfLibraryDiscovery | ) |
Definition at line 1535 of file test_geda_sch_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_SYMBOL::GetField(), SCH_SYMBOL::GetLibPins(), SCH_SHEET::GetScreen(), SCH_FIELD::GetText(), SCH_SCREEN::Items(), REFERENCE, SCH_SYMBOL_T, and VALUE.
| BOOST_AUTO_TEST_CASE | ( | MinimalSchematicJunctions | ) |
Definition at line 235 of file test_geda_sch_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), and SCH_JUNCTION_T.
| BOOST_AUTO_TEST_CASE | ( | MinimalSchematicLoad | ) |
Definition at line 116 of file test_geda_sch_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), and SCH_SYMBOL_T.
| BOOST_AUTO_TEST_CASE | ( | MinimalSchematicNetLabels | ) |
Definition at line 199 of file test_geda_sch_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_SHEET::GetScreen(), EDA_TEXT::GetText(), SCH_SCREEN::Items(), and SCH_LABEL_T.
| BOOST_AUTO_TEST_CASE | ( | MinimalSchematicSymbolAttributes | ) |
Definition at line 137 of file test_geda_sch_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_SYMBOL::GetField(), SCH_SHEET::GetScreen(), SCH_FIELD::GetText(), SCH_SCREEN::Items(), REFERENCE, SCH_SYMBOL_T, and VALUE.
| BOOST_AUTO_TEST_CASE | ( | MinimalSchematicWires | ) |
Definition at line 174 of file test_geda_sch_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SCH_ITEM::GetLayer(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), LAYER_WIRE, and SCH_LINE_T.
| BOOST_AUTO_TEST_CASE | ( | MultiPageSchematicImport | ) |
Definition at line 1901 of file test_geda_sch_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), KI_TEST::GetEeschemaTestDataDir(), SCH_SHEET::GetField(), SCH_ITEM::GetLayer(), SCH_SHEET::GetScreen(), SCH_FIELD::GetText(), SCH_SCREEN::Items(), LAYER_WIRE, SCH_LINE_T, SCH_SHEET_T, SHEET_FILENAME, and SHEET_NAME.
| BOOST_AUTO_TEST_CASE | ( | MultiSlotPinRemapping | ) |
Definition at line 1795 of file test_geda_sch_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), pin, and SCH_SYMBOL_T.
| BOOST_AUTO_TEST_CASE | ( | NoConnectAtPinPosition | ) |
Definition at line 1144 of file test_geda_sch_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_NO_CONNECT::GetPosition(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), SCH_NO_CONNECT_T, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | NoConnectFromNcSymbol | ) |
Definition at line 1096 of file test_geda_sch_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), SCH_NO_CONNECT_T, and SCH_SYMBOL_T.
| BOOST_AUTO_TEST_CASE | ( | OldFormatBusPinParse | ) |
Definition at line 973 of file test_geda_sch_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SCH_ITEM::GetLayer(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), LAYER_BUS, LAYER_WIRE, and SCH_LINE_T.
| BOOST_AUTO_TEST_CASE | ( | OldFormatGraphicsParse | ) |
Definition at line 936 of file test_geda_sch_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SCH_ITEM::GetLayer(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), LAYER_NOTES, LAYER_WIRE, SCH_LINE_T, and SCH_SHAPE_T.
| BOOST_AUTO_TEST_CASE | ( | OldFormatTextParse | ) |
Definition at line 1004 of file test_geda_sch_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), SCH_TEXT_T, and text.
| BOOST_AUTO_TEST_CASE | ( | PageSizeAndContentPlacement | ) |
Definition at line 2124 of file test_geda_sch_import.cpp.
References BOOST_REQUIRE(), BOX2< Vec >::GetEnd(), BOX2< Vec >::GetHeight(), BOX2< Vec >::GetOrigin(), SCH_SCREEN::GetPageSettings(), SCH_SHEET::GetScreen(), PAGE_INFO::GetSizeIU(), BOX2< Vec >::GetWidth(), SCH_SCREEN::Items(), BOX2< Vec >::Merge(), schIUScale, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | PinOrientationCorrect | ) |
Definition at line 2036 of file test_geda_sch_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_IO_GEDA::getBuiltinSymbols(), KI_TEST::GetEeschemaTestDataDir(), SCH_SYMBOL::GetField(), SCH_SYMBOL::GetLibSymbolRef(), LIB_SYMBOL::GetPins(), SCH_SHEET::GetScreen(), SCH_FIELD::GetText(), SCH_SCREEN::Items(), pin, PIN_LEFT, PIN_RIGHT, REFERENCE, and SCH_SYMBOL_T.
| BOOST_AUTO_TEST_CASE | ( | PowerDetectionWithProjectOverride | ) |
Definition at line 2168 of file test_geda_sch_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_SYMBOL::GetField(), SCH_SYMBOL::GetLibSymbolRef(), SCH_SHEET::GetScreen(), SCH_FIELD::GetText(), LIB_SYMBOL::IsGlobalPower(), EDA_TEXT::IsVisible(), SCH_SCREEN::Items(), REFERENCE, SCH_SYMBOL_T, and VALUE.
| BOOST_AUTO_TEST_CASE | ( | ProjectSymbolOverridesSystem | ) |
Definition at line 469 of file test_geda_sch_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_SYMBOL::GetLibPins(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), and SCH_SYMBOL_T.
| BOOST_AUTO_TEST_CASE | ( | PropertiesSearchPaths | ) |
Definition at line 2205 of file test_geda_sch_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), KI_TEST::GetEeschemaTestDataDir(), SCH_SYMBOL::GetLibPins(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), and SCH_SYMBOL_T.
| BOOST_AUTO_TEST_CASE | ( | RealWorldSchematicLoad | ) |
Definition at line 880 of file test_geda_sch_import.cpp.
References BOOST_REQUIRE(), SCH_ITEM::GetLayer(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), LAYER_WIRE, SCH_LINE_T, and SCH_SYMBOL_T.
| BOOST_AUTO_TEST_CASE | ( | RejectsNonGedaSchFiles | ) |
Definition at line 102 of file test_geda_sch_import.cpp.
References KI_TEST::GetEeschemaTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | RejectsNonSchExtension | ) |
Definition at line 95 of file test_geda_sch_import.cpp.
References KI_TEST::GetEeschemaTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | RelativePathCommands | ) |
Definition at line 1465 of file test_geda_sch_import.cpp.
References std::abs(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), end, SCH_LINE::GetEndPoint(), SCH_ITEM::GetLayer(), SCH_SHEET::GetScreen(), SCH_LINE::GetStartPoint(), SCH_SCREEN::Items(), LAYER_NOTES, SCH_LINE_T, and VECTOR2< T >::x.
| BOOST_AUTO_TEST_CASE | ( | SymversionMismatchWarning | ) |
Definition at line 1666 of file test_geda_sch_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_SHEET::GetScreen(), and reporter.
| BOOST_AUTO_TEST_CASE | ( | TextAngleNormalization | ) |
Definition at line 1436 of file test_geda_sch_import.cpp.
References EDA_ANGLE::AsTenthsOfADegree(), BOOST_REQUIRE(), SCH_SHEET::GetScreen(), EDA_TEXT::GetTextAngle(), SCH_SCREEN::Items(), and SCH_TEXT_T.
| BOOST_AUTO_TEST_CASE | ( | TextOverbarConversion | ) |
Definition at line 1263 of file test_geda_sch_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), SCH_TEXT_T, and text.
| BOOST_AUTO_TEST_CASE | ( | TextSizeScaling | ) |
Definition at line 1397 of file test_geda_sch_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), and SCH_TEXT_T.
| BOOST_AUTO_TEST_CASE | ( | TJunctionDetection | ) |
Definition at line 2015 of file test_geda_sch_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), and SCH_JUNCTION_T.
| BOOST_AUTO_TEST_CASE | ( | VeryOldFormatTextParse | ) |
Definition at line 1033 of file test_geda_sch_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), SCH_SHEET::GetScreen(), SCH_SCREEN::Items(), SCH_TEXT_T, and text.