KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KI_TEST::BOARD_EXPECTATION_TEST Class Reference

#include <board_expectations.h>

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_TESTCreateFromJson (const std::string &aBrdName, const nlohmann::json &aBrdExpectations)
 

Private Attributes

std::vector< std::unique_ptr< BOARD_EXPECTATION > > m_expectations
 
std::string m_BrdName
 

Detailed Description

Definition at line 54 of file board_expectations.h.

Constructor & Destructor Documentation

◆ BOARD_EXPECTATION_TEST()

KI_TEST::BOARD_EXPECTATION_TEST::BOARD_EXPECTATION_TEST ( const std::string & aBrdName)
inline

Definition at line 57 of file board_expectations.h.

References m_BrdName.

Member Function Documentation

◆ CreateFromJson()

std::unique_ptr< BOARD_EXPECTATION_TEST > BOARD_EXPECTATION_TEST::CreateFromJson ( const std::string & aBrdName,
const nlohmann::json & aBrdExpectations )
static

◆ RunTest()

void BOARD_EXPECTATION_TEST::RunTest ( const BOARD & aBrd) const

Runs the test against the given board.

Definition at line 486 of file board_expectations.cpp.

References BOOST_TEST_CONTEXT(), and m_expectations.

Member Data Documentation

◆ m_BrdName

std::string KI_TEST::BOARD_EXPECTATION_TEST::m_BrdName
private

Definition at line 73 of file board_expectations.h.

Referenced by BOARD_EXPECTATION_TEST().

◆ m_expectations

std::vector<std::unique_ptr<BOARD_EXPECTATION> > KI_TEST::BOARD_EXPECTATION_TEST::m_expectations
private

Definition at line 71 of file board_expectations.h.

Referenced by RunTest().


The documentation for this class was generated from the following files: