KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_string_utils.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <string_utils.h>

Go to the source code of this file.

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)
 

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/18]

BOOST_AUTO_TEST_CASE ( ConvertPathToFileUri_AlreadyHasScheme )

Definition at line 134 of file test_string_utils.cpp.

References BOOST_TEST(), and ConvertPathToFileUri().

◆ BOOST_AUTO_TEST_CASE() [2/18]

BOOST_AUTO_TEST_CASE ( ConvertPathToFileUri_Empty )

Definition at line 140 of file test_string_utils.cpp.

References BOOST_TEST(), and ConvertPathToFileUri().

◆ BOOST_AUTO_TEST_CASE() [3/18]

BOOST_AUTO_TEST_CASE ( ConvertPathToFileUri_NonexistentPath )

Definition at line 150 of file test_string_utils.cpp.

References BOOST_TEST(), and ConvertPathToFileUri().

◆ BOOST_AUTO_TEST_CASE() [4/18]

BOOST_AUTO_TEST_CASE ( ConvertPathToFileUri_PlainText )

Definition at line 156 of file test_string_utils.cpp.

References BOOST_TEST(), and ConvertPathToFileUri().

◆ BOOST_AUTO_TEST_CASE() [5/18]

BOOST_AUTO_TEST_CASE ( ConvertPathToFileUri_Tilde )

Definition at line 145 of file test_string_utils.cpp.

References BOOST_TEST(), and ConvertPathToFileUri().

◆ BOOST_AUTO_TEST_CASE() [6/18]

BOOST_AUTO_TEST_CASE ( ConvertPathToFileUri_UnixAbsolutePath )

Definition at line 128 of file test_string_utils.cpp.

References BOOST_TEST(), and ConvertPathToFileUri().

◆ BOOST_AUTO_TEST_CASE() [7/18]

BOOST_AUTO_TEST_CASE ( GeneratedNetNamesUseReservedPrefixes )

Definition at line 27 of file test_string_utils.cpp.

References BOOST_AUTO_TEST_CASE(), and IsAutoGeneratedNetName().

◆ BOOST_AUTO_TEST_CASE() [8/18]

BOOST_AUTO_TEST_CASE ( ReplaceIllegalFileNameChars_StdString_NoChange )

Definition at line 38 of file test_string_utils.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [9/18]

BOOST_AUTO_TEST_CASE ( ReplaceIllegalFileNameChars_StdString_PercentEncoding )

Definition at line 50 of file test_string_utils.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [10/18]

BOOST_AUTO_TEST_CASE ( ReplaceIllegalFileNameChars_WxString_ReplacementChar )

Definition at line 119 of file test_string_utils.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [11/18]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_CommaInPlainNumberIsSinglePin )

◆ BOOST_AUTO_TEST_CASE() [12/18]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_DisplaySplitPreservesRanges )

◆ BOOST_AUTO_TEST_CASE() [13/18]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_EmptyIsSinglePin )

◆ BOOST_AUTO_TEST_CASE() [14/18]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_EscapedCommaRoundTrips )

◆ BOOST_AUTO_TEST_CASE() [15/18]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_EscapedDashIsLiteral )

◆ BOOST_AUTO_TEST_CASE() [16/18]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_EscapeStackedPinItem )

Definition at line 243 of file test_string_utils.cpp.

References BOOST_TEST(), and EscapeStackedPinItem().

◆ BOOST_AUTO_TEST_CASE() [17/18]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_LegacyNotationUnchanged )

◆ BOOST_AUTO_TEST_CASE() [18/18]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_LiteralBackslashPreserved )

◆ JoinPins()

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