SILICON
Loading...
Searching...
No Matches
libavoid.cpp File Reference
#include <gtest/gtest.h>
#include "libavoid/libavoid.h"
#include "libavoid/qtgeomtypes.h"
#include "ui/circuit/diagram/wireRouting.hpp"
#include "ui/circuit/diagram/interactiveWireRouter.hpp"
#include <QPointF>
#include <QPolygonF>
#include <QRectF>
#include <algorithm>
#include <string>
#include <vector>
Include dependency graph for libavoid.cpp:

Go to the source code of this file.

Functions

 TEST (InteractiveWireRouterTest, MovingPinnedComponentReroutesItsWire)
 TEST (InteractiveWireRouterTest, MovingComponentKeepsTwoAttachedWiresAtTheirPorts)
 TEST (InteractiveWireRouterTest, PinnedPortInsidePaintBoundsStillMoves)
 TEST (InteractiveWireRouterTest, PortOutsideCollisionBoundsKeepsItsPosition)
 TEST (InteractiveWireRouterTest, MovingComponentCannotRerouteUnattachedWire)
 TEST (InteractiveWireRouterTest, MovingComponentLeavesOtherNetFixed)
 TEST (InteractiveWireRouterTest, BendAndEdgeUseLibavoidConstraints)
 TEST (InteractiveWireRouterTest, BranchFollowsDraggedTrunkEdge)
 TEST (InteractiveWireRouterTest, DraggingBranchEndpointLeavesTrunkInPlace)
 TEST (InteractiveWireRouterTest, DraggingBranchFromSplitTrunkLeavesBothArmsInPlace)
 TEST (InteractiveWireRouterTest, DraggingDetachedEndpointBackOntoWire)
 TEST (InteractiveWireRouterTest, TerminalEdgeAddsDoglegWithoutMovingTerminals)
 TEST (InteractiveWireRouterTest, EdgeDragKeepsComponentPinsAttached)
 TEST (InteractiveWireRouterTest, DragLeavesAnotherNetFixed)
 TEST (InteractiveWireRouterTest, PreviewsAlwaysStartFromOriginalGeometry)
 TEST (InteractiveWireRouterTest, MovedPortKeepsFanoutJunctionAttached)
 TEST (WireRoutingTest, NormalizationPreservesIntentionalRetracedEdges)
 TEST (WireRoutingTest, SelfIntersectionAllowsConnectedBendsButRejectsCrossings)
 TEST (WireRoutingTest, DetectsOnlyObstacleInteriorCrossings)
 TEST (LibavoidTest, RoutesAroundObstacle)
 TEST (LibavoidTest, CoincidentEndpointsKeepTheirOwnDirections)
 TEST (LibavoidTest, DensePinnedRowsKeepTerminalsAndAvoidObstacles)
 TEST (LibavoidTest, DenseGridRoutesRemainCompleteAcrossTransactions)
 TEST (WireRoutingTest, RoutesAroundBufferedObstacle)
 TEST (WireRoutingTest, ConnectsPortsInsideBufferedComponentBounds)
 TEST (WireRoutingTest, RoutesVerticalPairsAroundBufferedObstacle)
 TEST (WireRoutingTest, CanonicalizesDuplicateAndCollinearPoints)
 TEST (WireRoutingTest, DetectsOnlyPositiveLengthSharedSegments)
 TEST (WireRoutingTest, DetectsAmbiguousEndpointJunctionsButAllowsCrossovers)
 TEST (WireRoutingTest, SharesPointTouchCrossingAndJunctionGeometry)
 TEST (LibavoidHyperedgeTest, RoutesFanoutAsJunctionTree)
 TEST (LibavoidHyperedgeTest, ReportsEveryRegisteredNetAfterRouting)
 TEST (LibavoidHyperedgeTest, DenseFanoutConnectsEveryTerminal)
 TEST (LibavoidHyperedgeTest, NudgesDistinctNetsApartAfterGridSnapping)
 TEST (LibavoidHyperedgeTest, ReservesFixedEndpointStubsBeforeSeparatingGroups)
 TEST (LibavoidHyperedgeTest, SeparatesFixedPinBranchesIndependently)
 TEST (LibavoidHyperedgeTest, ReroutesBetweenOppositeTerminalEscapeCorridors)
 TEST (LibavoidHyperedgeTest, RejectsDistinctNetsWithAnImmovableSharedTerminal)
 TEST (LibavoidTest, DirectionalPointEndpointsRemainAtGraphicalPorts)
 TEST (LibavoidTest, CentersFacingPortDoglegWhenChannelIsClear)
 TEST (LibavoidTest, DoesNotCenterFacingPortDoglegThroughObstacle)
 TEST (LibavoidTest, ShapePinRoutesRetainExactPinCoordinates)
 TEST (LibavoidHyperedgeTest, RoutesCrossCoupledLatchWithoutSharedNetSegments)
 TEST (WireRoutingTest, MergesFanoutIntoTerminalToJunctionSegments)
 TEST (WireRoutingTest, RejectsClosedInputRoutes)
 TEST (WireRoutingTest, KeepsComponentTerminalsAsPathEndpoints)
 TEST (WireRoutingTest, RemovesRedundantCyclesBeforeExtractingPaths)
 TEST (WireRoutingTest, RemovesRetracedSpursWithoutCreatingCrossNetJunctions)
 TEST (LibavoidQtGeomTypesTest, ConvertsPoint)
 TEST (LibavoidQtGeomTypesTest, ConvertsRectangleAndBox)
 TEST (LibavoidQtGeomTypesTest, ConvertsPolygon)
 TEST (LibavoidCancellation, SearchCleansUpAndCanRetry)
 TEST (LibavoidCancellation, SeparationRestoresCompleteRoutes)
 TEST (WireRouteMerging, CancellationDiscardsPartialGeometry)

Function Documentation

◆ TEST() [1/54]

TEST ( InteractiveWireRouterTest ,
BendAndEdgeUseLibavoidConstraints  )

Definition at line 206 of file libavoid.cpp.

◆ TEST() [2/54]

TEST ( InteractiveWireRouterTest ,
BranchFollowsDraggedTrunkEdge  )

Definition at line 222 of file libavoid.cpp.

◆ TEST() [3/54]

TEST ( InteractiveWireRouterTest ,
DraggingBranchEndpointLeavesTrunkInPlace  )

Definition at line 234 of file libavoid.cpp.

◆ TEST() [4/54]

TEST ( InteractiveWireRouterTest ,
DraggingBranchFromSplitTrunkLeavesBothArmsInPlace  )

Definition at line 247 of file libavoid.cpp.

◆ TEST() [5/54]

TEST ( InteractiveWireRouterTest ,
DraggingDetachedEndpointBackOntoWire  )

Definition at line 262 of file libavoid.cpp.

◆ TEST() [6/54]

TEST ( InteractiveWireRouterTest ,
DragLeavesAnotherNetFixed  )

Definition at line 297 of file libavoid.cpp.

◆ TEST() [7/54]

TEST ( InteractiveWireRouterTest ,
EdgeDragKeepsComponentPinsAttached  )

Definition at line 284 of file libavoid.cpp.

◆ TEST() [8/54]

TEST ( InteractiveWireRouterTest ,
MovedPortKeepsFanoutJunctionAttached  )

Definition at line 324 of file libavoid.cpp.

◆ TEST() [9/54]

TEST ( InteractiveWireRouterTest ,
MovingComponentCannotRerouteUnattachedWire  )

Definition at line 182 of file libavoid.cpp.

◆ TEST() [10/54]

TEST ( InteractiveWireRouterTest ,
MovingComponentKeepsTwoAttachedWiresAtTheirPorts  )

Definition at line 132 of file libavoid.cpp.

◆ TEST() [11/54]

TEST ( InteractiveWireRouterTest ,
MovingComponentLeavesOtherNetFixed  )

Definition at line 191 of file libavoid.cpp.

◆ TEST() [12/54]

TEST ( InteractiveWireRouterTest ,
MovingPinnedComponentReroutesItsWire  )

Definition at line 117 of file libavoid.cpp.

◆ TEST() [13/54]

TEST ( InteractiveWireRouterTest ,
PinnedPortInsidePaintBoundsStillMoves  )

Definition at line 152 of file libavoid.cpp.

◆ TEST() [14/54]

TEST ( InteractiveWireRouterTest ,
PortOutsideCollisionBoundsKeepsItsPosition  )

Definition at line 165 of file libavoid.cpp.

◆ TEST() [15/54]

TEST ( InteractiveWireRouterTest ,
PreviewsAlwaysStartFromOriginalGeometry  )

Definition at line 308 of file libavoid.cpp.

◆ TEST() [16/54]

TEST ( InteractiveWireRouterTest ,
TerminalEdgeAddsDoglegWithoutMovingTerminals  )

Definition at line 274 of file libavoid.cpp.

◆ TEST() [17/54]

TEST ( LibavoidCancellation ,
SearchCleansUpAndCanRetry  )

Definition at line 1249 of file libavoid.cpp.

◆ TEST() [18/54]

TEST ( LibavoidCancellation ,
SeparationRestoresCompleteRoutes  )

Definition at line 1266 of file libavoid.cpp.

◆ TEST() [19/54]

TEST ( LibavoidHyperedgeTest ,
DenseFanoutConnectsEveryTerminal  )

Definition at line 705 of file libavoid.cpp.

◆ TEST() [20/54]

TEST ( LibavoidHyperedgeTest ,
NudgesDistinctNetsApartAfterGridSnapping  )

Definition at line 748 of file libavoid.cpp.

◆ TEST() [21/54]

TEST ( LibavoidHyperedgeTest ,
RejectsDistinctNetsWithAnImmovableSharedTerminal  )

Definition at line 899 of file libavoid.cpp.

◆ TEST() [22/54]

TEST ( LibavoidHyperedgeTest ,
ReportsEveryRegisteredNetAfterRouting  )

Definition at line 681 of file libavoid.cpp.

◆ TEST() [23/54]

TEST ( LibavoidHyperedgeTest ,
ReroutesBetweenOppositeTerminalEscapeCorridors  )

Definition at line 862 of file libavoid.cpp.

◆ TEST() [24/54]

TEST ( LibavoidHyperedgeTest ,
ReservesFixedEndpointStubsBeforeSeparatingGroups  )

Definition at line 787 of file libavoid.cpp.

◆ TEST() [25/54]

TEST ( LibavoidHyperedgeTest ,
RoutesCrossCoupledLatchWithoutSharedNetSegments  )

Definition at line 1027 of file libavoid.cpp.

◆ TEST() [26/54]

TEST ( LibavoidHyperedgeTest ,
RoutesFanoutAsJunctionTree  )

Definition at line 652 of file libavoid.cpp.

◆ TEST() [27/54]

TEST ( LibavoidHyperedgeTest ,
SeparatesFixedPinBranchesIndependently  )

Definition at line 830 of file libavoid.cpp.

◆ TEST() [28/54]

TEST ( LibavoidQtGeomTypesTest ,
ConvertsPoint  )

Definition at line 1202 of file libavoid.cpp.

◆ TEST() [29/54]

TEST ( LibavoidQtGeomTypesTest ,
ConvertsPolygon  )

Definition at line 1221 of file libavoid.cpp.

◆ TEST() [30/54]

TEST ( LibavoidQtGeomTypesTest ,
ConvertsRectangleAndBox  )

Definition at line 1212 of file libavoid.cpp.

◆ TEST() [31/54]

TEST ( LibavoidTest ,
CentersFacingPortDoglegWhenChannelIsClear  )

Definition at line 944 of file libavoid.cpp.

◆ TEST() [32/54]

TEST ( LibavoidTest ,
CoincidentEndpointsKeepTheirOwnDirections  )

Definition at line 403 of file libavoid.cpp.

◆ TEST() [33/54]

TEST ( LibavoidTest ,
DenseGridRoutesRemainCompleteAcrossTransactions  )

Definition at line 488 of file libavoid.cpp.

◆ TEST() [34/54]

TEST ( LibavoidTest ,
DensePinnedRowsKeepTerminalsAndAvoidObstacles  )

Definition at line 428 of file libavoid.cpp.

◆ TEST() [35/54]

TEST ( LibavoidTest ,
DirectionalPointEndpointsRemainAtGraphicalPorts  )

Definition at line 912 of file libavoid.cpp.

◆ TEST() [36/54]

TEST ( LibavoidTest ,
DoesNotCenterFacingPortDoglegThroughObstacle  )

Definition at line 963 of file libavoid.cpp.

◆ TEST() [37/54]

TEST ( LibavoidTest ,
RoutesAroundObstacle  )

Definition at line 372 of file libavoid.cpp.

◆ TEST() [38/54]

TEST ( LibavoidTest ,
ShapePinRoutesRetainExactPinCoordinates  )

Definition at line 985 of file libavoid.cpp.

◆ TEST() [39/54]

TEST ( WireRouteMerging ,
CancellationDiscardsPartialGeometry  )

Definition at line 1283 of file libavoid.cpp.

◆ TEST() [40/54]

TEST ( WireRoutingTest ,
CanonicalizesDuplicateAndCollinearPoints  )

Definition at line 598 of file libavoid.cpp.

◆ TEST() [41/54]

TEST ( WireRoutingTest ,
ConnectsPortsInsideBufferedComponentBounds  )

Definition at line 563 of file libavoid.cpp.

◆ TEST() [42/54]

TEST ( WireRoutingTest ,
DetectsAmbiguousEndpointJunctionsButAllowsCrossovers  )

Definition at line 624 of file libavoid.cpp.

◆ TEST() [43/54]

TEST ( WireRoutingTest ,
DetectsOnlyObstacleInteriorCrossings  )

Definition at line 363 of file libavoid.cpp.

◆ TEST() [44/54]

TEST ( WireRoutingTest ,
DetectsOnlyPositiveLengthSharedSegments  )

Definition at line 610 of file libavoid.cpp.

◆ TEST() [45/54]

TEST ( WireRoutingTest ,
KeepsComponentTerminalsAsPathEndpoints  )

Definition at line 1167 of file libavoid.cpp.

◆ TEST() [46/54]

TEST ( WireRoutingTest ,
MergesFanoutIntoTerminalToJunctionSegments  )

Definition at line 1140 of file libavoid.cpp.

◆ TEST() [47/54]

TEST ( WireRoutingTest ,
NormalizationPreservesIntentionalRetracedEdges  )

Definition at line 341 of file libavoid.cpp.

◆ TEST() [48/54]

TEST ( WireRoutingTest ,
RejectsClosedInputRoutes  )

Definition at line 1160 of file libavoid.cpp.

◆ TEST() [49/54]

TEST ( WireRoutingTest ,
RemovesRedundantCyclesBeforeExtractingPaths  )

Definition at line 1176 of file libavoid.cpp.

◆ TEST() [50/54]

TEST ( WireRoutingTest ,
RemovesRetracedSpursWithoutCreatingCrossNetJunctions  )

Definition at line 1193 of file libavoid.cpp.

◆ TEST() [51/54]

TEST ( WireRoutingTest ,
RoutesAroundBufferedObstacle  )

Definition at line 542 of file libavoid.cpp.

◆ TEST() [52/54]

TEST ( WireRoutingTest ,
RoutesVerticalPairsAroundBufferedObstacle  )

Definition at line 578 of file libavoid.cpp.

◆ TEST() [53/54]

TEST ( WireRoutingTest ,
SelfIntersectionAllowsConnectedBendsButRejectsCrossings  )

Definition at line 349 of file libavoid.cpp.

◆ TEST() [54/54]

TEST ( WireRoutingTest ,
SharesPointTouchCrossingAndJunctionGeometry  )

Definition at line 638 of file libavoid.cpp.