|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <pcbnew_utils/board_test_utils.h>#include <diff_merge/pcb_differ.h>#include <diff_merge/kicad_diff_types.h>#include <diff_merge/kicad_merge_engine.h>#include "../../../pcbnew/diff_merge/pcb_merge_applier.h"#include <board.h>#include <board_design_settings.h>#include <project/net_settings.h>#include <netclass.h>#include <settings/settings_manager.h>Go to the source code of this file.
Classes | |
| struct | NET_CLASSES_DIFF_MERGE_FIXTURE |
| Fixture: three independent loads of the same canonical board, used to play the role of ancestor / ours / theirs in 3-way merge tests. More... | |
Functions | |
| static const ITEM_CHANGE * | findDocLevelChange (const DOCUMENT_DIFF &aDiff) |
| Find the synthetic doc-level ITEM_CHANGE (empty KIID_PATH) in a diff result, returning nullptr if none was emitted. | |
| static const PROPERTY_DELTA * | findProperty (const ITEM_CHANGE &aChange, const wxString &aName) |
| BOOST_AUTO_TEST_CASE (NoChangeEmitsNoNetClassesDelta) | |
| BOOST_AUTO_TEST_CASE (DefaultClearanceEditEmitsDelta) | |
| BOOST_AUTO_TEST_CASE (NewNamedNetclassEmitsDelta) | |
| BOOST_AUTO_TEST_CASE (ApplierTakeOursCopiesWithoutAliasing) | |
| BOOST_AUTO_TEST_CASE (ApplierTakeTheirsCopiesTheirsSettings) | |
| BOOST_AUTO_TEST_CASE | ( | ApplierTakeOursCopiesWithoutAliasing | ) |
Definition at line 164 of file test_net_classes_diff_merge.cpp.
References KICAD_DIFF::PCB_MERGE_APPLIER::Apply(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KICAD_DIFF::PCB_DIFFER::Diff(), KICAD_DIFF::PCB_MERGE_APPLIER::GetReport(), KICAD_DIFF::KICAD_MERGE_ENGINE::Plan(), and KICAD_DIFF::PCB_MERGE_APPLIER::REPORT::projectFileTouched.
| BOOST_AUTO_TEST_CASE | ( | ApplierTakeTheirsCopiesTheirsSettings | ) |
Definition at line 205 of file test_net_classes_diff_merge.cpp.
References KICAD_DIFF::PCB_MERGE_APPLIER::Apply(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KICAD_DIFF::PCB_DIFFER::Diff(), KICAD_DIFF::PCB_MERGE_APPLIER::GetReport(), KICAD_DIFF::KICAD_MERGE_ENGINE::Plan(), and KICAD_DIFF::PCB_MERGE_APPLIER::REPORT::projectFileTouched.
| BOOST_AUTO_TEST_CASE | ( | DefaultClearanceEditEmitsDelta | ) |
Definition at line 119 of file test_net_classes_diff_merge.cpp.
References BOOST_REQUIRE(), delta, KICAD_DIFF::PCB_DIFFER::Diff(), KICAD_DIFF::DOC_PROP_NET_CLASSES, findDocLevelChange(), findProperty(), and result.
| BOOST_AUTO_TEST_CASE | ( | NewNamedNetclassEmitsDelta | ) |
Definition at line 137 of file test_net_classes_diff_merge.cpp.
References BOOST_REQUIRE(), delta, KICAD_DIFF::PCB_DIFFER::Diff(), KICAD_DIFF::DOC_PROP_NET_CLASSES, findDocLevelChange(), findProperty(), and result.
| BOOST_AUTO_TEST_CASE | ( | NoChangeEmitsNoNetClassesDelta | ) |
Definition at line 105 of file test_net_classes_diff_merge.cpp.
References BOOST_AUTO_TEST_CASE(), KICAD_DIFF::PCB_DIFFER::Diff(), KICAD_DIFF::DOC_PROP_NET_CLASSES, findDocLevelChange(), findProperty(), and result.
|
static |
Find the synthetic doc-level ITEM_CHANGE (empty KIID_PATH) in a diff result, returning nullptr if none was emitted.
Definition at line 76 of file test_net_classes_diff_merge.cpp.
References KICAD_DIFF::DOCUMENT_DIFF::changes, and KICAD_DIFF::ITEM_CHANGE::id.
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(), and BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 88 of file test_net_classes_diff_merge.cpp.
References KICAD_DIFF::PROPERTY_DELTA::name, and KICAD_DIFF::ITEM_CHANGE::properties.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().