KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_net_settings.cpp File Reference
#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)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/18]

BOOST_AUTO_TEST_CASE ( AssignmentSizeDifferencesAffectEquality )

Definition at line 79 of file test_net_settings.cpp.

References NET_SETTINGS::SetNetclassLabelAssignment().

◆ BOOST_AUTO_TEST_CASE() [2/18]

BOOST_AUTO_TEST_CASE ( ChainClassAssignmentAffectsEquality )

◆ BOOST_AUTO_TEST_CASE() [3/18]

BOOST_AUTO_TEST_CASE ( ChainClassValueAndClearAffectEquality )

Definition at line 52 of file test_net_settings.cpp.

References NET_SETTINGS::SetNetChainClass().

◆ BOOST_AUTO_TEST_CASE() [4/18]

BOOST_AUTO_TEST_CASE ( ChainPatternAssignmentExcludedFromEquality )

◆ BOOST_AUTO_TEST_CASE() [5/18]

BOOST_AUTO_TEST_CASE ( ChainPatternAssignmentResolvesAndClears )

◆ BOOST_AUTO_TEST_CASE() [6/18]

◆ BOOST_AUTO_TEST_CASE() [7/18]

BOOST_AUTO_TEST_CASE ( ClearNetChainClassesRemovesAllEntries )

◆ BOOST_AUTO_TEST_CASE() [8/18]

BOOST_AUTO_TEST_CASE ( CopyFromClearsStaleChainDerivedPatterns )

◆ BOOST_AUTO_TEST_CASE() [9/18]

◆ BOOST_AUTO_TEST_CASE() [10/18]

◆ BOOST_AUTO_TEST_CASE() [11/18]

◆ BOOST_AUTO_TEST_CASE() [12/18]

BOOST_AUTO_TEST_CASE ( CopyFromSelfIsNoop )

◆ BOOST_AUTO_TEST_CASE() [13/18]

BOOST_AUTO_TEST_CASE ( DefaultNetclassInPlaceEditAffectsEquality )

◆ BOOST_AUTO_TEST_CASE() [14/18]

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() [15/18]

BOOST_AUTO_TEST_CASE ( NamedNetclassParameterEditAffectsEquality )

Definition at line 368 of file test_net_settings.cpp.

References NET_SETTINGS::SetNetclass().

◆ BOOST_AUTO_TEST_CASE() [16/18]

◆ BOOST_AUTO_TEST_CASE() [17/18]

◆ BOOST_AUTO_TEST_CASE() [18/18]

◆ resolvesToNetclass()

static bool resolvesToNetclass ( NET_SETTINGS & aSettings,
const wxString & aNetName,
const wxString & aExpected )
static