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 (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/17]

BOOST_AUTO_TEST_CASE ( ConvertPathToFileUri_AlreadyHasScheme )

Definition at line 124 of file test_string_utils.cpp.

References BOOST_TEST(), and ConvertPathToFileUri().

◆ BOOST_AUTO_TEST_CASE() [2/17]

BOOST_AUTO_TEST_CASE ( ConvertPathToFileUri_Empty )

Definition at line 130 of file test_string_utils.cpp.

References BOOST_TEST(), and ConvertPathToFileUri().

◆ BOOST_AUTO_TEST_CASE() [3/17]

BOOST_AUTO_TEST_CASE ( ConvertPathToFileUri_NonexistentPath )

Definition at line 140 of file test_string_utils.cpp.

References BOOST_TEST(), and ConvertPathToFileUri().

◆ BOOST_AUTO_TEST_CASE() [4/17]

BOOST_AUTO_TEST_CASE ( ConvertPathToFileUri_PlainText )

Definition at line 146 of file test_string_utils.cpp.

References BOOST_TEST(), and ConvertPathToFileUri().

◆ BOOST_AUTO_TEST_CASE() [5/17]

BOOST_AUTO_TEST_CASE ( ConvertPathToFileUri_Tilde )

Definition at line 135 of file test_string_utils.cpp.

References BOOST_TEST(), and ConvertPathToFileUri().

◆ BOOST_AUTO_TEST_CASE() [6/17]

BOOST_AUTO_TEST_CASE ( ConvertPathToFileUri_UnixAbsolutePath )

Definition at line 118 of file test_string_utils.cpp.

References BOOST_TEST(), and ConvertPathToFileUri().

◆ BOOST_AUTO_TEST_CASE() [7/17]

BOOST_AUTO_TEST_CASE ( ReplaceIllegalFileNameChars_StdString_NoChange )

◆ BOOST_AUTO_TEST_CASE() [8/17]

BOOST_AUTO_TEST_CASE ( ReplaceIllegalFileNameChars_StdString_PercentEncoding )

Definition at line 40 of file test_string_utils.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [9/17]

BOOST_AUTO_TEST_CASE ( ReplaceIllegalFileNameChars_WxString_ReplacementChar )

Definition at line 109 of file test_string_utils.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [10/17]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_CommaInPlainNumberIsSinglePin )

◆ BOOST_AUTO_TEST_CASE() [11/17]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_DisplaySplitPreservesRanges )

◆ BOOST_AUTO_TEST_CASE() [12/17]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_EmptyIsSinglePin )

◆ BOOST_AUTO_TEST_CASE() [13/17]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_EscapedCommaRoundTrips )

◆ BOOST_AUTO_TEST_CASE() [14/17]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_EscapedDashIsLiteral )

◆ BOOST_AUTO_TEST_CASE() [15/17]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_EscapeStackedPinItem )

Definition at line 233 of file test_string_utils.cpp.

References BOOST_TEST(), and EscapeStackedPinItem().

◆ BOOST_AUTO_TEST_CASE() [16/17]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_LegacyNotationUnchanged )

◆ BOOST_AUTO_TEST_CASE() [17/17]

BOOST_AUTO_TEST_CASE ( StackedPinNotation_LiteralBackslashPreserved )

◆ JoinPins()

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