|
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 (DefaultNetclassInPlaceEditAffectsEquality) | |
| BOOST_AUTO_TEST_CASE (DefaultNetclassReplacementAffectsEquality) | |
| BOOST_AUTO_TEST_CASE (NamedNetclassParameterEditAffectsEquality) | |
| BOOST_AUTO_TEST_CASE (CopyFromProducesEqualInstance) | |
| BOOST_AUTO_TEST_CASE (CopyFromDropsPreExistingSinkState) | |
| BOOST_AUTO_TEST_CASE (CopyFromClearsStaleDerivedCaches) | |
| BOOST_AUTO_TEST_CASE (CopyFromClearsStaleChainDerivedPatterns) | |
| BOOST_AUTO_TEST_CASE (CopyFromSelfIsNoop) | |
| 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 | ( | CopyFromClearsStaleChainDerivedPatterns | ) |
Definition at line 486 of file test_net_settings.cpp.
References BOOST_REQUIRE(), NET_SETTINGS::CopyFrom(), resolvesToNetclass(), NET_SETTINGS::SetChainPatternAssignment(), and NET_SETTINGS::SetNetclasses().
| BOOST_AUTO_TEST_CASE | ( | CopyFromClearsStaleDerivedCaches | ) |
Definition at line 459 of file test_net_settings.cpp.
References BOOST_REQUIRE(), NET_SETTINGS::CopyFrom(), NET_SETTINGS::GetEffectiveNetClass(), NET_SETTINGS::HasEffectiveNetClass(), NET_SETTINGS::SetNetclasses(), and NET_SETTINGS::SetNetclassPatternAssignment().
| BOOST_AUTO_TEST_CASE | ( | CopyFromDropsPreExistingSinkState | ) |
Definition at line 431 of file test_net_settings.cpp.
References BOOST_CHECK_EQUAL(), NET_SETTINGS::CopyFrom(), NETCLASS::GetClearance(), NET_SETTINGS::GetDefaultNetclass(), NET_SETTINGS::GetNetChainClasses(), NET_SETTINGS::GetNetclasses(), NET_SETTINGS::GetNetclassPatternAssignments(), NETCLASS::SetClearance(), NET_SETTINGS::SetNetChainClass(), NET_SETTINGS::SetNetclasses(), and NET_SETTINGS::SetNetclassPatternAssignment().
| BOOST_AUTO_TEST_CASE | ( | CopyFromProducesEqualInstance | ) |
Definition at line 395 of file test_net_settings.cpp.
References BOOST_CHECK_EQUAL(), NET_SETTINGS::CopyFrom(), NETCLASS::GetClearance(), NET_SETTINGS::GetDefaultNetclass(), NETCLASS::SetClearance(), NETCLASS::SetDescription(), NET_SETTINGS::SetNetChainClass(), NET_SETTINGS::SetNetclasses(), NET_SETTINGS::SetNetclassLabelAssignment(), NET_SETTINGS::SetNetclassPatternAssignment(), and NETCLASS::SetTrackWidth().
| BOOST_AUTO_TEST_CASE | ( | CopyFromSelfIsNoop | ) |
Definition at line 506 of file test_net_settings.cpp.
References BOOST_CHECK_EQUAL(), NET_SETTINGS::CopyFrom(), NETCLASS::GetClearance(), NET_SETTINGS::GetDefaultNetclass(), and NETCLASS::SetClearance().
| BOOST_AUTO_TEST_CASE | ( | DefaultNetclassInPlaceEditAffectsEquality | ) |
Definition at line 326 of file test_net_settings.cpp.
References NET_SETTINGS::GetDefaultNetclass(), NETCLASS::SetClearance(), and NETCLASS::SetTrackWidth().
| BOOST_AUTO_TEST_CASE | ( | DefaultNetclassReplacementAffectsEquality | ) |
Definition at line 351 of file test_net_settings.cpp.
References NETCLASS::Default, and NET_SETTINGS::SetDefaultNetclass().
| BOOST_AUTO_TEST_CASE | ( | NamedNetclassParameterEditAffectsEquality | ) |
Definition at line 368 of file test_net_settings.cpp.
References NET_SETTINGS::SetNetclass().
| 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(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().