|
KiCad PCB EDA Suite
|
#include <board_expectations.h>
Classes | |
| struct | DESCRIPTOR |
| Lightweight descriptor for a BOARD_EXPECTATION_TEST, which can be used to refer to the test unambiguously. More... | |
Public Member Functions | |
| BOARD_EXPECTATION_TEST (const std::string &aBrdName) | |
| void | RunTest (const BOARD &aBrd) const |
| Runs the test against the given board. | |
Static Public Member Functions | |
| static std::unique_ptr< BOARD_EXPECTATION_TEST > | CreateFromJson (const std::string &aBrdName, const nlohmann::json &aBrdExpectations) |
| static std::vector< DESCRIPTOR > | ExtractExpectationTestsFromJson (const nlohmann::json &aExpectationArray) |
| Extracts expectation tests from the given JSON array and returns a list of test references that can be used to run the tests. | |
| static void | RunFromRef (const std::string &aBrdName, const BOARD &aBoard, const BOARD_EXPECTATION_TEST::DESCRIPTOR &aExpectationTestRef) |
| Constructs a BOARD_EXPECTATION_TEST from the given JSON definition, and runs it on the given board. | |
Private Attributes | |
| std::unique_ptr< BOARD_EXPECTATION > | m_expectation |
| std::string | m_BrdName |
| bool | m_skip = false |
Definition at line 64 of file board_expectations.h.
|
inline |
Definition at line 81 of file board_expectations.h.
References m_BrdName.
|
static |
Definition at line 1148 of file board_expectations.cpp.
References createItemExprExpectation(), createLayerExpectation(), createNetClassExpectation(), and createNetExpectation().
Referenced by RunFromRef().
|
static |
Extracts expectation tests from the given JSON array and returns a list of test references that can be used to run the tests.
This is intended to be used to extract the expectation tests from the JSON at static init time to register the tests with the test runner. This does not actually create the expectation test objects, just extracts the minimal information needed to register them.
Definition at line 1209 of file board_expectations.cpp.
Referenced by getBoardTestDefinitions().
|
static |
Constructs a BOARD_EXPECTATION_TEST from the given JSON definition, and runs it on the given board.
Definition at line 1300 of file board_expectations.cpp.
References BOOST_TEST_CONTEXT(), CreateFromJson(), KI_TEST::BOARD_EXPECTATION_TEST::DESCRIPTOR::m_TestJson, and KI_TEST::BOARD_EXPECTATION_TEST::DESCRIPTOR::m_TestName.
Referenced by buildAllegroBoardSuites().
| void BOARD_EXPECTATION_TEST::RunTest | ( | const BOARD & | aBrd | ) | const |
Runs the test against the given board.
Definition at line 1276 of file board_expectations.cpp.
References BOOST_TEST_CONTEXT(), BOOST_TEST_MESSAGE(), m_expectation, and m_skip.
|
private |
Definition at line 112 of file board_expectations.h.
Referenced by BOARD_EXPECTATION_TEST().
|
private |
Definition at line 111 of file board_expectations.h.
Referenced by RunTest().
|
private |
Definition at line 113 of file board_expectations.h.
Referenced by RunTest().