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

Go to the source code of this file.

Classes

struct  IteratorFixture
 Fixture for the Iterator test suite. More...
 

Functions

 BOOST_AUTO_TEST_CASE (VertexIterator)
 Declares the IteratorFixture as the boost test suite fixture.
 
 BOOST_AUTO_TEST_CASE (SegmentIterator)
 Checks whether the iteration on the segments of a common polygon is correct.
 
 BOOST_AUTO_TEST_CASE (EmptyPolygon)
 Checks whether the iteration on the segments of an empty polygon is correct.
 
 BOOST_AUTO_TEST_CASE (UniqueVertex)
 Checks whether the iteration on the segments of a polygon with one vertex is correct.
 
 BOOST_AUTO_TEST_CASE (TotalVertices)
 Checks whether the counting of the total number of vertices is correct.
 
 BOOST_AUTO_TEST_CASE (RemoveNullSegments)
 Checks whether the removal of null segments, wherever they are placed, is correct.
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/6]

BOOST_AUTO_TEST_CASE ( EmptyPolygon  )

Checks whether the iteration on the segments of an empty polygon is correct.

Definition at line 132 of file test_shape_poly_set_iterator.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/6]

BOOST_AUTO_TEST_CASE ( RemoveNullSegments  )

Checks whether the removal of null segments, wherever they are placed, is correct.

Definition at line 173 of file test_shape_poly_set_iterator.cpp.

◆ BOOST_AUTO_TEST_CASE() [3/6]

BOOST_AUTO_TEST_CASE ( SegmentIterator  )

Checks whether the iteration on the segments of a common polygon is correct.

Definition at line 113 of file test_shape_poly_set_iterator.cpp.

References SEG::A, and SEG::B.

◆ BOOST_AUTO_TEST_CASE() [4/6]

BOOST_AUTO_TEST_CASE ( TotalVertices  )

Checks whether the counting of the total number of vertices is correct.

Definition at line 162 of file test_shape_poly_set_iterator.cpp.

◆ BOOST_AUTO_TEST_CASE() [5/6]

BOOST_AUTO_TEST_CASE ( UniqueVertex  )

Checks whether the iteration on the segments of a polygon with one vertex is correct.

Definition at line 145 of file test_shape_poly_set_iterator.cpp.

References SEG::A, and SEG::B.

◆ BOOST_AUTO_TEST_CASE() [6/6]

BOOST_AUTO_TEST_CASE ( VertexIterator  )

Declares the IteratorFixture as the boost test suite fixture.

Checks whether the iteration on the vertices of a common polygon is correct.

Definition at line 98 of file test_shape_poly_set_iterator.cpp.