KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_string_utils.cpp File Reference

Go to the source code of this file.

Classes

struct  STRING_ESCAPE_TEST_CASE
 

Macros

#define BOOST_TEST_NO_MAIN
 

Functions

 BOOST_AUTO_TEST_CASE (GeneratedNetNamesUseReservedPrefixes)
 
 BOOST_AUTO_TEST_CASE (ReplaceIllegalFileNameChars_StdString_NoChange)
 
 BOOST_AUTO_TEST_CASE (ReplaceIllegalFileNameChars_StdString_PercentEncoding)
 
 BOOST_AUTO_TEST_CASE (ReplaceIllegalFileNameChars_WxString_ReplacementChar)
 
 BOOST_AUTO_TEST_CASE (ConvertPathToFileUri_UnixAbsolutePath)
 
 BOOST_AUTO_TEST_CASE (ConvertPathToFileUri_AlreadyHasScheme)
 
 BOOST_AUTO_TEST_CASE (ConvertPathToFileUri_Empty)
 
 BOOST_AUTO_TEST_CASE (ConvertPathToFileUri_Tilde)
 
 BOOST_AUTO_TEST_CASE (ConvertPathToFileUri_NonexistentPath)
 
 BOOST_AUTO_TEST_CASE (ConvertPathToFileUri_PlainText)
 
static wxString JoinPins (const std::vector< wxString > &aPins)
 
 BOOST_AUTO_TEST_CASE (StackedPinNotation_CommaInPlainNumberIsSinglePin)
 
 BOOST_AUTO_TEST_CASE (StackedPinNotation_EscapedCommaRoundTrips)
 
 BOOST_AUTO_TEST_CASE (StackedPinNotation_EscapedDashIsLiteral)
 
 BOOST_AUTO_TEST_CASE (StackedPinNotation_EscapeStackedPinItem)
 
 BOOST_AUTO_TEST_CASE (StackedPinNotation_LegacyNotationUnchanged)
 
 BOOST_AUTO_TEST_CASE (StackedPinNotation_DisplaySplitPreservesRanges)
 
 BOOST_AUTO_TEST_CASE (StackedPinNotation_LiteralBackslashPreserved)
 
 BOOST_AUTO_TEST_CASE (StackedPinNotation_EmptyIsSinglePin)
 
 BOOST_AUTO_TEST_CASE (StringEscape)
 

Macro Definition Documentation

◆ BOOST_TEST_NO_MAIN

#define BOOST_TEST_NO_MAIN

Definition at line 21 of file test_string_utils.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/19]

BOOST_AUTO_TEST_CASE ( ConvertPathToFileUri_AlreadyHasScheme )

Definition at line 136 of file test_string_utils.cpp.

References BOOST_TEST(), and ConvertPathToFileUri().

◆ BOOST_AUTO_TEST_CASE() [2/19]

BOOST_AUTO_TEST_CASE ( ConvertPathToFileUri_Empty )

Definition at line 142 of file test_string_utils.cpp.

References BOOST_TEST(), and ConvertPathToFileUri().

◆ BOOST_AUTO_TEST_CASE() [3/19]

BOOST_AUTO_TEST_CASE ( ConvertPathToFileUri_NonexistentPath )

Definition at line 152 of file test_string_utils.cpp.

References BOOST_TEST(), and ConvertPathToFileUri().

◆ BOOST_AUTO_TEST_CASE() [4/19]

BOOST_AUTO_TEST_CASE ( ConvertPathToFileUri_PlainText )

Definition at line 158 of file test_string_utils.cpp.

References BOOST_TEST(), and ConvertPathToFileUri().

◆ BOOST_AUTO_TEST_CASE() [5/19]

BOOST_AUTO_TEST_CASE ( ConvertPathToFileUri_Tilde )

Definition at line 147 of file test_string_utils.cpp.

References BOOST_TEST(), and ConvertPathToFileUri().

◆ BOOST_AUTO_TEST_CASE() [6/19]

BOOST_AUTO_TEST_CASE ( ConvertPathToFileUri_UnixAbsolutePath )

Definition at line 130 of file test_string_utils.cpp.

References BOOST_TEST(), and ConvertPathToFileUri().

◆ BOOST_AUTO_TEST_CASE() [7/19]

BOOST_AUTO_TEST_CASE ( GeneratedNetNamesUseReservedPrefixes )

Definition at line 29 of file test_string_utils.cpp.

References BOOST_AUTO_TEST_CASE(), and IsAutoGeneratedNetName().

◆ BOOST_AUTO_TEST_CASE() [8/19]

BOOST_AUTO_TEST_CASE ( ReplaceIllegalFileNameChars_StdString_NoChange )

Definition at line 40 of file test_string_utils.cpp.

References BOOST_TEST(), name, and ReplaceIllegalFileNameChars().

◆ BOOST_AUTO_TEST_CASE() [9/19]

BOOST_AUTO_TEST_CASE ( ReplaceIllegalFileNameChars_StdString_PercentEncoding )

Definition at line 52 of file test_string_utils.cpp.

References BOOST_TEST(), name, and ReplaceIllegalFileNameChars().

◆ BOOST_AUTO_TEST_CASE() [10/19]

BOOST_AUTO_TEST_CASE ( ReplaceIllegalFileNameChars_WxString_ReplacementChar )

Definition at line 121 of file test_string_utils.cpp.

References BOOST_TEST(), name, and ReplaceIllegalFileNameChars().

◆ BOOST_AUTO_TEST_CASE() [11/19]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_CommaInPlainNumberIsSinglePin )

◆ BOOST_AUTO_TEST_CASE() [12/19]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_DisplaySplitPreservesRanges )

◆ BOOST_AUTO_TEST_CASE() [13/19]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_EmptyIsSinglePin )

◆ BOOST_AUTO_TEST_CASE() [14/19]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_EscapedCommaRoundTrips )

◆ BOOST_AUTO_TEST_CASE() [15/19]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_EscapedDashIsLiteral )

◆ BOOST_AUTO_TEST_CASE() [16/19]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_EscapeStackedPinItem )

Definition at line 245 of file test_string_utils.cpp.

References BOOST_TEST(), and EscapeStackedPinItem().

◆ BOOST_AUTO_TEST_CASE() [17/19]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_LegacyNotationUnchanged )

◆ BOOST_AUTO_TEST_CASE() [18/19]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_LiteralBackslashPreserved )

◆ BOOST_AUTO_TEST_CASE() [19/19]

BOOST_AUTO_TEST_CASE ( StringEscape )

◆ JoinPins()

static wxString JoinPins ( const std::vector< wxString > & aPins)
static