KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_orcad_sch_import.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <richio.h>
#include <font/font.h>
#include <sch_io/orcad/sch_io_orcad.h>
#include <sch_io/orcad/orcad_converter.h>
#include <sch_io/orcad/orcad_structures.h>
#include <sch_io/ole_image.h>
#include <schematic.h>
#include <import_net_map.h>
#include <connection_graph.h>
#include <sch_screen.h>
#include <sch_sheet.h>
#include <sch_sheet_pin.h>
#include <sch_sheet_path.h>
#include <sch_symbol.h>
#include <sch_label.h>
#include <sch_line.h>
#include <sch_junction.h>
#include <sch_no_connect.h>
#include <sch_bitmap.h>
#include <sch_shape.h>
#include <sch_text.h>
#include <sch_pin.h>
#include <lib_symbol.h>
#include <geometry/shape_compound.h>
#include <reporter.h>
#include <settings/settings_manager.h>
#include <schematic_utils/schematic_file_util.h>
#include <bitmap_base.h>
#include <wx/filename.h>
#include <algorithm>
#include <filesystem>
#include <fstream>
#include <map>
#include <memory>
#include <set>
#include <sstream>
#include <string>

Go to the source code of this file.

Classes

struct  ORCAD_SCH_IMPORT_FIXTURE
 

Functions

 BOOST_AUTO_TEST_CASE (StructurePrefixDepthIsTypeOwned)
 
 BOOST_AUTO_TEST_CASE (CaptureColorPalette)
 
 BOOST_AUTO_TEST_CASE (CaptureCompoundFileName)
 
 BOOST_AUTO_TEST_CASE (CaptureStrokeAndFillSemantics)
 
 BOOST_AUTO_TEST_CASE (CapturePageOrder)
 
 BOOST_AUTO_TEST_CASE (EmbeddedImageFillsNonSquareSourceBox)
 
 BOOST_AUTO_TEST_CASE (WmfRenderUsesEmbeddedBoxAspectBeforeRasterization)
 
 BOOST_AUTO_TEST_CASE (OlePreviewWithMultiplePresentationStreams)
 
static std::string terminalToken (const std::string &aRef, const std::string &aPin)
 
static std::pair< int, int > checkConnectivity (SCHEMATIC &aSchematic, const std::vector< std::set< std::string > > &aNets, std::vector< std::set< std::string > > *aInconsistent)
 Count ground-truth nets whose resolvable terminals all land on one KiCad net after connectivity rebuild.
 
static SCH_SYMBOL * findConvertedSymbol (SCH_SCREEN &aScreen, const SCH_SHEET_PATH &aPath, const wxString &aReference)
 
static std::filesystem::path findCorpusDesign (const std::filesystem::path &aRoot, const std::string &aFileName)
 
 BOOST_AUTO_TEST_CASE (OccurrencePowerAliasChainUsesAuthoritativeName)
 
 BOOST_AUTO_TEST_CASE (OccurrencePowerAliasJoinsDistinctChildNetNames)
 
 BOOST_AUTO_TEST_CASE (RejectsNonexistentFile)
 
static std::string trimCell (std::string aText)
 
static std::vector< std::string > splitRefs (const std::string &aCell)
 
static std::set< std::string > parseBomRefs (const std::string &aPath)
 
static std::set< std::string > parseNetComs (const std::string &aPath)
 
static std::set< std::string > collectImportedRefs (SCHEMATIC &aSchematic)
 Unique refdes of real (non-power) parts.
 
static std::vector< std::set< std::string > > parseNetTerminals (const std::string &aPath)
 Net terminal sets from .NET.
 
static wxString terminalNetName (SCHEMATIC &aSchematic, const wxString &aReference, const wxString &aPinNumber)
 
static std::set< std::string > expectedRefsFor (const std::filesystem::path &aDsn, std::string &aSource)
 Ground-truth companion beside .DSN, .NET preferred over .BOM.
 
 BOOST_AUTO_TEST_CASE (CorpusValidation)
 
 BOOST_AUTO_TEST_CASE (CisVariantFallbackUsesBytewiseFirstBomName)
 
 BOOST_AUTO_TEST_CASE (UnreferencedSchematicFoldersRemainVisibleButExcludedFromBoard)
 
 BOOST_AUTO_TEST_CASE (ViewsDirectoryIgnoresStaleStoredFolders)
 
 BOOST_AUTO_TEST_CASE (ShortFramedPackagePinsKeepTheirSlots)
 
 BOOST_AUTO_TEST_CASE (OccurrenceFlatNetConnectsAcrossPagesWithoutOffpageSymbols)
 
static std::map< std::string, std::vector< std::string > > collectImportedUuids (const SCHEMATIC &aSchematic)
 
 BOOST_AUTO_TEST_CASE (RepeatedImportHasDeterministicUuids)
 
 BOOST_AUTO_TEST_CASE (SheetLoadKeepsExistingItemUuids)
 
 BOOST_AUTO_TEST_CASE (HierarchicalSheetLoadIsRefused)
 
 BOOST_AUTO_TEST_CASE (PowerSymbolAttachesAtPlacedVariantPin)
 
 BOOST_AUTO_TEST_CASE (AutoGeneratedNetNamesAreMappedWithoutNamingLabels)
 
 BOOST_AUTO_TEST_CASE (CaptureNetIdsAndBlankUnitLettersAreAuthoritative)
 
 BOOST_AUTO_TEST_CASE (BusMembersWithoutLocalWiresRetainNetMapReferences)
 
 BOOST_AUTO_TEST_CASE (NetMapIncludesPinsConnectedByImportJunctionCleanup)
 
 BOOST_AUTO_TEST_CASE (HierarchicalBusMembersMapToPropagatedScalarNets)
 
 BOOST_AUTO_TEST_CASE (NamedWirelessPinUsesOccurrenceNetName)
 
 BOOST_AUTO_TEST_CASE (ReservedDatasheetPropertyUsesStandardField)
 
 BOOST_AUTO_TEST_CASE (ReservedFootprintPropertyUsesDistinctMetadataField)
 
 BOOST_AUTO_TEST_CASE (DisplayedPropertiesUseCaptureNameMatchingAndStandardFields)
 
 BOOST_AUTO_TEST_CASE (DisplayedInheritedPartFieldsArePreserved)
 
 BOOST_AUTO_TEST_CASE (DisplayTypeTwoPropertiesRenderNamesAndValues)
 
 BOOST_AUTO_TEST_CASE (GeneratedWirelessNetOverridesPeerPinName)
 
 BOOST_AUTO_TEST_CASE (GlobalNetNamesAreCaseInsensitive)
 
 BOOST_AUTO_TEST_CASE (CaptureBusRangesUseKiCadSyntax)
 
 BOOST_AUTO_TEST_CASE (CanonicalPropertiesIgnoreCaseInsensitiveDuplicates)
 
 BOOST_AUTO_TEST_CASE (CollidingOccurrenceAliasesRemainSeparate)
 
 BOOST_AUTO_TEST_CASE (CollidingOffpageOccurrenceAliasesRemainSeparate)
 
 BOOST_AUTO_TEST_CASE (FlatFolderOccurrenceAliasesConnectDisplacedPins)
 
 BOOST_AUTO_TEST_CASE (PowerNetNameWinsOverSecondaryOccurrencePortAlias)
 
 BOOST_AUTO_TEST_CASE (DuplicatePageNetIdsPreserveAliases)
 
 BOOST_AUTO_TEST_CASE (DuplicatePageNetIdsDoNotShortDistinctNets)
 
 BOOST_AUTO_TEST_CASE (AliasAtCrossingDoesNotShortCaptureNets)
 
 BOOST_AUTO_TEST_CASE (WirelessPinUsesPageNetId)
 
 BOOST_AUTO_TEST_CASE (AmbiguousWirelessPinUsesOccurrenceNetName)
 
 BOOST_AUTO_TEST_CASE (BlankPackagePinNumbersUseLogicalNames)
 
 BOOST_AUTO_TEST_CASE (FallbackPackagePrefersNumberedPins)
 
 BOOST_AUTO_TEST_CASE (FallbackPackageUsesLogicalPinOrder)
 
 BOOST_AUTO_TEST_CASE (NumericUnitNamesUseNaturalOrder)
 
 BOOST_AUTO_TEST_CASE (OccurrenceReferencesOverridePlacedTemplateReferences)
 
 BOOST_AUTO_TEST_CASE (RootOccurrenceTargetIdsOverridePlacedTemplateReferences)
 
 BOOST_AUTO_TEST_CASE (FlatModernOccurrenceReferencesOverridePlacedReferences)
 
 BOOST_AUTO_TEST_CASE (SuperSpeedOccurrencePropertiesOverrideReusableComponents)
 
 BOOST_AUTO_TEST_CASE (EmptyOccurrencePropertiesClearTemplateMetadata)
 
 BOOST_AUTO_TEST_CASE (CapturePseudoGlobalWirelessPinsConnectAcrossPages)
 
 BOOST_AUTO_TEST_CASE (PowerAliasesConnectAcrossPages)
 
 BOOST_AUTO_TEST_CASE (ReusedPowerNetIdsDoNotJoinDisconnectedNets)
 
 BOOST_AUTO_TEST_CASE (ReusedPowerNetAliasesRemainPhysicallyScoped)
 
 BOOST_AUTO_TEST_CASE (SinglePowerMeaningPropagatesAcrossReusedNetId)
 
 BOOST_AUTO_TEST_CASE (RepeatedLocalNetNamesRemainSheetScoped)
 
 BOOST_AUTO_TEST_CASE (RepeatedHierarchicalPortNamesRemainSheetScoped)
 
 BOOST_AUTO_TEST_CASE (RepeatedHierarchicalOffpageNamesRemainSheetScoped)
 
 BOOST_AUTO_TEST_CASE (NestedOccurrenceReferencesOverridePlacedTemplateReferences)
 
 BOOST_AUTO_TEST_CASE (SharedOccurrenceNetWithoutTerminalPeerKeepsBaseName)
 
 BOOST_AUTO_TEST_CASE (PowerNetNameOverridesLocalWireAlias)
 
 BOOST_AUTO_TEST_CASE (NativePowerNamesIgnoreSourceCase)
 
 BOOST_AUTO_TEST_CASE (HiddenWireLabelsAvoidBusCrossings)
 
 BOOST_AUTO_TEST_CASE (IncompleteCachedSymbolsUsePlacedPins)
 
 BOOST_AUTO_TEST_CASE (LegacyOffpageConnectorsKeepDistinctPinPositions)
 
 BOOST_AUTO_TEST_CASE (EmptyPackagePinNumbersUseLogicalPinNames)
 
 BOOST_AUTO_TEST_CASE (EmptyPackagePinNumbersPreserveAlphabeticNames)
 
 BOOST_AUTO_TEST_CASE (EmbeddedTwoPinPackageNamesDoNotReplacePhysicalNumbers)
 
 BOOST_AUTO_TEST_CASE (DirectPowerSymbolSharesComponentPin)
 
 BOOST_AUTO_TEST_CASE (DirectPowerSymbolUsesComponentPinNet)
 
 BOOST_AUTO_TEST_CASE (NearbyOffpageConnectorsRemainDistinct)
 
 BOOST_AUTO_TEST_CASE (MatchingSymbolAndPackageVariantsPreservePhysicalPinNames)
 
 BOOST_AUTO_TEST_CASE (OffpageParentBindingKeepsVisibleLabelsApart)
 
 BOOST_AUTO_TEST_CASE (OffpageAtWireBranchHasVisibleSafeAnchor)
 
 BOOST_AUTO_TEST_CASE (OffpageDisplayNameDoesNotChangeConnectivity)
 
 BOOST_AUTO_TEST_CASE (SingleLeafOccurrencePreservesNamedNet)
 
 BOOST_AUTO_TEST_CASE (PackageVariantsAndIgnoredPinsArePreserved)
 
 BOOST_AUTO_TEST_CASE (LegacyDesignCachePackagePinMapsArePreserved)
 
 BOOST_AUTO_TEST_CASE (S593487_PartialConnectorPinOrderIsPreserved)
 
 BOOST_AUTO_TEST_CASE (M5275_ExplicitPowerPinsRemainVisible)
 
 BOOST_AUTO_TEST_CASE (SI34062_StackedSwitchPinsShareNet)
 
 BOOST_AUTO_TEST_CASE (DuplicatePowerAliasTextDoesNotMergeDistinctNets)
 
 BOOST_AUTO_TEST_CASE (LogicalPowerPinNameDoesNotOverrideConnectedWire)
 
 BOOST_AUTO_TEST_CASE (PinNameOverbarsUseKiCadMarkup)
 
 BOOST_AUTO_TEST_CASE (RenamedPowerNetsRemainElectricallyDistinct)
 
 BOOST_AUTO_TEST_CASE (MinorityPowerOccurrenceAliasDoesNotMergeGlobalNets)
 
 BOOST_AUTO_TEST_CASE (OccurrenceSuffixedPowerNetsRemainDistinct)
 
 BOOST_AUTO_TEST_CASE (GeneratedOccurrenceNetNameRemainsDistinct)
 
 BOOST_AUTO_TEST_CASE (PackageVariantPreservesPhysicalPinMap)
 
 BOOST_AUTO_TEST_CASE (DistinctPowerAndOffpageInterfaceNamesRemainDistinct)
 
 BOOST_AUTO_TEST_CASE (FlatTopLevelOffpageConnectsAcrossPages)
 
 BOOST_AUTO_TEST_CASE (PowerAliasConnectsAcrossPages)
 
 BOOST_AUTO_TEST_CASE (PhysicalConnectorPinsUseDefinitionNumbers)
 
 BOOST_AUTO_TEST_CASE (ModernPackageStreamsSupplyEmbeddedSymbolGeometry)
 
 BOOST_AUTO_TEST_CASE (LegacyDisplayTypesRemainVisible)
 
 BOOST_AUTO_TEST_CASE (UnreferencedPagesDoNotOverwriteHierarchicalSheets)
 
 BOOST_AUTO_TEST_CASE (HierarchicalPortsUseVisibleNativeLabels)
 
 BOOST_AUTO_TEST_CASE (LegacyHierarchicalBlockImport)
 
 BOOST_AUTO_TEST_CASE (LegacyDsnDiodePinsUseLogicalPolarity)
 
 BOOST_AUTO_TEST_CASE (LegacyDsnEmbeddedSlashNetNameIsAuthoritative)
 
 BOOST_AUTO_TEST_CASE (UninstantiatedLegacyPageIsExcludedFromBoard)
 
 BOOST_AUTO_TEST_CASE (LegacyFlatPageImport)
 
 BOOST_AUTO_TEST_CASE (LegacyHierarchyPowerTableImport)
 
 BOOST_AUTO_TEST_CASE (Issue25005Hierarchy)
 
 BOOST_AUTO_TEST_CASE (Issue25009PageOrderAndGraphics)
 
 BOOST_AUTO_TEST_CASE (OlbLibraryImport)
 
 BOOST_AUTO_TEST_CASE (OlbPackageKeepsEveryUnitAndView)
 
 BOOST_AUTO_TEST_CASE (MultiPageFlatImport)
 
 BOOST_AUTO_TEST_CASE (HierarchicalSymbolInstancesUseCanonicalSheetPaths)
 
 BOOST_AUTO_TEST_CASE (MultiPageHierarchyPreservesPortConnectivity)
 
 BOOST_AUTO_TEST_CASE (PowerSymbolPinSharesPartNet)
 
 BOOST_AUTO_TEST_CASE (RepeatedHierarchicalBusPinsRemainScoped)
 
 BOOST_AUTO_TEST_CASE (NestedHierarchicalBusRangesPreserveConnectivity)
 
 BOOST_AUTO_TEST_CASE (RenamedHierarchicalBusMembersPreserveConnectivity)
 
 BOOST_AUTO_TEST_CASE (RepeatedMultiPageFoldersKeepLeafNetsScoped)
 
 BOOST_AUTO_TEST_CASE (DegenerateHierarchicalPinPlacementsUseDefinitionGeometry)
 
 BOOST_AUTO_TEST_CASE (PlacedUnitsSelectPackagePinMaps)
 
 BOOST_AUTO_TEST_CASE (Dc2693aSmaOnlyDisplaysCenterPinNumber)
 
 BOOST_AUTO_TEST_CASE (Cy8cproto040tDisplaysComponentPinNumbers)
 
 BOOST_AUTO_TEST_CASE (Cy8ckit149EmbeddedBlockDiagramIsComplete)
 
 BOOST_AUTO_TEST_CASE (ComponentDetailImport)
 
 BOOST_AUTO_TEST_CASE (HierarchicalBusAliasesConnectWithoutHiddenLabels)
 
 BOOST_AUTO_TEST_CASE (EscapedHierarchicalBusMembersConnectWithoutGlobalHelpers)
 
 BOOST_AUTO_TEST_CASE (RepeatedSheetPinNamesDoNotJoinLocalRepairs)
 
 BOOST_AUTO_TEST_CASE (WireFreePinJunctionsRetainVisibleLocalConnections)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/129]

◆ BOOST_AUTO_TEST_CASE() [2/129]

◆ BOOST_AUTO_TEST_CASE() [3/129]

◆ BOOST_AUTO_TEST_CASE() [4/129]

◆ BOOST_AUTO_TEST_CASE() [5/129]

◆ BOOST_AUTO_TEST_CASE() [6/129]

◆ BOOST_AUTO_TEST_CASE() [7/129]

◆ BOOST_AUTO_TEST_CASE() [8/129]

BOOST_AUTO_TEST_CASE ( CaptureColorPalette )

Definition at line 104 of file test_orcad_sch_import.cpp.

References OrcadColor(), and KIGFX::COLOR4D::UNSPECIFIED.

◆ BOOST_AUTO_TEST_CASE() [9/129]

BOOST_AUTO_TEST_CASE ( CaptureCompoundFileName )

Definition at line 116 of file test_orcad_sch_import.cpp.

References BOOST_CHECK_EQUAL(), and OrcadNormalizeCfbName().

◆ BOOST_AUTO_TEST_CASE() [10/129]

◆ BOOST_AUTO_TEST_CASE() [11/129]

BOOST_AUTO_TEST_CASE ( CapturePageOrder )

Definition at line 188 of file test_orcad_sch_import.cpp.

References BOOST_CHECK_EQUAL(), and OrcadPageOrder().

◆ BOOST_AUTO_TEST_CASE() [12/129]

◆ BOOST_AUTO_TEST_CASE() [13/129]

◆ BOOST_AUTO_TEST_CASE() [14/129]

◆ BOOST_AUTO_TEST_CASE() [15/129]

◆ BOOST_AUTO_TEST_CASE() [16/129]

BOOST_AUTO_TEST_CASE ( CollidingOffpageOccurrenceAliasesRemainSeparate )

◆ BOOST_AUTO_TEST_CASE() [17/129]

◆ BOOST_AUTO_TEST_CASE() [18/129]

◆ BOOST_AUTO_TEST_CASE() [19/129]

◆ BOOST_AUTO_TEST_CASE() [20/129]

◆ BOOST_AUTO_TEST_CASE() [21/129]

◆ BOOST_AUTO_TEST_CASE() [22/129]

◆ BOOST_AUTO_TEST_CASE() [23/129]

◆ BOOST_AUTO_TEST_CASE() [24/129]

◆ BOOST_AUTO_TEST_CASE() [25/129]

◆ BOOST_AUTO_TEST_CASE() [26/129]

◆ BOOST_AUTO_TEST_CASE() [27/129]

◆ BOOST_AUTO_TEST_CASE() [28/129]

BOOST_AUTO_TEST_CASE ( DistinctPowerAndOffpageInterfaceNamesRemainDistinct )

◆ BOOST_AUTO_TEST_CASE() [29/129]

BOOST_AUTO_TEST_CASE ( DuplicatePageNetIdsDoNotShortDistinctNets )

◆ BOOST_AUTO_TEST_CASE() [30/129]

◆ BOOST_AUTO_TEST_CASE() [31/129]

◆ BOOST_AUTO_TEST_CASE() [32/129]

BOOST_AUTO_TEST_CASE ( EmbeddedImageFillsNonSquareSourceBox )

Definition at line 218 of file test_orcad_sch_import.cpp.

References BOOST_CHECK_EQUAL(), and OrcadStretchedImageSize().

◆ BOOST_AUTO_TEST_CASE() [33/129]

BOOST_AUTO_TEST_CASE ( EmbeddedTwoPinPackageNamesDoNotReplacePhysicalNumbers )

◆ BOOST_AUTO_TEST_CASE() [34/129]

◆ BOOST_AUTO_TEST_CASE() [35/129]

◆ BOOST_AUTO_TEST_CASE() [36/129]

◆ BOOST_AUTO_TEST_CASE() [37/129]

◆ BOOST_AUTO_TEST_CASE() [38/129]

◆ BOOST_AUTO_TEST_CASE() [39/129]

◆ BOOST_AUTO_TEST_CASE() [40/129]

BOOST_AUTO_TEST_CASE ( FlatFolderOccurrenceAliasesConnectDisplacedPins )

◆ BOOST_AUTO_TEST_CASE() [41/129]

BOOST_AUTO_TEST_CASE ( FlatModernOccurrenceReferencesOverridePlacedReferences )

◆ BOOST_AUTO_TEST_CASE() [42/129]

◆ BOOST_AUTO_TEST_CASE() [43/129]

◆ BOOST_AUTO_TEST_CASE() [44/129]

BOOST_AUTO_TEST_CASE ( GeneratedWirelessNetOverridesPeerPinName )

◆ BOOST_AUTO_TEST_CASE() [45/129]

◆ BOOST_AUTO_TEST_CASE() [46/129]

◆ BOOST_AUTO_TEST_CASE() [47/129]

◆ BOOST_AUTO_TEST_CASE() [48/129]

◆ BOOST_AUTO_TEST_CASE() [49/129]

BOOST_AUTO_TEST_CASE ( HierarchicalPortsUseVisibleNativeLabels )

◆ BOOST_AUTO_TEST_CASE() [50/129]

BOOST_AUTO_TEST_CASE ( HierarchicalSheetLoadIsRefused )

◆ BOOST_AUTO_TEST_CASE() [51/129]

◆ BOOST_AUTO_TEST_CASE() [52/129]

◆ BOOST_AUTO_TEST_CASE() [53/129]

◆ BOOST_AUTO_TEST_CASE() [54/129]

◆ BOOST_AUTO_TEST_CASE() [55/129]

◆ BOOST_AUTO_TEST_CASE() [56/129]

◆ BOOST_AUTO_TEST_CASE() [57/129]

◆ BOOST_AUTO_TEST_CASE() [58/129]

◆ BOOST_AUTO_TEST_CASE() [59/129]

◆ BOOST_AUTO_TEST_CASE() [60/129]

◆ BOOST_AUTO_TEST_CASE() [61/129]

◆ BOOST_AUTO_TEST_CASE() [62/129]

BOOST_AUTO_TEST_CASE ( LegacyOffpageConnectorsKeepDistinctPinPositions )

◆ BOOST_AUTO_TEST_CASE() [63/129]

◆ BOOST_AUTO_TEST_CASE() [64/129]

◆ BOOST_AUTO_TEST_CASE() [65/129]

BOOST_AUTO_TEST_CASE ( MatchingSymbolAndPackageVariantsPreservePhysicalPinNames )

◆ BOOST_AUTO_TEST_CASE() [66/129]

BOOST_AUTO_TEST_CASE ( MinorityPowerOccurrenceAliasDoesNotMergeGlobalNets )

◆ BOOST_AUTO_TEST_CASE() [67/129]

◆ BOOST_AUTO_TEST_CASE() [68/129]

◆ BOOST_AUTO_TEST_CASE() [69/129]

◆ BOOST_AUTO_TEST_CASE() [70/129]

◆ BOOST_AUTO_TEST_CASE() [71/129]

◆ BOOST_AUTO_TEST_CASE() [72/129]

◆ BOOST_AUTO_TEST_CASE() [73/129]

◆ BOOST_AUTO_TEST_CASE() [74/129]

BOOST_AUTO_TEST_CASE ( NestedOccurrenceReferencesOverridePlacedTemplateReferences )

◆ BOOST_AUTO_TEST_CASE() [75/129]

◆ BOOST_AUTO_TEST_CASE() [76/129]

◆ BOOST_AUTO_TEST_CASE() [77/129]

BOOST_AUTO_TEST_CASE ( OccurrenceFlatNetConnectsAcrossPagesWithoutOffpageSymbols )

◆ BOOST_AUTO_TEST_CASE() [78/129]

BOOST_AUTO_TEST_CASE ( OccurrencePowerAliasChainUsesAuthoritativeName )

◆ BOOST_AUTO_TEST_CASE() [79/129]

◆ BOOST_AUTO_TEST_CASE() [80/129]

◆ BOOST_AUTO_TEST_CASE() [81/129]

◆ BOOST_AUTO_TEST_CASE() [82/129]

◆ BOOST_AUTO_TEST_CASE() [83/129]

◆ BOOST_AUTO_TEST_CASE() [84/129]

◆ BOOST_AUTO_TEST_CASE() [85/129]

BOOST_AUTO_TEST_CASE ( OlbLibraryImport )

◆ BOOST_AUTO_TEST_CASE() [86/129]

◆ BOOST_AUTO_TEST_CASE() [87/129]

BOOST_AUTO_TEST_CASE ( OlePreviewWithMultiplePresentationStreams )

◆ BOOST_AUTO_TEST_CASE() [88/129]

◆ BOOST_AUTO_TEST_CASE() [89/129]

◆ BOOST_AUTO_TEST_CASE() [90/129]

◆ BOOST_AUTO_TEST_CASE() [91/129]

BOOST_AUTO_TEST_CASE ( PinNameOverbarsUseKiCadMarkup )

Definition at line 4799 of file test_orcad_sch_import.cpp.

References BOOST_CHECK_EQUAL(), and OrcadPinNameMarkup().

◆ BOOST_AUTO_TEST_CASE() [92/129]

◆ BOOST_AUTO_TEST_CASE() [93/129]

◆ BOOST_AUTO_TEST_CASE() [94/129]

◆ BOOST_AUTO_TEST_CASE() [95/129]

◆ BOOST_AUTO_TEST_CASE() [96/129]

◆ BOOST_AUTO_TEST_CASE() [97/129]

BOOST_AUTO_TEST_CASE ( PowerSymbolAttachesAtPlacedVariantPin )

◆ BOOST_AUTO_TEST_CASE() [98/129]

◆ BOOST_AUTO_TEST_CASE() [99/129]

BOOST_AUTO_TEST_CASE ( RejectsNonexistentFile )

Definition at line 425 of file test_orcad_sch_import.cpp.

References BOOST_REQUIRE().

◆ BOOST_AUTO_TEST_CASE() [100/129]

◆ BOOST_AUTO_TEST_CASE() [101/129]

◆ BOOST_AUTO_TEST_CASE() [102/129]

◆ BOOST_AUTO_TEST_CASE() [103/129]

BOOST_AUTO_TEST_CASE ( RepeatedHierarchicalOffpageNamesRemainSheetScoped )

◆ BOOST_AUTO_TEST_CASE() [104/129]

BOOST_AUTO_TEST_CASE ( RepeatedHierarchicalPortNamesRemainSheetScoped )

◆ BOOST_AUTO_TEST_CASE() [105/129]

◆ BOOST_AUTO_TEST_CASE() [106/129]

◆ BOOST_AUTO_TEST_CASE() [107/129]

◆ BOOST_AUTO_TEST_CASE() [108/129]

◆ BOOST_AUTO_TEST_CASE() [109/129]

◆ BOOST_AUTO_TEST_CASE() [110/129]

◆ BOOST_AUTO_TEST_CASE() [111/129]

◆ BOOST_AUTO_TEST_CASE() [112/129]

◆ BOOST_AUTO_TEST_CASE() [113/129]

BOOST_AUTO_TEST_CASE ( RootOccurrenceTargetIdsOverridePlacedTemplateReferences )

◆ BOOST_AUTO_TEST_CASE() [114/129]

◆ BOOST_AUTO_TEST_CASE() [115/129]

BOOST_AUTO_TEST_CASE ( SharedOccurrenceNetWithoutTerminalPeerKeepsBaseName )

◆ BOOST_AUTO_TEST_CASE() [116/129]

◆ BOOST_AUTO_TEST_CASE() [117/129]

◆ BOOST_AUTO_TEST_CASE() [118/129]

◆ BOOST_AUTO_TEST_CASE() [119/129]

◆ BOOST_AUTO_TEST_CASE() [120/129]

◆ BOOST_AUTO_TEST_CASE() [121/129]

BOOST_AUTO_TEST_CASE ( StructurePrefixDepthIsTypeOwned )

◆ BOOST_AUTO_TEST_CASE() [122/129]

◆ BOOST_AUTO_TEST_CASE() [123/129]

BOOST_AUTO_TEST_CASE ( UninstantiatedLegacyPageIsExcludedFromBoard )

◆ BOOST_AUTO_TEST_CASE() [124/129]

◆ BOOST_AUTO_TEST_CASE() [125/129]

BOOST_AUTO_TEST_CASE ( UnreferencedSchematicFoldersRemainVisibleButExcludedFromBoard )

◆ BOOST_AUTO_TEST_CASE() [126/129]

BOOST_AUTO_TEST_CASE ( ViewsDirectoryIgnoresStaleStoredFolders )

◆ BOOST_AUTO_TEST_CASE() [127/129]

◆ BOOST_AUTO_TEST_CASE() [128/129]

◆ BOOST_AUTO_TEST_CASE() [129/129]

BOOST_AUTO_TEST_CASE ( WmfRenderUsesEmbeddedBoxAspectBeforeRasterization )

Definition at line 226 of file test_orcad_sch_import.cpp.

References BOOST_CHECK_EQUAL(), and OleWmfRenderSize().

◆ checkConnectivity()

static std::pair< int, int > checkConnectivity ( SCHEMATIC & aSchematic,
const std::vector< std::set< std::string > > & aNets,
std::vector< std::set< std::string > > * aInconsistent )
static

Count ground-truth nets whose resolvable terminals all land on one KiCad net after connectivity rebuild.

Returns {consistent, checkable}.

Definition at line 656 of file test_orcad_sch_import.cpp.

References SCHEMATIC::BuildSheetListSortedByPageNumbers(), SCHEMATIC::ConnectionGraph(), CONNECTION_GRAPH::GetNetMap(), SCH_SYMBOL::GetRef(), pin, CONNECTION_GRAPH::Recalculate(), SCH_PIN_T, and terminalToken().

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().

◆ collectImportedRefs()

static std::set< std::string > collectImportedRefs ( SCHEMATIC & aSchematic)
static

Unique refdes of real (non-power) parts.

Annotated refs live in per-sheet-path instance data, so walk sheet list and query GetRef() per path (same screen may recur on several paths).

Definition at line 572 of file test_orcad_sch_import.cpp.

References SCHEMATIC::BuildSheetListSortedByPageNumbers(), SCH_SYMBOL::GetRef(), SCH_SCREEN::Items(), EE_RTREE::OfType(), path, and SCH_SYMBOL_T.

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().

◆ collectImportedUuids()

◆ expectedRefsFor()

static std::set< std::string > expectedRefsFor ( const std::filesystem::path & aDsn,
std::string & aSource )
static

Ground-truth companion beside .DSN, .NET preferred over .BOM.

Definition at line 773 of file test_orcad_sch_import.cpp.

References parseBomRefs(), and parseNetComs().

Referenced by BOOST_AUTO_TEST_CASE().

◆ findConvertedSymbol()

static SCH_SYMBOL * findConvertedSymbol ( SCH_SCREEN & aScreen,
const SCH_SHEET_PATH & aPath,
const wxString & aReference )
static

◆ findCorpusDesign()

static std::filesystem::path findCorpusDesign ( const std::filesystem::path & aRoot,
const std::string & aFileName )
static

Definition at line 1146 of file test_orcad_sch_import.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().

◆ parseBomRefs()

static std::set< std::string > parseBomRefs ( const std::string & aPath)
static

Definition at line 483 of file test_orcad_sch_import.cpp.

References splitRefs(), and trimCell().

Referenced by expectedRefsFor().

◆ parseNetComs()

static std::set< std::string > parseNetComs ( const std::string & aPath)
static

Definition at line 539 of file test_orcad_sch_import.cpp.

References trimCell().

Referenced by expectedRefsFor().

◆ parseNetTerminals()

static std::vector< std::set< std::string > > parseNetTerminals ( const std::string & aPath)
static

Net terminal sets from .NET.

Net starts at .ADD_TER <ref> <pin>, gathers following .TER/indented <ref> <pin> continuations until next net.

Definition at line 609 of file test_orcad_sch_import.cpp.

References pin, and terminalToken().

Referenced by BOOST_AUTO_TEST_CASE().

◆ splitRefs()

static std::vector< std::string > splitRefs ( const std::string & aCell)
static

Definition at line 452 of file test_orcad_sch_import.cpp.

References trimCell().

Referenced by parseBomRefs().

◆ terminalNetName()

◆ terminalToken()

◆ trimCell()

static std::string trimCell ( std::string aText)
static

Definition at line 436 of file test_orcad_sch_import.cpp.

Referenced by parseBomRefs(), parseNetComs(), splitRefs(), and terminalToken().