KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_api_handler_pcb.cpp File Reference
#include <memory>
#include <vector>
#include <boost/test/unit_test.hpp>
#include <wx/filename.h>
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <pcbnew_utils/board_test_utils.h>
#include <board.h>
#include <connectivity/connectivity_data.h>
#include <drc/drc_exclusion.h>
#include <drc/drc_item.h>
#include <drc/drc_rule.h>
#include <pcb_marker.h>
#include <settings/settings_manager.h>
#include <zone.h>
#include <zone_filler.h>
#include <api/api_handler_pcb.h>
#include <api/api_task_scheduler.h>
#include <api/headless_pcb_context.h>
#include <api/board/board_commands.pb.h>
#include <api/board/board_rules.pb.h>
#include <api/board/board_tasks.pb.h>
#include <api/common/commands/editor_commands.pb.h>
#include <api/common/envelope.pb.h>
#include <api/common/tasks.pb.h>
#include <api/common/types/base_types.pb.h>
#include <jobs/job_export_pcb_odb.h>

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (OdbJobRequestMapsVariants)
 
 BOOST_AUTO_TEST_CASE (OdbJobRequestMapsExportOptions)
 
 BOOST_AUTO_TEST_CASE (RefillZonesSubset)
 
 BOOST_AUTO_TEST_CASE (RefillZonesSubsetRebuildsConnectivity)
 
 BOOST_AUTO_TEST_CASE (RefillZonesAllHeadless)
 
 BOOST_AUTO_TEST_CASE (RefillZonesUnknownIdRejected)
 
 BOOST_AUTO_TEST_CASE (RevertDocumentRejectedWithOpenCommit)
 
 BOOST_AUTO_TEST_CASE (RevertDocumentWithoutCommitPassesGuard)
 
 BOOST_AUTO_TEST_CASE (StartRefillZonesTaskCompletes)
 
 BOOST_AUTO_TEST_CASE (StartRefillZonesTaskUnknownIdRejected)
 
 BOOST_AUTO_TEST_CASE (StartRefillZonesTaskEmptyListFillsAllZones)
 
 BOOST_AUTO_TEST_CASE (StartDrcTaskCompletesWithResults)
 
 BOOST_AUTO_TEST_CASE (GetDrcTaskResultRejectsUnknownToken)
 
 BOOST_AUTO_TEST_CASE (StartDrcTaskRequiresFilledZones)
 
 BOOST_AUTO_TEST_CASE (GetDrcTaskResultOnFailedTaskReturnsInternalError)
 
 BOOST_AUTO_TEST_CASE (StartDrcTaskWithParityWithoutKiwayFails)
 
 BOOST_AUTO_TEST_CASE (StartTaskWhileAnotherIsRunningIsRejected)
 
 BOOST_AUTO_TEST_CASE (TaskQueriesAllowedDuringTask)
 
 BOOST_AUTO_TEST_CASE (DrcExclusionDropsMarkerReportFields)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/19]

◆ BOOST_AUTO_TEST_CASE() [2/19]

BOOST_AUTO_TEST_CASE ( GetDrcTaskResultOnFailedTaskReturnsInternalError )

◆ BOOST_AUTO_TEST_CASE() [3/19]

BOOST_AUTO_TEST_CASE ( GetDrcTaskResultRejectsUnknownToken )

◆ BOOST_AUTO_TEST_CASE() [4/19]

◆ BOOST_AUTO_TEST_CASE() [5/19]

◆ BOOST_AUTO_TEST_CASE() [6/19]

BOOST_AUTO_TEST_CASE ( RefillZonesAllHeadless )

Definition at line 330 of file test_api_handler_pcb.cpp.

References BOOST_CHECK_EQUAL(), API_HANDLER::Handle(), and result.

◆ BOOST_AUTO_TEST_CASE() [7/19]

BOOST_AUTO_TEST_CASE ( RefillZonesSubset )

◆ BOOST_AUTO_TEST_CASE() [8/19]

BOOST_AUTO_TEST_CASE ( RefillZonesSubsetRebuildsConnectivity )

Definition at line 296 of file test_api_handler_pcb.cpp.

References BOOST_REQUIRE_MESSAGE(), API_HANDLER::Handle(), and result.

◆ BOOST_AUTO_TEST_CASE() [9/19]

BOOST_AUTO_TEST_CASE ( RefillZonesUnknownIdRejected )

◆ BOOST_AUTO_TEST_CASE() [10/19]

BOOST_AUTO_TEST_CASE ( RevertDocumentRejectedWithOpenCommit )

◆ BOOST_AUTO_TEST_CASE() [11/19]

BOOST_AUTO_TEST_CASE ( RevertDocumentWithoutCommitPassesGuard )

◆ BOOST_AUTO_TEST_CASE() [12/19]

◆ BOOST_AUTO_TEST_CASE() [13/19]

◆ BOOST_AUTO_TEST_CASE() [14/19]

◆ BOOST_AUTO_TEST_CASE() [15/19]

◆ BOOST_AUTO_TEST_CASE() [16/19]

BOOST_AUTO_TEST_CASE ( StartRefillZonesTaskEmptyListFillsAllZones )

◆ BOOST_AUTO_TEST_CASE() [17/19]

BOOST_AUTO_TEST_CASE ( StartRefillZonesTaskUnknownIdRejected )

◆ BOOST_AUTO_TEST_CASE() [18/19]

BOOST_AUTO_TEST_CASE ( StartTaskWhileAnotherIsRunningIsRejected )

◆ BOOST_AUTO_TEST_CASE() [19/19]

BOOST_AUTO_TEST_CASE ( TaskQueriesAllowedDuringTask )

Definition at line 764 of file test_api_handler_pcb.cpp.

References API_HANDLER::AllowsDuringTask(), and BOOST_CHECK().