|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <pcbnew_utils/board_test_utils.h>#include <pcbnew_utils/board_file_utils.h>#include <diff_merge/fp_lib_differ.h>#include <diff_merge/kicad_diff_types.h>#include <diff_merge/pcb_geometry_extractor.h>#include <footprint.h>#include <pad.h>#include <pcb_io/kicad_sexpr/pcb_io_kicad_sexpr.h>#include <pcb_shape.h>#include <json_common.h>#include <wx/filename.h>Go to the source code of this file.
Functions | |
| static wxString | getFixturePath () |
| BOOST_AUTO_TEST_CASE (IdenticalLibrariesDiffEmpty) | |
| BOOST_AUTO_TEST_CASE (FootprintRemovedShowsAsRemoved) | |
| BOOST_AUTO_TEST_CASE (FootprintChangesCarryDrawableBBoxes) | |
| BOOST_AUTO_TEST_CASE (ExtractFootprintGeometryProducesLayeredContext) | |
| BOOST_AUTO_TEST_CASE (DiffJsonRoundTrip) | |
| BOOST_AUTO_TEST_CASE (LibraryItemKiidPathIsDeterministicForSameName) | |
| BOOST_AUTO_TEST_CASE (LibraryItemKiidPathDiffersForDifferentNames) | |
| BOOST_AUTO_TEST_CASE (MultipleFootprintRemovalsAllEmitChanges) | |
| BOOST_AUTO_TEST_CASE (OutputOrderingIsDeterministicAcrossRuns) | |
| BOOST_AUTO_TEST_CASE (FootprintElementsFindTheEditedPad) | |
| BOOST_AUTO_TEST_CASE (DiffCarriesTheEditedPad) | |
| BOOST_AUTO_TEST_CASE (FootprintElementsFindAMovedPolygonCorner) | |
| BOOST_AUTO_TEST_CASE | ( | DiffCarriesTheEditedPad | ) |
Definition at line 234 of file test_fp_lib_differ.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), BOOST_REQUIRE_EQUAL(), KICAD_DIFF::FP_LIB_DIFFER::Diff(), getFixturePath(), KICAD_DIFF::FP_LIB_DIFFER::LoadLibrary(), pcbIUScale, and result.
| BOOST_AUTO_TEST_CASE | ( | DiffJsonRoundTrip | ) |
Definition at line 122 of file test_fp_lib_differ.cpp.
References BOOST_CHECK_EQUAL(), KICAD_DIFF::DOCUMENT_DIFF::changes, KICAD_DIFF::FP_LIB_DIFFER::Diff(), KICAD_DIFF::DOCUMENT_DIFF::FromJson(), getFixturePath(), KICAD_DIFF::FP_LIB_DIFFER::LoadLibrary(), and result.
| BOOST_AUTO_TEST_CASE | ( | ExtractFootprintGeometryProducesLayeredContext | ) |
Definition at line 109 of file test_fp_lib_differ.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), KICAD_DIFF::DOCUMENT_GEOMETRY::Empty(), KICAD_DIFF::ExtractFootprintGeometry(), KICAD_DIFF::GeometryLayerSet(), getFixturePath(), and KICAD_DIFF::FP_LIB_DIFFER::LoadLibrary().
| BOOST_AUTO_TEST_CASE | ( | FootprintChangesCarryDrawableBBoxes | ) |
Definition at line 90 of file test_fp_lib_differ.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), BOOST_REQUIRE_EQUAL(), KICAD_DIFF::FP_LIB_DIFFER::Diff(), getFixturePath(), KICAD_DIFF::FP_LIB_DIFFER::LoadLibrary(), KICAD_DIFF::MODIFIED, FOOTPRINT::Move(), and result.
| BOOST_AUTO_TEST_CASE | ( | FootprintElementsFindAMovedPolygonCorner | ) |
Definition at line 251 of file test_fp_lib_differ.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), BOOST_REQUIRE_EQUAL(), KICAD_DIFF::DiffFootprintElements(), KI_TEST::GetPcbnewTestDataDir(), EDA_SHAPE::GetShape(), PCB_IO_KICAD_SEXPR::ImportFootprint(), KICAD_DIFF::MODIFIED, name, path, PCB_SHAPE_T, POLY, and polygon().
| BOOST_AUTO_TEST_CASE | ( | FootprintElementsFindTheEditedPad | ) |
Definition at line 215 of file test_fp_lib_differ.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), BOOST_REQUIRE_EQUAL(), KICAD_DIFF::DiffFootprintElements(), getFixturePath(), KICAD_DIFF::FP_LIB_DIFFER::LoadLibrary(), KICAD_DIFF::MODIFIED, pad, and pcbIUScale.
| BOOST_AUTO_TEST_CASE | ( | FootprintRemovedShowsAsRemoved | ) |
Definition at line 74 of file test_fp_lib_differ.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), BOOST_REQUIRE_EQUAL(), KICAD_DIFF::FP_LIB_DIFFER::Diff(), getFixturePath(), KICAD_DIFF::FP_LIB_DIFFER::LoadLibrary(), KICAD_DIFF::REMOVED, and result.
| BOOST_AUTO_TEST_CASE | ( | IdenticalLibrariesDiffEmpty | ) |
Definition at line 59 of file test_fp_lib_differ.cpp.
References BOOST_CHECK(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KICAD_DIFF::FP_LIB_DIFFER::Diff(), getFixturePath(), KICAD_DIFF::FP_LIB_DIFFER::LoadLibrary(), and result.
| BOOST_AUTO_TEST_CASE | ( | LibraryItemKiidPathDiffersForDifferentNames | ) |
Definition at line 153 of file test_fp_lib_differ.cpp.
References BOOST_CHECK(), and KICAD_DIFF::LibraryItemKiidPath().
| BOOST_AUTO_TEST_CASE | ( | LibraryItemKiidPathIsDeterministicForSameName | ) |
Definition at line 142 of file test_fp_lib_differ.cpp.
References BOOST_CHECK(), BOOST_REQUIRE_EQUAL(), and KICAD_DIFF::LibraryItemKiidPath().
| BOOST_AUTO_TEST_CASE | ( | MultipleFootprintRemovalsAllEmitChanges | ) |
Definition at line 164 of file test_fp_lib_differ.cpp.
References BOOST_CHECK(), BOOST_CHECK_EQUAL(), KICAD_DIFF::FP_LIB_DIFFER::Diff(), getFixturePath(), KICAD_DIFF::ITEM_CHANGE::kind, KICAD_DIFF::FP_LIB_DIFFER::LoadLibrary(), KICAD_DIFF::REMOVED, and result.
| BOOST_AUTO_TEST_CASE | ( | OutputOrderingIsDeterministicAcrossRuns | ) |
Definition at line 193 of file test_fp_lib_differ.cpp.
References BOOST_CHECK_EQUAL(), KICAD_DIFF::FP_LIB_DIFFER::Diff(), getFixturePath(), KICAD_DIFF::FP_LIB_DIFFER::LoadLibrary(), and KICAD_DIFF::DOCUMENT_DIFF::ToJson().
|
static |
Definition at line 48 of file test_fp_lib_differ.cpp.
References getFixturePath(), and KI_TEST::GetPcbnewTestDataDir().
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(), and BOOST_AUTO_TEST_CASE().