|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <diff_merge/project_file_patch.h>#include <diff_merge/diff_doc_kind.h>#include <diff_merge/kicad_diff_types.h>#include <json_common.h>#include <wx/file.h>#include <wx/filename.h>#include <wx/stdpaths.h>#include <wx/datetime.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (DocPropPointerMappingDrcSeverities) | |
| BOOST_AUTO_TEST_CASE (DocPropPointerMappingErcSeverities) | |
| BOOST_AUTO_TEST_CASE (DocPropPointerMappingDrawingSheet) | |
| BOOST_AUTO_TEST_CASE (DocPropPointerMappingDrawingSheetSchematic) | |
| BOOST_AUTO_TEST_CASE (DocPropPointerMappingNetClasses) | |
| BOOST_AUTO_TEST_CASE (DocPropPointerMappingCustomRulesIsAbsent) | |
| BOOST_AUTO_TEST_CASE (DocPropPointerMappingFpLibTableIsAbsent) | |
| BOOST_AUTO_TEST_CASE (DocPropPointerMappingSymLibTableIsAbsent) | |
| BOOST_AUTO_TEST_CASE (ApplyPatchPreservesNonTargetFields) | |
| BOOST_AUTO_TEST_CASE (ApplyPatchNoOpWhenSourceMissingField) | |
| BOOST_AUTO_TEST_CASE (ApplyPatchUnmappedPropertyReturnsFalse) | |
| BOOST_AUTO_TEST_CASE (ApplyPatchNetClassesCopiesSubTree) | |
| BOOST_AUTO_TEST_CASE (ApplyPatchDrawingSheetSchematicDoesNotTouchPcbnew) | |
| BOOST_AUTO_TEST_CASE (ApplyPatchesNoExistingFileWritesSource) | |
| BOOST_AUTO_TEST_CASE (ApplyPatchesEmptyPropertySetDoesNotCreateOutput) | |
| BOOST_AUTO_TEST_CASE (ApplyPatchesPreservesExistingNonTargetFields) | |
| BOOST_AUTO_TEST_CASE (ApplyPatchesMissingRequestedSourceFieldFails) | |
| BOOST_AUTO_TEST_CASE (ApplyPatchRealisticProjectShapeIsSurgical) | |
| BOOST_AUTO_TEST_CASE | ( | ApplyPatchDrawingSheetSchematicDoesNotTouchPcbnew | ) |
Definition at line 179 of file test_project_file_patch.cpp.
References KICAD_DIFF::ApplyProjectFilePatch(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KICAD_DIFF::DOC_PROP_DRAWING_SHEET, and KICAD_DIFF::SCH.
| BOOST_AUTO_TEST_CASE | ( | ApplyPatchesEmptyPropertySetDoesNotCreateOutput | ) |
Definition at line 229 of file test_project_file_patch.cpp.
References KICAD_DIFF::ApplyProjectFilePatches(), and BOOST_REQUIRE().
| BOOST_AUTO_TEST_CASE | ( | ApplyPatchesMissingRequestedSourceFieldFails | ) |
Definition at line 295 of file test_project_file_patch.cpp.
References KICAD_DIFF::ApplyProjectFilePatches(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), and KICAD_DIFF::DOC_PROP_DRC_SEVERITIES.
| BOOST_AUTO_TEST_CASE | ( | ApplyPatchesNoExistingFileWritesSource | ) |
Definition at line 200 of file test_project_file_patch.cpp.
References KICAD_DIFF::ApplyProjectFilePatches(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), and KICAD_DIFF::DOC_PROP_DRC_SEVERITIES.
| BOOST_AUTO_TEST_CASE | ( | ApplyPatchesPreservesExistingNonTargetFields | ) |
Definition at line 255 of file test_project_file_patch.cpp.
References KICAD_DIFF::ApplyProjectFilePatches(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), and KICAD_DIFF::DOC_PROP_DRC_SEVERITIES.
| BOOST_AUTO_TEST_CASE | ( | ApplyPatchNetClassesCopiesSubTree | ) |
Definition at line 157 of file test_project_file_patch.cpp.
References KICAD_DIFF::ApplyProjectFilePatch(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), and KICAD_DIFF::DOC_PROP_NET_CLASSES.
| BOOST_AUTO_TEST_CASE | ( | ApplyPatchNoOpWhenSourceMissingField | ) |
Definition at line 135 of file test_project_file_patch.cpp.
References KICAD_DIFF::ApplyProjectFilePatch(), BOOST_CHECK_EQUAL(), and KICAD_DIFF::DOC_PROP_DRC_SEVERITIES.
| BOOST_AUTO_TEST_CASE | ( | ApplyPatchPreservesNonTargetFields | ) |
Definition at line 109 of file test_project_file_patch.cpp.
References KICAD_DIFF::ApplyProjectFilePatch(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), and KICAD_DIFF::DOC_PROP_DRC_SEVERITIES.
| BOOST_AUTO_TEST_CASE | ( | ApplyPatchRealisticProjectShapeIsSurgical | ) |
Definition at line 333 of file test_project_file_patch.cpp.
References KICAD_DIFF::ApplyProjectFilePatch(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KICAD_DIFF::DOC_PROP_DRC_SEVERITIES, and dump().
| BOOST_AUTO_TEST_CASE | ( | ApplyPatchUnmappedPropertyReturnsFalse | ) |
Definition at line 147 of file test_project_file_patch.cpp.
References KICAD_DIFF::ApplyProjectFilePatch(), and KICAD_DIFF::DOC_PROP_CUSTOM_RULES.
| BOOST_AUTO_TEST_CASE | ( | DocPropPointerMappingCustomRulesIsAbsent | ) |
Definition at line 89 of file test_project_file_patch.cpp.
References KICAD_DIFF::DOC_PROP_CUSTOM_RULES, and KICAD_DIFF::DocPropJsonPointer().
| BOOST_AUTO_TEST_CASE | ( | DocPropPointerMappingDrawingSheet | ) |
Definition at line 62 of file test_project_file_patch.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KICAD_DIFF::DOC_PROP_DRAWING_SHEET, and KICAD_DIFF::DocPropJsonPointer().
| BOOST_AUTO_TEST_CASE | ( | DocPropPointerMappingDrawingSheetSchematic | ) |
Definition at line 70 of file test_project_file_patch.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KICAD_DIFF::DOC_PROP_DRAWING_SHEET, KICAD_DIFF::DocPropJsonPointer(), and KICAD_DIFF::SCH.
| BOOST_AUTO_TEST_CASE | ( | DocPropPointerMappingDrcSeverities | ) |
Definition at line 46 of file test_project_file_patch.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KICAD_DIFF::DOC_PROP_DRC_SEVERITIES, and KICAD_DIFF::DocPropJsonPointer().
| BOOST_AUTO_TEST_CASE | ( | DocPropPointerMappingErcSeverities | ) |
Definition at line 54 of file test_project_file_patch.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KICAD_DIFF::DOC_PROP_ERC_SEVERITIES, and KICAD_DIFF::DocPropJsonPointer().
| BOOST_AUTO_TEST_CASE | ( | DocPropPointerMappingFpLibTableIsAbsent | ) |
Definition at line 95 of file test_project_file_patch.cpp.
References KICAD_DIFF::DOC_PROP_FP_LIB_TABLE, and KICAD_DIFF::DocPropJsonPointer().
| BOOST_AUTO_TEST_CASE | ( | DocPropPointerMappingNetClasses | ) |
Definition at line 78 of file test_project_file_patch.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KICAD_DIFF::DOC_PROP_NET_CLASSES, and KICAD_DIFF::DocPropJsonPointer().
| BOOST_AUTO_TEST_CASE | ( | DocPropPointerMappingSymLibTableIsAbsent | ) |
Definition at line 101 of file test_project_file_patch.cpp.
References KICAD_DIFF::DOC_PROP_SYM_LIB_TABLE, and KICAD_DIFF::DocPropJsonPointer().