KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_constraint_auto.cpp File Reference

Tests SelectShapeAutoConstraints, the decision logic behind draw time auto constraints. More...

#include <qa_utils/wx_utils/unit_test_utils.h>
#include <memory>
#include <vector>
#include <board.h>
#include <pcb_shape.h>
#include <constraints/pcb_constraint.h>
#include <constraints/constraint_builder.h>
#include "constraint_test_utils.h"

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (EndpointBindsCoincident)
 
 BOOST_AUTO_TEST_CASE (MidpointUpgrade)
 
 BOOST_AUTO_TEST_CASE (PointOnLineFallback)
 
 BOOST_AUTO_TEST_CASE (TangentWithinThreshold)
 
 BOOST_AUTO_TEST_CASE (TangentRejectedBeyondThreshold)
 
 BOOST_AUTO_TEST_CASE (SegmentsNeverTangent)
 
 BOOST_AUTO_TEST_CASE (CorridorBindsNearMiss)
 
 BOOST_AUTO_TEST_CASE (CorridorIgnoresFarMiss)
 
 BOOST_AUTO_TEST_CASE (CorridorExcludesDrawnEndpoints)
 
 BOOST_AUTO_TEST_CASE (AxisAlignedBindsInConstrainedMode)
 
 BOOST_AUTO_TEST_CASE (CentreCascade)
 
 BOOST_AUTO_TEST_CASE (ChordAuthorsSingleTangent)
 
 BOOST_AUTO_TEST_CASE (DuplicateNotReauthored)
 

Detailed Description

Tests SelectShapeAutoConstraints, the decision logic behind draw time auto constraints.

Definition in file test_constraint_auto.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/13]

BOOST_AUTO_TEST_CASE ( AxisAlignedBindsInConstrainedMode )

◆ BOOST_AUTO_TEST_CASE() [2/13]

◆ BOOST_AUTO_TEST_CASE() [3/13]

BOOST_AUTO_TEST_CASE ( ChordAuthorsSingleTangent )

◆ BOOST_AUTO_TEST_CASE() [4/13]

BOOST_AUTO_TEST_CASE ( CorridorBindsNearMiss )

◆ BOOST_AUTO_TEST_CASE() [5/13]

BOOST_AUTO_TEST_CASE ( CorridorExcludesDrawnEndpoints )

◆ BOOST_AUTO_TEST_CASE() [6/13]

BOOST_AUTO_TEST_CASE ( CorridorIgnoresFarMiss )

◆ BOOST_AUTO_TEST_CASE() [7/13]

BOOST_AUTO_TEST_CASE ( DuplicateNotReauthored )

◆ BOOST_AUTO_TEST_CASE() [8/13]

BOOST_AUTO_TEST_CASE ( EndpointBindsCoincident )

◆ BOOST_AUTO_TEST_CASE() [9/13]

BOOST_AUTO_TEST_CASE ( MidpointUpgrade )

◆ BOOST_AUTO_TEST_CASE() [10/13]

BOOST_AUTO_TEST_CASE ( PointOnLineFallback )

◆ BOOST_AUTO_TEST_CASE() [11/13]

BOOST_AUTO_TEST_CASE ( SegmentsNeverTangent )

◆ BOOST_AUTO_TEST_CASE() [12/13]

BOOST_AUTO_TEST_CASE ( TangentRejectedBeyondThreshold )

◆ BOOST_AUTO_TEST_CASE() [13/13]

BOOST_AUTO_TEST_CASE ( TangentWithinThreshold )