|
KiCad PCB EDA Suite
|
#include <memory>#include <boost/test/unit_test.hpp>#include <api/api_handler_sch.h>#include <api/api_sch_utils.h>#include <api/api_task_scheduler.h>#include <api/api_utils.h>#include <api/common/commands/editor_commands.pb.h>#include <api/common/envelope.pb.h>#include <api/common/tasks.pb.h>#include <api/headless_sch_context.h>#include <api/schematic/schematic_tasks.pb.h>#include <api/schematic/schematic_types.pb.h>#include <schematic_utils/schematic_file_util.h>#include <settings/settings_manager.h>#include <schematic.h>#include <advanced_config.h>#include <connection_graph.h>#include <sch_label.h>#include <sch_line.h>#include <sch_screen.h>#include <sch_sheet.h>#include <set>#include <scoped_set_reset.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (RevertDocumentRejectedWithOpenCommit) | |
| BOOST_AUTO_TEST_CASE (RejectedSheetCreateLeavesNoChanges) | |
| BOOST_AUTO_TEST_CASE (RejectedSheetUpdateLeavesNoChanges) | |
| BOOST_AUTO_TEST_CASE (SheetBatchKeepsValidItems) | |
| BOOST_AUTO_TEST_CASE (CustomPropertyCannotDuplicateSystemProperty) | |
| BOOST_AUTO_TEST_CASE (SymbolFieldTakesPrecedenceOverCustomProperty) | |
| BOOST_AUTO_TEST_CASE (NetlistRebuildsSelectedConnectivityAndFiltersNativeItems) | |
| BOOST_AUTO_TEST_CASE (NetlistPreservesNativeHierarchyMembershipAndExcludesBuses) | |
| BOOST_AUTO_TEST_CASE (NetlistReportsRebuildFailureAndAllowsRetry) | |
| BOOST_AUTO_TEST_CASE (StartErcTaskCompletesWithResults) | |
| BOOST_AUTO_TEST_CASE (StartErcTaskWhileRunningIsRejected) | |
| BOOST_AUTO_TEST_CASE (GetErcTaskResultRejectsUnknownToken) | |
| BOOST_AUTO_TEST_CASE | ( | CustomPropertyCannotDuplicateSystemProperty | ) |
Definition at line 302 of file test_sch_api_handler.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOOST_REQUIRE_EQUAL(), API_HANDLER::Handle(), and result.
| BOOST_AUTO_TEST_CASE | ( | GetErcTaskResultRejectsUnknownToken | ) |
Definition at line 702 of file test_sch_api_handler.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), API_HANDLER::Handle(), and result.
| BOOST_AUTO_TEST_CASE | ( | NetlistPreservesNativeHierarchyMembershipAndExcludesBuses | ) |
Definition at line 456 of file test_sch_api_handler.cpp.
References actual, KIID::AsStdString(), BOOST_CHECK(), BOOST_REQUIRE(), BOOST_TEST_CONTEXT(), expected, ADVANCED_CFG::GetCfg(), SCH_LINE::GetStartPoint(), API_HANDLER::Handle(), EDA_ITEM::m_Uuid, model, SCH_LINE::Move(), path, result, SCH_LABEL_T, and SCH_LINE_T.
| BOOST_AUTO_TEST_CASE | ( | NetlistRebuildsSelectedConnectivityAndFiltersNativeItems | ) |
Definition at line 385 of file test_sch_api_handler.cpp.
References KIID::AsStdString(), BOOST_CHECK(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOOST_TEST_CONTEXT(), ADVANCED_CFG::GetCfg(), API_HANDLER::Handle(), EDA_ITEM::m_Uuid, model, name, path, result, SCH_LABEL_T, EDA_TEXT::SetText(), and ToStdString().
| BOOST_AUTO_TEST_CASE | ( | NetlistReportsRebuildFailureAndAllowsRetry | ) |
Definition at line 564 of file test_sch_api_handler.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), ADVANCED_CFG::GetCfg(), SCH_LABEL_BASE::GetShownText(), API_HANDLER::Handle(), model, path, result, SCH_LABEL::SCH_LABEL(), SCH_LABEL_T, and source.
| BOOST_AUTO_TEST_CASE | ( | RejectedSheetCreateLeavesNoChanges | ) |
Definition at line 155 of file test_sch_api_handler.cpp.
References BOOST_CHECK(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOOST_REQUIRE_EQUAL(), API_HANDLER::Handle(), model, and result.
| BOOST_AUTO_TEST_CASE | ( | RejectedSheetUpdateLeavesNoChanges | ) |
Definition at line 192 of file test_sch_api_handler.cpp.
References BOOST_CHECK(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOOST_REQUIRE_EQUAL(), SCH_SHEET::GetName(), SCH_SHEET_PATH::GetPageNumber(), API_HANDLER::Handle(), SCH_SHEET_PATH::Last(), model, PackSheet(), SCH_SHEET_PATH::pop_back(), and result.
| BOOST_AUTO_TEST_CASE | ( | RevertDocumentRejectedWithOpenCommit | ) |
Definition at line 137 of file test_sch_api_handler.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), API_HANDLER::Handle(), and result.
| BOOST_AUTO_TEST_CASE | ( | SheetBatchKeepsValidItems | ) |
Definition at line 234 of file test_sch_api_handler.cpp.
References BOOST_CHECK(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOOST_REQUIRE_EQUAL(), API_HANDLER::Handle(), model, PackSheet(), and result.
| BOOST_AUTO_TEST_CASE | ( | StartErcTaskCompletesWithResults | ) |
Definition at line 614 of file test_sch_api_handler.cpp.
References BOOST_CHECK(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SCH_SCREENS::GetFirst(), SCH_SCREENS::GetNext(), API_TASK_SCHEDULER::GetStatus(), API_HANDLER::Handle(), API_TASK_SCHEDULER::Instance(), API_TASK_SCHEDULER::Pump(), result, and SCH_MARKER_T.
| BOOST_AUTO_TEST_CASE | ( | StartErcTaskWhileRunningIsRejected | ) |
Definition at line 668 of file test_sch_api_handler.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), API_HANDLER::Handle(), API_TASK_SCHEDULER::Instance(), and API_TASK_SCHEDULER::Pump().
| BOOST_AUTO_TEST_CASE | ( | SymbolFieldTakesPrecedenceOverCustomProperty | ) |
Definition at line 340 of file test_sch_api_handler.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOOST_REQUIRE_EQUAL(), API_HANDLER::Handle(), and result.