|
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 <nlohmann/json.hpp>#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 | ( | DiffJsonRoundTrip | ) |
Definition at line 119 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 106 of file test_fp_lib_differ.cpp.
References 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 87 of file test_fp_lib_differ.cpp.
References BOOST_REQUIRE(), KICAD_DIFF::FP_LIB_DIFFER::Diff(), getFixturePath(), KICAD_DIFF::FP_LIB_DIFFER::LoadLibrary(), KICAD_DIFF::MODIFIED, FOOTPRINT::Move(), and result.
| BOOST_AUTO_TEST_CASE | ( | FootprintRemovedShowsAsRemoved | ) |
Definition at line 71 of file test_fp_lib_differ.cpp.
References BOOST_REQUIRE(), 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 56 of file test_fp_lib_differ.cpp.
References 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 150 of file test_fp_lib_differ.cpp.
References KICAD_DIFF::LibraryItemKiidPath().
| BOOST_AUTO_TEST_CASE | ( | LibraryItemKiidPathIsDeterministicForSameName | ) |
Definition at line 139 of file test_fp_lib_differ.cpp.
References KICAD_DIFF::LibraryItemKiidPath().
| BOOST_AUTO_TEST_CASE | ( | MultipleFootprintRemovalsAllEmitChanges | ) |
Definition at line 161 of file test_fp_lib_differ.cpp.
References 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 190 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 45 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(), and BOOST_AUTO_TEST_CASE().