KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <boost/test/data/test_case.hpp>
#include <geometry/half_line.h>
#include <geometry/shape_utils.h>
#include "geom_test_utils.h"
Go to the source code of this file.
Classes | |
struct | HalfLineBoxClipCase |
struct | HalfLineHalfLineIntersectionCase |
struct | HalfLineContainsPointCase |
Functions | |
BOOST_TEST (contains==c.ExpectedContains) | |
BOOST_REQUIRE (intersection.has_value()==c.ExpectedIntersection.has_value()) | |
if (intersection) | |
BOOST_REQUIRE (clipped.has_value()==c.ExpectedClippedSeg.has_value()) | |
if (clipped) | |
BOOST_AUTO_TEST_SUITE_END () | |
Variables | |
const std::vector< HalfLineContainsPointCase > | Contains_cases |
const std::vector< HalfLineHalfLineIntersectionCase > | Intersect_cases |
const std::vector< HalfLineBoxClipCase > | ClipToBox_cases |
BOOST_AUTO_TEST_SUITE_END | ( | ) |
BOOST_REQUIRE | ( | clipped. | has_value() = =c.ExpectedClippedSeg.has_value() | ) |
BOOST_REQUIRE | ( | intersection. | has_value() = =c.ExpectedIntersection.has_value() | ) |
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), CONNECTION_GRAPH::boost_test_update_generic_connectivity, CheckArc(), TEST_NETLIST_EXPORTER_KICAD_FIXTURE::CompareNetlists(), TEST_NETLIST_EXPORTER_SPICE_FIXTURE::CompareNetlists(), PREDEF_TIMESTAMPER::GetTimestamp(), KI_TEST::LoadAndTestBoardFile(), KI_TEST::LoadAndTestFootprintFile(), KI_TEST::RequireBoardItemWithTypeAndId(), TEST_BITMAP_BASE_FIXTURE::TEST_BITMAP_BASE_FIXTURE(), testEnums(), and TEST_NETLIST_EXPORTER_FIXTURE< Exporter >::WriteNetlist().
BOOST_TEST | ( | contains | = =c.ExpectedContains | ) |
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), CheckArcGeom(), and if().
if | ( | clipped | ) |
Definition at line 167 of file test_half_line.cpp.
References BOOST_CHECK_PREDICATE(), and GEOM_TEST::SegmentsHaveSameEndPoints().
if | ( | intersection | ) |
Definition at line 126 of file test_half_line.cpp.
References BOOST_TEST().
const std::vector<HalfLineBoxClipCase> ClipToBox_cases |
Definition at line 133 of file test_half_line.cpp.
const std::vector<HalfLineContainsPointCase> Contains_cases |
Definition at line 56 of file test_half_line.cpp.
const std::vector<HalfLineHalfLineIntersectionCase> Intersect_cases |
Definition at line 104 of file test_half_line.cpp.