|
KiCad PCB EDA Suite
|
Public Member Functions | |
| void | SetComment (std::string aComment) |
| Set a comment to be included in the test output for this expectation, which can be used to provide more details about the expectation. | |
| const std::string & | GetComment () const |
Public Attributes | |
| std::vector< std::string > | m_NetClassNames |
| std::optional< SCALAR_CONSTRAINT > | m_Count |
| std::optional< SCALAR_CONSTRAINT > | m_TrackWidth |
| Expectation for track width constraint for all matching netclasses. | |
| std::optional< SCALAR_CONSTRAINT > | m_Clearance |
| std::optional< SCALAR_CONSTRAINT > | m_DpGap |
| std::optional< SCALAR_CONSTRAINT > | m_DpWidth |
| std::optional< SCALAR_CONSTRAINT > | m_MatchingNetCount |
| Expectation for number of nets matching the netclass patterns in aggregate. | |
Private Member Functions | |
| void | doSimpleCountTest (const BOARD &aBrd) const |
| std::vector< const NETCLASS * > | findMatchingNetclasses (const BOARD &aBrd) const |
| void | RunTest (const BOARD &aBrd) const override |
| std::string | GetName () const override |
Static Private Member Functions | |
| static bool | nameMatches (const wxString &aName, const std::string &aPattern) |
| static int | CountMatchingNets (const BOARD &aBrd, const wxString &aNetClassName) |
Private Attributes | |
| std::string | m_Comment |
Definition at line 450 of file board_expectations.cpp.
|
inlinestaticprivate |
Definition at line 605 of file board_expectations.cpp.
References NETCLASS::GetName(), and BOARD::GetNetInfo().
Referenced by RunTest().
|
inlineprivate |
Definition at line 465 of file board_expectations.cpp.
References BOOST_TEST_CONTEXT(), CheckConstraint(), BOARD::GetDesignSettings(), m_Count, and BOARD_DESIGN_SETTINGS::m_NetSettings.
Referenced by RunTest().
|
inlineprivate |
Definition at line 482 of file board_expectations.cpp.
References BOARD::GetDesignSettings(), NET_SETTINGS::GetNetclasses(), m_NetClassNames, BOARD_DESIGN_SETTINGS::m_NetSettings, name, and nameMatches().
Referenced by RunTest().
|
inlineinherited |
Definition at line 53 of file board_expectations.h.
References m_Comment.
|
inlineoverrideprivatevirtual |
Implements KI_TEST::BOARD_EXPECTATION.
Definition at line 626 of file board_expectations.cpp.
References m_Count, m_NetClassNames, and vecToString().
|
inlinestaticprivate |
Definition at line 477 of file board_expectations.cpp.
Referenced by findMatchingNetclasses(), and RunTest().
|
inlineoverrideprivatevirtual |
Implements KI_TEST::BOARD_EXPECTATION.
Definition at line 512 of file board_expectations.cpp.
References BOOST_TEST(), BOOST_TEST_CONTEXT(), CheckConstraint(), CountMatchingNets(), doSimpleCountTest(), findMatchingNetclasses(), m_Clearance, m_Count, m_DpGap, m_DpWidth, m_MatchingNetCount, m_NetClassNames, m_TrackWidth, and nameMatches().
|
inlineinherited |
Set a comment to be included in the test output for this expectation, which can be used to provide more details about the expectation.
Definition at line 52 of file board_expectations.h.
References m_Comment.
| std::optional<SCALAR_CONSTRAINT> NETCLASS_EXPECTATION::m_Clearance |
Definition at line 457 of file board_expectations.cpp.
Referenced by RunTest().
|
privateinherited |
Definition at line 56 of file board_expectations.h.
Referenced by GetComment(), and SetComment().
| std::optional<SCALAR_CONSTRAINT> NETCLASS_EXPECTATION::m_Count |
Definition at line 454 of file board_expectations.cpp.
Referenced by doSimpleCountTest(), GetName(), and RunTest().
| std::optional<SCALAR_CONSTRAINT> NETCLASS_EXPECTATION::m_DpGap |
Definition at line 458 of file board_expectations.cpp.
Referenced by RunTest().
| std::optional<SCALAR_CONSTRAINT> NETCLASS_EXPECTATION::m_DpWidth |
Definition at line 459 of file board_expectations.cpp.
Referenced by RunTest().
| std::optional<SCALAR_CONSTRAINT> NETCLASS_EXPECTATION::m_MatchingNetCount |
Expectation for number of nets matching the netclass patterns in aggregate.
Definition at line 462 of file board_expectations.cpp.
Referenced by RunTest().
| std::vector<std::string> NETCLASS_EXPECTATION::m_NetClassNames |
Definition at line 453 of file board_expectations.cpp.
Referenced by findMatchingNetclasses(), GetName(), and RunTest().
| std::optional<SCALAR_CONSTRAINT> NETCLASS_EXPECTATION::m_TrackWidth |
Expectation for track width constraint for all matching netclasses.
Definition at line 456 of file board_expectations.cpp.
Referenced by RunTest().