KiCad PCB EDA Suite
Loading...
Searching...
No Matches
board_expectations.cpp File Reference
#include <qa_utils/wx_utils/unit_test_utils.h>
#include "pcbnew_utils/board_expectations.h"
#include <optional>
#include <board.h>

Go to the source code of this file.

Classes

class  INT_MATCHER
 Simple binary expectation that checks if an integer value meets the expectation (exact, at least, at most). More...
 
class  STRING_PATTERN_MATCHER
 Glob-like pattern matcher for strings, supporting '*' and '? More...
 
class  FOOTPRINT_EXPECTATION
 
class  NET_EXPECTATION
 
class  LAYER_EXPECTATION
 

Functions

static std::unique_ptr< BOARD_EXPECTATIONcreateFootprintExpectation (const nlohmann::json &aExpectationEntry)
 
static std::vector< std::string > getStringArray (const nlohmann::json &aJson)
 
static std::unique_ptr< BOARD_EXPECTATIONcreateNetExpectation (const nlohmann::json &aExpectationEntry)
 
static std::unique_ptr< BOARD_EXPECTATIONcreateLayerExpectation (const nlohmann::json &aExpectationEntry)
 

Function Documentation

◆ createFootprintExpectation()

static std::unique_ptr< BOARD_EXPECTATION > createFootprintExpectation ( const nlohmann::json & aExpectationEntry)
static

◆ createLayerExpectation()

static std::unique_ptr< BOARD_EXPECTATION > createLayerExpectation ( const nlohmann::json & aExpectationEntry)
static

◆ createNetExpectation()

static std::unique_ptr< BOARD_EXPECTATION > createNetExpectation ( const nlohmann::json & aExpectationEntry)
static

◆ getStringArray()

static std::vector< std::string > getStringArray ( const nlohmann::json & aJson)
static

Definition at line 359 of file board_expectations.cpp.

References result.

Referenced by createLayerExpectation(), and createNetExpectation().