|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <project/net_settings.h>#include <netclass.h>#include <settings/json_settings_internals.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (ChainClassAssignmentAffectsEquality) | |
| BOOST_AUTO_TEST_CASE (ChainClassValueAndClearAffectEquality) | |
| BOOST_AUTO_TEST_CASE (AssignmentSizeDifferencesAffectEquality) | |
| static bool | resolvesToNetclass (NET_SETTINGS &aSettings, const wxString &aNetName, const wxString &aExpected) |
| BOOST_AUTO_TEST_CASE (ChainPatternAssignmentResolvesAndClears) | |
| BOOST_AUTO_TEST_CASE (ClearChainPatternAssignmentsLeavesUserPatterns) | |
| BOOST_AUTO_TEST_CASE (ClearNetChainClassesRemovesAllEntries) | |
| BOOST_AUTO_TEST_CASE (ChainPatternAssignmentExcludedFromEquality) | |
| BOOST_AUTO_TEST_CASE (NetChainClassesJsonRoundTrip) | |
| BOOST_AUTO_TEST_CASE (NetChainClassesJsonRoundTripEmpty) | |
| BOOST_AUTO_TEST_CASE (NetChainClassesJsonDropsEmptyValues) | |
| BOOST_AUTO_TEST_CASE | ( | AssignmentSizeDifferencesAffectEquality | ) |
Definition at line 79 of file test_net_settings.cpp.
References NET_SETTINGS::SetNetclassLabelAssignment().
| BOOST_AUTO_TEST_CASE | ( | ChainClassAssignmentAffectsEquality | ) |
Definition at line 33 of file test_net_settings.cpp.
References BOOST_AUTO_TEST_CASE(), and NET_SETTINGS::SetNetChainClass().
| BOOST_AUTO_TEST_CASE | ( | ChainClassValueAndClearAffectEquality | ) |
Definition at line 52 of file test_net_settings.cpp.
References NET_SETTINGS::SetNetChainClass().
| BOOST_AUTO_TEST_CASE | ( | ChainPatternAssignmentExcludedFromEquality | ) |
Definition at line 182 of file test_net_settings.cpp.
References NET_SETTINGS::ClearChainPatternAssignments(), NET_SETTINGS::SetChainPatternAssignment(), and NET_SETTINGS::SetNetclasses().
| BOOST_AUTO_TEST_CASE | ( | ChainPatternAssignmentResolvesAndClears | ) |
Definition at line 117 of file test_net_settings.cpp.
References NET_SETTINGS::ClearChainPatternAssignments(), resolvesToNetclass(), NET_SETTINGS::SetChainPatternAssignment(), and NET_SETTINGS::SetNetclasses().
| BOOST_AUTO_TEST_CASE | ( | ClearChainPatternAssignmentsLeavesUserPatterns | ) |
Definition at line 137 of file test_net_settings.cpp.
References NET_SETTINGS::ClearChainPatternAssignments(), resolvesToNetclass(), NET_SETTINGS::SetChainPatternAssignment(), NET_SETTINGS::SetNetclasses(), and NET_SETTINGS::SetNetclassPatternAssignment().
| BOOST_AUTO_TEST_CASE | ( | ClearNetChainClassesRemovesAllEntries | ) |
Definition at line 162 of file test_net_settings.cpp.
References BOOST_CHECK_EQUAL(), NET_SETTINGS::ClearNetChainClasses(), NET_SETTINGS::GetNetChainClass(), NET_SETTINGS::GetNetChainClasses(), and NET_SETTINGS::SetNetChainClass().
| BOOST_AUTO_TEST_CASE | ( | NetChainClassesJsonDropsEmptyValues | ) |
Definition at line 293 of file test_net_settings.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), JSON_SETTINGS_INTERNALS::CloneFrom(), JSON_SETTINGS::FormatAsString(), NET_SETTINGS::GetNetChainClass(), NET_SETTINGS::GetNetChainClasses(), JSON_SETTINGS::Internals(), JSON_SETTINGS::Load(), NET_SETTINGS::SetNetChainClass(), and JSON_SETTINGS::Store().
| BOOST_AUTO_TEST_CASE | ( | NetChainClassesJsonRoundTrip | ) |
Definition at line 218 of file test_net_settings.cpp.
References BOOST_REQUIRE(), JSON_SETTINGS_INTERNALS::CloneFrom(), JSON_SETTINGS::FormatAsString(), NET_SETTINGS::GetNetChainClass(), NET_SETTINGS::GetNetChainClasses(), JSON_SETTINGS::Internals(), JSON_SETTINGS::Load(), NET_SETTINGS::SetNetChainClass(), and JSON_SETTINGS::Store().
| BOOST_AUTO_TEST_CASE | ( | NetChainClassesJsonRoundTripEmpty | ) |
Definition at line 263 of file test_net_settings.cpp.
References BOOST_REQUIRE(), JSON_SETTINGS_INTERNALS::CloneFrom(), empty(), JSON_SETTINGS::FormatAsString(), NET_SETTINGS::GetNetChainClasses(), JSON_SETTINGS::Internals(), JSON_SETTINGS::Load(), NET_SETTINGS::SetNetChainClass(), and JSON_SETTINGS::Store().
|
static |
Definition at line 93 of file test_net_settings.cpp.
References NET_SETTINGS::GetEffectiveNetClass().
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().