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

Go to the source code of this file.

Classes

struct  PCB_TEXTBOX_FIXTURE
 

Functions

 BOOST_AUTO_TEST_CASE (GetMinSizeReturnsHeightOnly)
 
 BOOST_AUTO_TEST_CASE (GetMinSizeGrowsWithMoreText)
 
 BOOST_AUTO_TEST_CASE (GetMinSizeIncludesMargins)
 
 BOOST_AUTO_TEST_CASE (GetMinSizeHeightAtLeastTextHeight)
 
 BOOST_AUTO_TEST_CASE (GetMinSizeEmptyText)
 
 BOOST_AUTO_TEST_CASE (GetMinSizeRotated90)
 
 BOOST_AUTO_TEST_CASE (GetMinSizeAllowsWidthReduction)
 
 BOOST_AUTO_TEST_CASE (ThirtyDegreeIncrementsToCardinalKeepsVisualRotated)
 
 BOOST_AUTO_TEST_CASE (NonCardinalRotationDoesNotCrash)
 
 BOOST_AUTO_TEST_CASE (CardinalRotationsRoundTrip)
 
 BOOST_AUTO_TEST_CASE (NonCardinalRotationKeepsLibShapeRectangle)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/11]

BOOST_AUTO_TEST_CASE ( CardinalRotationsRoundTrip )

◆ BOOST_AUTO_TEST_CASE() [2/11]

BOOST_AUTO_TEST_CASE ( GetMinSizeAllowsWidthReduction )

Definition at line 140 of file test_pcb_textbox.cpp.

References BOOST_CHECK_EQUAL(), and minSize.

◆ BOOST_AUTO_TEST_CASE() [3/11]

BOOST_AUTO_TEST_CASE ( GetMinSizeEmptyText )

Definition at line 105 of file test_pcb_textbox.cpp.

References BOOST_CHECK_EQUAL(), and minSize.

◆ BOOST_AUTO_TEST_CASE() [4/11]

BOOST_AUTO_TEST_CASE ( GetMinSizeGrowsWithMoreText )

Definition at line 55 of file test_pcb_textbox.cpp.

References VECTOR2< T >::y.

◆ BOOST_AUTO_TEST_CASE() [5/11]

BOOST_AUTO_TEST_CASE ( GetMinSizeHeightAtLeastTextHeight )

Definition at line 94 of file test_pcb_textbox.cpp.

References minSize.

◆ BOOST_AUTO_TEST_CASE() [6/11]

BOOST_AUTO_TEST_CASE ( GetMinSizeIncludesMargins )

Definition at line 68 of file test_pcb_textbox.cpp.

References BOOST_CHECK_EQUAL(), pcbIUScale, VECTOR2< T >::x, and VECTOR2< T >::y.

◆ BOOST_AUTO_TEST_CASE() [7/11]

BOOST_AUTO_TEST_CASE ( GetMinSizeReturnsHeightOnly )

Definition at line 46 of file test_pcb_textbox.cpp.

References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), and minSize.

◆ BOOST_AUTO_TEST_CASE() [8/11]

BOOST_AUTO_TEST_CASE ( GetMinSizeRotated90 )

Definition at line 119 of file test_pcb_textbox.cpp.

References BOOST_CHECK_EQUAL(), DEGREES_T, VECTOR2< T >::x, and VECTOR2< T >::y.

◆ BOOST_AUTO_TEST_CASE() [9/11]

BOOST_AUTO_TEST_CASE ( NonCardinalRotationDoesNotCrash )

◆ BOOST_AUTO_TEST_CASE() [10/11]

BOOST_AUTO_TEST_CASE ( NonCardinalRotationKeepsLibShapeRectangle )

Definition at line 216 of file test_pcb_textbox.cpp.

References DEGREES_T, and RECTANGLE.

◆ BOOST_AUTO_TEST_CASE() [11/11]

BOOST_AUTO_TEST_CASE ( ThirtyDegreeIncrementsToCardinalKeepsVisualRotated )