|
KiCad PCB EDA Suite
|
#include <base_units.h>#include <line_ending.h>#include <qa_utils/wx_utils/unit_test_utils.h>#include <richio.h>#include <string>#include <vector>Go to the source code of this file.
Functions | |
| static std::string | formatLineEnding (LINE_ENDING_STYLE aStyle, int aLength=0, int aWidth=0) |
| static void | checkDoesNotWriteFill (const std::string &aFormatted) |
| static void | checkVectorEqual (const VECTOR2I &aActual, const VECTOR2I &aExpected) |
| static void | checkEffectiveSize (int aLength, int aWidth, const VECTOR2I &aExpected) |
| static void | checkShortenDepth (LINE_ENDING_STYLE aStyle, int aLength, int aWidth, int aStrokeWidth, int aExpected) |
| static void | checkCurveOrientationDepth (LINE_ENDING_STYLE aStyle, int aLength, int aWidth, int aStrokeWidth, int aExpected) |
| BOOST_AUTO_TEST_CASE (FormatDoesNotWriteFill) | |
| BOOST_AUTO_TEST_CASE (FormatPreservesExplicitEqualLengthWidth) | |
| BOOST_AUTO_TEST_CASE (GetEffectiveSizeUsesConfiguredAndAutoAxes) | |
| BOOST_AUTO_TEST_CASE (GetShapesProducesStyleGeometry) | |
| BOOST_AUTO_TEST_CASE (OpenArrowOrientationUsesVisualLength) | |
| BOOST_AUTO_TEST_CASE (GetShortenDepthUsesEndpointPolicy) | |
| BOOST_AUTO_TEST_CASE | ( | FormatDoesNotWriteFill | ) |
Definition at line 93 of file test_line_ending.cpp.
References ARROW, ARROW_OPEN, BOOST_CHECK_EQUAL(), checkDoesNotWriteFill(), CIRCLE, circle(), formatLineEnding(), SQUARE, and square().
| BOOST_AUTO_TEST_CASE | ( | FormatPreservesExplicitEqualLengthWidth | ) |
Definition at line 112 of file test_line_ending.cpp.
References ARROW, BOOST_CHECK_EQUAL(), formatLineEnding(), pcbIUScale, and SQUARE.
| BOOST_AUTO_TEST_CASE | ( | GetEffectiveSizeUsesConfiguredAndAutoAxes | ) |
Definition at line 129 of file test_line_ending.cpp.
References checkEffectiveSize().
| BOOST_AUTO_TEST_CASE | ( | GetShapesProducesStyleGeometry | ) |
Definition at line 138 of file test_line_ending.cpp.
References ARROW, ARROW_OPEN, checkVectorEqual(), CIRCLE, circle(), DEGREES_T, LINE_ENDING::GetShapes(), NONE, SQUARE, and square().
| BOOST_AUTO_TEST_CASE | ( | GetShortenDepthUsesEndpointPolicy | ) |
Definition at line 194 of file test_line_ending.cpp.
References ARROW, ARROW_OPEN, checkShortenDepth(), CIRCLE, NONE, and SQUARE.
| BOOST_AUTO_TEST_CASE | ( | OpenArrowOrientationUsesVisualLength | ) |
Definition at line 180 of file test_line_ending.cpp.
References ARROW, ARROW_OPEN, checkCurveOrientationDepth(), checkShortenDepth(), CIRCLE, NONE, and SQUARE.
|
static |
Definition at line 82 of file test_line_ending.cpp.
References BOOST_CHECK_EQUAL(), and LINE_ENDING::GetCurveOrientationDepth().
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 48 of file test_line_ending.cpp.
References BOOST_CHECK_EQUAL().
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 61 of file test_line_ending.cpp.
References ARROW, checkVectorEqual(), and LINE_ENDING::GetEffectiveSize().
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 71 of file test_line_ending.cpp.
References BOOST_CHECK_EQUAL(), and LINE_ENDING::GetShortenDepth().
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
Definition at line 54 of file test_line_ending.cpp.
References BOOST_CHECK_EQUAL(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by BOOST_AUTO_TEST_CASE(), and checkEffectiveSize().
|
static |
Definition at line 36 of file test_line_ending.cpp.
References LINE_ENDING::Format(), formatLineEnding(), STRING_FORMATTER::GetString(), and pcbIUScale.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and formatLineEnding().