KiCad PCB EDA Suite
Loading...
Searching...
No Matches
NET_EXPECTATION Class Reference
Inheritance diagram for NET_EXPECTATION:
KI_TEST::BOARD_EXPECTATION

Public Attributes

std::optional< INT_MATCHERm_Count
 
std::vector< std::string > m_NamePatterns
 

Private Member Functions

std::vector< const NETINFO_ITEM * > findMatchingNets (const BOARD &aBrd) const
 
void doSimpleCountTest (const BOARD &aBrd) const
 
void RunTest (const BOARD &aBrd) const override
 
std::string GetName () const override
 

Static Private Member Functions

static bool nameMatches (const std::string &aName, const std::string &aPattern)
 

Detailed Description

Definition at line 172 of file board_expectations.cpp.

Member Function Documentation

◆ doSimpleCountTest()

void NET_EXPECTATION::doSimpleCountTest ( const BOARD & aBrd) const
inlineprivate

Definition at line 213 of file board_expectations.cpp.

References BOOST_TEST_CONTEXT(), BOARD::GetNetCount(), and m_Count.

Referenced by RunTest().

◆ findMatchingNets()

std::vector< const NETINFO_ITEM * > NET_EXPECTATION::findMatchingNets ( const BOARD & aBrd) const
inlineprivate

Definition at line 184 of file board_expectations.cpp.

References BOARD::GetNetInfo(), m_NamePatterns, and nameMatches().

Referenced by RunTest().

◆ GetName()

std::string NET_EXPECTATION::GetName ( ) const
inlineoverrideprivatevirtual

Implements KI_TEST::BOARD_EXPECTATION.

Definition at line 266 of file board_expectations.cpp.

References m_Count, and m_NamePatterns.

◆ nameMatches()

static bool NET_EXPECTATION::nameMatches ( const std::string & aName,
const std::string & aPattern )
inlinestaticprivate

Definition at line 179 of file board_expectations.cpp.

Referenced by findMatchingNets(), and RunTest().

◆ RunTest()

void NET_EXPECTATION::RunTest ( const BOARD & aBrd) const
inlineoverrideprivatevirtual

Member Data Documentation

◆ m_Count

std::optional<INT_MATCHER> NET_EXPECTATION::m_Count

Definition at line 175 of file board_expectations.cpp.

Referenced by doSimpleCountTest(), GetName(), and RunTest().

◆ m_NamePatterns

std::vector<std::string> NET_EXPECTATION::m_NamePatterns

Definition at line 176 of file board_expectations.cpp.

Referenced by findMatchingNets(), GetName(), and RunTest().


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