|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <qa_utils/wx_utils/unit_test_utils.h>#include <lib_symbol.h>#include <sch_field.h>#include <sch_io/kicad_sexpr/sch_io_kicad_sexpr.h>#include <sch_line.h>#include <sch_shape.h>#include <line_ending.h>#include <stroke_params.h>#include <wx/filename.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (SymbolLibraryLineEndingsRoundTrip) | |
| BOOST_AUTO_TEST_CASE (GraphicLineBoundingBoxIncludesLineEndings) | |
| BOOST_AUTO_TEST_CASE (WireBoundingBoxIgnoresLineEndingState) | |
| BOOST_AUTO_TEST_CASE (GraphicLineHitTestIncludesLineEnding) | |
| BOOST_AUTO_TEST_CASE (WireHitTestIgnoresLineEndingState) | |
| BOOST_AUTO_TEST_CASE (ShortGraphicLineHitTestIncludesConsumedBodyEnding) | |
| BOOST_AUTO_TEST_CASE | ( | GraphicLineBoundingBoxIncludesLineEndings | ) |
Definition at line 162 of file test_sch_line_ending_io.cpp.
References BOX2< Vec >::GetBottom(), SCH_LINE::GetBoundingBox(), BOX2< Vec >::GetRight(), BOX2< Vec >::GetTop(), LAYER_NOTES, SCH_LINE::SetEndEndingLength(), SCH_LINE::SetEndEndingStyle(), SCH_LINE::SetEndEndingWidth(), SCH_LINE::SetEndPoint(), SCH_LINE::SetLineWidth(), and SQUARE.
| BOOST_AUTO_TEST_CASE | ( | GraphicLineHitTestIncludesLineEnding | ) |
Definition at line 194 of file test_sch_line_ending_io.cpp.
References SCH_LINE::HitTest(), LAYER_NOTES, SCH_LINE::SetEndEndingLength(), SCH_LINE::SetEndEndingStyle(), SCH_LINE::SetEndEndingWidth(), SCH_LINE::SetEndPoint(), SCH_LINE::SetLineWidth(), and SQUARE.
| BOOST_AUTO_TEST_CASE | ( | ShortGraphicLineHitTestIncludesConsumedBodyEnding | ) |
Definition at line 223 of file test_sch_line_ending_io.cpp.
References ARROW, SCH_LINE::HitTest(), LAYER_NOTES, SCH_LINE::SetEndEndingLength(), SCH_LINE::SetEndEndingStyle(), SCH_LINE::SetEndEndingWidth(), SCH_LINE::SetEndPoint(), and SCH_LINE::SetLineWidth().
| BOOST_AUTO_TEST_CASE | ( | SymbolLibraryLineEndingsRoundTrip | ) |
Definition at line 107 of file test_sch_line_ending_io.cpp.
References LIB_SYMBOL::AddDrawItem(), ARC, ARROW, ARROW_OPEN, BEZIER, BOOST_REQUIRE(), SCH_IO_KICAD_SEXPR::CreateLibrary(), EDA_SHAPE::GetEndEnding(), LIB_SYMBOL::GetName(), LIB_SYMBOL::GetReferenceField(), EDA_SHAPE::GetStartEnding(), LIB_SYMBOL::GetValueField(), LAYER_DEVICE, SCH_IO_KICAD_SEXPR::LoadSymbol(), POLY, SCH_IO_KICAD_SEXPR::SaveLibrary(), SCH_IO_KICAD_SEXPR::SaveSymbol(), SCH_FIELD::SetText(), and SOLID.
| BOOST_AUTO_TEST_CASE | ( | WireBoundingBoxIgnoresLineEndingState | ) |
Definition at line 179 of file test_sch_line_ending_io.cpp.
References SCH_LINE::GetBoundingBox(), BOX2< Vec >::GetRight(), LAYER_WIRE, SCH_LINE::SetEndEndingLength(), SCH_LINE::SetEndEndingStyle(), SCH_LINE::SetEndEndingWidth(), SCH_LINE::SetEndPoint(), SCH_LINE::SetLineWidth(), and SQUARE.
| BOOST_AUTO_TEST_CASE | ( | WireHitTestIgnoresLineEndingState | ) |
Definition at line 210 of file test_sch_line_ending_io.cpp.
References SCH_LINE::HitTest(), LAYER_WIRE, SCH_LINE::SetEndEndingLength(), SCH_LINE::SetEndEndingStyle(), SCH_LINE::SetEndEndingWidth(), SCH_LINE::SetEndPoint(), SCH_LINE::SetLineWidth(), and SQUARE.