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

Unit tests for the constraint-panel display label (issue #2329 UI redesign): a valueless constraint reads as its type name, a driving valued constraint appends its value in the requested display units, and a reference (non-driving) value is parenthesized. More...

#include <qa_utils/wx_utils/unit_test_utils.h>
#include <climits>
#include <set>
#include <base_units.h>
#include <eda_units.h>
#include <pcb_shape.h>
#include <constraints/pcb_constraint.h>
#include <constraints/constraint_builder.h>

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (ValuelessConstraintIsTypeNameOnly)
 
 BOOST_AUTO_TEST_CASE (DrivingLengthShowsValueInDisplayUnits)
 
 BOOST_AUTO_TEST_CASE (ReferenceValueIsParenthesized)
 
 BOOST_AUTO_TEST_CASE (AngularValueShownInDegrees)
 
 BOOST_AUTO_TEST_CASE (VertexMemberOnRectangleReadsCorner)
 
 BOOST_AUTO_TEST_CASE (VertexMemberOnPolygonReadsVertex)
 
 BOOST_AUTO_TEST_CASE (VertexMemberIndexAtIntMaxDoesNotOverflow)
 
 BOOST_AUTO_TEST_CASE (NonVertexMemberLabelUnchanged)
 
 BOOST_AUTO_TEST_CASE (TypeGlyphIsSingleCodepointAndDistinct)
 
 BOOST_AUTO_TEST_CASE (SegmentExposesStartAndEnd)
 
 BOOST_AUTO_TEST_CASE (CircleExposesOnlyCenter)
 
 BOOST_AUTO_TEST_CASE (RectangleExposesIndexedCorners)
 

Detailed Description

Unit tests for the constraint-panel display label (issue #2329 UI redesign): a valueless constraint reads as its type name, a driving valued constraint appends its value in the requested display units, and a reference (non-driving) value is parenthesized.

Definition in file test_constraint_labels.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/12]

BOOST_AUTO_TEST_CASE ( AngularValueShownInDegrees )

◆ BOOST_AUTO_TEST_CASE() [2/12]

BOOST_AUTO_TEST_CASE ( CircleExposesOnlyCenter )

Definition at line 205 of file test_constraint_labels.cpp.

References anchor, CENTER, CIRCLE, circle(), and ConstraintShapeAnchors().

◆ BOOST_AUTO_TEST_CASE() [3/12]

BOOST_AUTO_TEST_CASE ( DrivingLengthShowsValueInDisplayUnits )

◆ BOOST_AUTO_TEST_CASE() [4/12]

BOOST_AUTO_TEST_CASE ( NonVertexMemberLabelUnchanged )

◆ BOOST_AUTO_TEST_CASE() [5/12]

BOOST_AUTO_TEST_CASE ( RectangleExposesIndexedCorners )

◆ BOOST_AUTO_TEST_CASE() [6/12]

BOOST_AUTO_TEST_CASE ( ReferenceValueIsParenthesized )

◆ BOOST_AUTO_TEST_CASE() [7/12]

BOOST_AUTO_TEST_CASE ( SegmentExposesStartAndEnd )

◆ BOOST_AUTO_TEST_CASE() [8/12]

BOOST_AUTO_TEST_CASE ( TypeGlyphIsSingleCodepointAndDistinct )

◆ BOOST_AUTO_TEST_CASE() [9/12]

BOOST_AUTO_TEST_CASE ( ValuelessConstraintIsTypeNameOnly )

◆ BOOST_AUTO_TEST_CASE() [10/12]

BOOST_AUTO_TEST_CASE ( VertexMemberIndexAtIntMaxDoesNotOverflow )

◆ BOOST_AUTO_TEST_CASE() [11/12]

BOOST_AUTO_TEST_CASE ( VertexMemberOnPolygonReadsVertex )

◆ BOOST_AUTO_TEST_CASE() [12/12]

BOOST_AUTO_TEST_CASE ( VertexMemberOnRectangleReadsCorner )