|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <wx/filefn.h>#include <wx/filename.h>#include "api_e2e_utils.h"#include <api/board/board.pb.h>#include <api/board/board_commands.pb.h>Go to the source code of this file.
Classes | |
| class | TEMP_KITCHEN_SINK_COPY |
Functions | |
| bool | SendGetBoardDesignRules (API_TEST_CLIENT &aClient, const kiapi::common::types::DocumentSpecifier &aDocument, kiapi::board::commands::BoardDesignRulesResponse *aOut, wxString *aError=nullptr) |
| bool | SendGetCustomDesignRules (API_TEST_CLIENT &aClient, const kiapi::common::types::DocumentSpecifier &aDocument, kiapi::board::commands::CustomRulesResponse *aOut, wxString *aError=nullptr) |
| BOOST_FIXTURE_TEST_CASE (ServerStartsAndResponds, API_SERVER_E2E_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (OpenSingleBoard, API_SERVER_E2E_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (SwitchBoards, API_SERVER_E2E_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (GetBoardDesignRules, API_SERVER_E2E_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (SetBoardDesignRules, API_SERVER_E2E_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (SetBoardDesignRules_ValidationFailure, API_SERVER_E2E_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (SetBoardDesignRules_SeverityOverrides, API_SERVER_E2E_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (GetCustomDesignRules_ReturnsFixtureRules, API_SERVER_E2E_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (SetCustomDesignRules_RoundTripSingleRule, API_SERVER_E2E_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE | ( | GetBoardDesignRules | , |
| API_SERVER_E2E_FIXTURE | ) |
Definition at line 242 of file test_api_e2e.cpp.
References KI_TEST::GetPcbnewTestDataDir(), and SendGetBoardDesignRules().
| BOOST_FIXTURE_TEST_CASE | ( | GetCustomDesignRules_ReturnsFixtureRules | , |
| API_SERVER_E2E_FIXTURE | ) |
Definition at line 400 of file test_api_e2e.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KI_TEST::GetPcbnewTestDataDir(), and SendGetCustomDesignRules().
| BOOST_FIXTURE_TEST_CASE | ( | OpenSingleBoard | , |
| API_SERVER_E2E_FIXTURE | ) |
Definition at line 177 of file test_api_e2e.cpp.
References BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_FIXTURE_TEST_CASE | ( | ServerStartsAndResponds | , |
| API_SERVER_E2E_FIXTURE | ) |
Definition at line 169 of file test_api_e2e.cpp.
References BOOST_CHECK_MESSAGE(), and BOOST_FIXTURE_TEST_CASE().
Referenced by BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), and BOOST_FIXTURE_TEST_CASE().
| BOOST_FIXTURE_TEST_CASE | ( | SetBoardDesignRules | , |
| API_SERVER_E2E_FIXTURE | ) |
Definition at line 264 of file test_api_e2e.cpp.
References TEMP_KITCHEN_SINK_COPY::BoardPath(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), TEMP_KITCHEN_SINK_COPY::Create(), SendCommand(), and SendGetBoardDesignRules().
| BOOST_FIXTURE_TEST_CASE | ( | SetBoardDesignRules_SeverityOverrides | , |
| API_SERVER_E2E_FIXTURE | ) |
Definition at line 344 of file test_api_e2e.cpp.
References TEMP_KITCHEN_SINK_COPY::BoardPath(), BOOST_REQUIRE(), TEMP_KITCHEN_SINK_COPY::Create(), SendCommand(), and SendGetBoardDesignRules().
| BOOST_FIXTURE_TEST_CASE | ( | SetBoardDesignRules_ValidationFailure | , |
| API_SERVER_E2E_FIXTURE | ) |
Definition at line 310 of file test_api_e2e.cpp.
References TEMP_KITCHEN_SINK_COPY::BoardPath(), TEMP_KITCHEN_SINK_COPY::Create(), SendCommand(), and SendGetBoardDesignRules().
| BOOST_FIXTURE_TEST_CASE | ( | SetCustomDesignRules_RoundTripSingleRule | , |
| API_SERVER_E2E_FIXTURE | ) |
Definition at line 437 of file test_api_e2e.cpp.
References TEMP_KITCHEN_SINK_COPY::BoardPath(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), TEMP_KITCHEN_SINK_COPY::Create(), SendCommand(), and SendGetCustomDesignRules().
| BOOST_FIXTURE_TEST_CASE | ( | SwitchBoards | , |
| API_SERVER_E2E_FIXTURE | ) |
Definition at line 200 of file test_api_e2e.cpp.
References BOOST_CHECK_EQUAL(), KI_TEST::GetPcbnewTestDataDir(), and FOOTPRINT::Similarity().
| bool SendGetBoardDesignRules | ( | API_TEST_CLIENT & | aClient, |
| const kiapi::common::types::DocumentSpecifier & | aDocument, | ||
| kiapi::board::commands::BoardDesignRulesResponse * | aOut, | ||
| wxString * | aError = nullptr ) |
Definition at line 94 of file test_api_e2e.cpp.
References API_TEST_CLIENT::LastError(), and API_TEST_CLIENT::SendCommand().
Referenced by BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), and BOOST_FIXTURE_TEST_CASE().
| bool SendGetCustomDesignRules | ( | API_TEST_CLIENT & | aClient, |
| const kiapi::common::types::DocumentSpecifier & | aDocument, | ||
| kiapi::board::commands::CustomRulesResponse * | aOut, | ||
| wxString * | aError = nullptr ) |
Definition at line 130 of file test_api_e2e.cpp.
References API_TEST_CLIENT::LastError(), and API_TEST_CLIENT::SendCommand().
Referenced by BOOST_FIXTURE_TEST_CASE(), and BOOST_FIXTURE_TEST_CASE().