KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_pcb_textbox.cpp File Reference
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <qa_utils/pdf_test_utils.h>
#include <board.h>
#include <pcb_textbox.h>
#include <pcbplot.h>
#include <pcb_plot_params.h>
#include <plotters/plotter_gerber.h>
#include <lset.h>
#include <wx/filename.h>
#include <vector>

Go to the source code of this file.

Classes

class  RECORDING_GERBER_PLOTTER
 
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)
 
 BOOST_AUTO_TEST_CASE (EmptyKnockoutPlotsTheBox)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/12]

BOOST_AUTO_TEST_CASE ( CardinalRotationsRoundTrip )

◆ BOOST_AUTO_TEST_CASE() [2/12]

◆ BOOST_AUTO_TEST_CASE() [3/12]

BOOST_AUTO_TEST_CASE ( GetMinSizeAllowsWidthReduction )

Definition at line 164 of file test_pcb_textbox.cpp.

References BOOST_CHECK_EQUAL(), and minSize.

◆ BOOST_AUTO_TEST_CASE() [4/12]

BOOST_AUTO_TEST_CASE ( GetMinSizeEmptyText )

Definition at line 129 of file test_pcb_textbox.cpp.

References BOOST_CHECK_EQUAL(), and minSize.

◆ BOOST_AUTO_TEST_CASE() [5/12]

BOOST_AUTO_TEST_CASE ( GetMinSizeGrowsWithMoreText )

Definition at line 79 of file test_pcb_textbox.cpp.

References VECTOR2< T >::y.

◆ BOOST_AUTO_TEST_CASE() [6/12]

BOOST_AUTO_TEST_CASE ( GetMinSizeHeightAtLeastTextHeight )

Definition at line 118 of file test_pcb_textbox.cpp.

References minSize.

◆ BOOST_AUTO_TEST_CASE() [7/12]

BOOST_AUTO_TEST_CASE ( GetMinSizeIncludesMargins )

Definition at line 92 of file test_pcb_textbox.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [8/12]

BOOST_AUTO_TEST_CASE ( GetMinSizeReturnsHeightOnly )

Definition at line 70 of file test_pcb_textbox.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [9/12]

BOOST_AUTO_TEST_CASE ( GetMinSizeRotated90 )

Definition at line 143 of file test_pcb_textbox.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [10/12]

BOOST_AUTO_TEST_CASE ( NonCardinalRotationDoesNotCrash )

◆ BOOST_AUTO_TEST_CASE() [11/12]

BOOST_AUTO_TEST_CASE ( NonCardinalRotationKeepsLibShapeRectangle )

Definition at line 240 of file test_pcb_textbox.cpp.

References DEGREES_T, and RECTANGLE.

◆ BOOST_AUTO_TEST_CASE() [12/12]

BOOST_AUTO_TEST_CASE ( ThirtyDegreeIncrementsToCardinalKeepsVisualRotated )