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

Test suite for PADS common utilities including deterministic UUID generation. More...

#include <boost/test/unit_test.hpp>
#include <io/pads/pads_common.h>
#include <kiid.h>
#include <wx/string.h>
#include <qa_utils/wx_utils/unit_test_utils.h>

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (GenerateDeterministicUuid_Deterministic)
 
 BOOST_AUTO_TEST_CASE (GenerateDeterministicUuid_DifferentInputs)
 
 BOOST_AUTO_TEST_CASE (GenerateDeterministicUuid_ValidFormat)
 
 BOOST_AUTO_TEST_CASE (GenerateDeterministicUuid_EmptyString)
 
 BOOST_AUTO_TEST_CASE (GenerateDeterministicUuid_LongString)
 
 BOOST_AUTO_TEST_CASE (GenerateDeterministicUuid_CrossProbeConsistency)
 
 BOOST_AUTO_TEST_CASE (ParseInt_ValidInput)
 
 BOOST_AUTO_TEST_CASE (ParseInt_InvalidInput)
 
 BOOST_AUTO_TEST_CASE (ParseInt_Overflow)
 
 BOOST_AUTO_TEST_CASE (ParseDouble_ValidInput)
 
 BOOST_AUTO_TEST_CASE (ParseDouble_InvalidInput)
 
 BOOST_AUTO_TEST_CASE (ParseDouble_Overflow)
 
 BOOST_AUTO_TEST_CASE (PadsLineStyleToKiCad_KnownStyles)
 
 BOOST_AUTO_TEST_CASE (PadsLineStyleToKiCad_DefaultFallback)
 
 BOOST_AUTO_TEST_CASE (ConvertInvertedNetName_InvertedSignal)
 
 BOOST_AUTO_TEST_CASE (ConvertInvertedNetName_NormalSignal)
 
 BOOST_AUTO_TEST_CASE (ConvertInvertedNetName_SpecialCharacters)
 
 BOOST_AUTO_TEST_CASE (ConvertInvertedNetName_Empty)
 
 BOOST_AUTO_TEST_CASE (ConvertInvertedNetName_SlashOnly)
 
 BOOST_AUTO_TEST_CASE (ConvertText_PlainAscii)
 
 BOOST_AUTO_TEST_CASE (ConvertText_Empty)
 
 BOOST_AUTO_TEST_CASE (ConvertText_Latin1Copyright)
 
 BOOST_AUTO_TEST_CASE (ConvertText_Utf8Preferred)
 
 BOOST_AUTO_TEST_CASE (DetectPadsFileType_Unknown)
 
 BOOST_AUTO_TEST_CASE (DetectPadsFileType_SchematicWithCodePageSuffix)
 
 BOOST_AUTO_TEST_CASE (FindRelatedPadsFiles_NonExistent)
 
 BOOST_AUTO_TEST_CASE (RELATED_FILES_HasMethods)
 

Detailed Description

Test suite for PADS common utilities including deterministic UUID generation.

Definition in file test_pads_common.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/27]

BOOST_AUTO_TEST_CASE ( ConvertInvertedNetName_Empty )

◆ BOOST_AUTO_TEST_CASE() [2/27]

BOOST_AUTO_TEST_CASE ( ConvertInvertedNetName_InvertedSignal )

◆ BOOST_AUTO_TEST_CASE() [3/27]

BOOST_AUTO_TEST_CASE ( ConvertInvertedNetName_NormalSignal )

◆ BOOST_AUTO_TEST_CASE() [4/27]

BOOST_AUTO_TEST_CASE ( ConvertInvertedNetName_SlashOnly )

◆ BOOST_AUTO_TEST_CASE() [5/27]

BOOST_AUTO_TEST_CASE ( ConvertInvertedNetName_SpecialCharacters )

◆ BOOST_AUTO_TEST_CASE() [6/27]

BOOST_AUTO_TEST_CASE ( ConvertText_Empty )

Definition at line 258 of file test_pads_common.cpp.

References BOOST_CHECK_EQUAL(), and PADS_COMMON::ConvertText().

◆ BOOST_AUTO_TEST_CASE() [7/27]

BOOST_AUTO_TEST_CASE ( ConvertText_Latin1Copyright )

Definition at line 264 of file test_pads_common.cpp.

References PADS_COMMON::ConvertText(), and result.

◆ BOOST_AUTO_TEST_CASE() [8/27]

BOOST_AUTO_TEST_CASE ( ConvertText_PlainAscii )

◆ BOOST_AUTO_TEST_CASE() [9/27]

BOOST_AUTO_TEST_CASE ( ConvertText_Utf8Preferred )

Definition at line 277 of file test_pads_common.cpp.

References BOOST_CHECK_EQUAL(), and PADS_COMMON::ConvertText().

◆ BOOST_AUTO_TEST_CASE() [10/27]

BOOST_AUTO_TEST_CASE ( DetectPadsFileType_SchematicWithCodePageSuffix )

◆ BOOST_AUTO_TEST_CASE() [11/27]

BOOST_AUTO_TEST_CASE ( DetectPadsFileType_Unknown )

◆ BOOST_AUTO_TEST_CASE() [12/27]

BOOST_AUTO_TEST_CASE ( FindRelatedPadsFiles_NonExistent )

Definition at line 316 of file test_pads_common.cpp.

References PADS_COMMON::FindRelatedPadsFiles().

◆ BOOST_AUTO_TEST_CASE() [13/27]

BOOST_AUTO_TEST_CASE ( GenerateDeterministicUuid_CrossProbeConsistency )

Definition at line 105 of file test_pads_common.cpp.

References PADS_COMMON::GenerateDeterministicUuid().

◆ BOOST_AUTO_TEST_CASE() [14/27]

BOOST_AUTO_TEST_CASE ( GenerateDeterministicUuid_Deterministic )

◆ BOOST_AUTO_TEST_CASE() [15/27]

BOOST_AUTO_TEST_CASE ( GenerateDeterministicUuid_DifferentInputs )

Definition at line 49 of file test_pads_common.cpp.

References PADS_COMMON::GenerateDeterministicUuid().

◆ BOOST_AUTO_TEST_CASE() [16/27]

BOOST_AUTO_TEST_CASE ( GenerateDeterministicUuid_EmptyString )

◆ BOOST_AUTO_TEST_CASE() [17/27]

BOOST_AUTO_TEST_CASE ( GenerateDeterministicUuid_LongString )

◆ BOOST_AUTO_TEST_CASE() [18/27]

BOOST_AUTO_TEST_CASE ( GenerateDeterministicUuid_ValidFormat )

◆ BOOST_AUTO_TEST_CASE() [19/27]

BOOST_AUTO_TEST_CASE ( PadsLineStyleToKiCad_DefaultFallback )

◆ BOOST_AUTO_TEST_CASE() [20/27]

BOOST_AUTO_TEST_CASE ( PadsLineStyleToKiCad_KnownStyles )

◆ BOOST_AUTO_TEST_CASE() [21/27]

BOOST_AUTO_TEST_CASE ( ParseDouble_InvalidInput )

Definition at line 158 of file test_pads_common.cpp.

References PADS_COMMON::ParseDouble().

◆ BOOST_AUTO_TEST_CASE() [22/27]

BOOST_AUTO_TEST_CASE ( ParseDouble_Overflow )

Definition at line 166 of file test_pads_common.cpp.

References PADS_COMMON::ParseDouble().

◆ BOOST_AUTO_TEST_CASE() [23/27]

BOOST_AUTO_TEST_CASE ( ParseDouble_ValidInput )

Definition at line 149 of file test_pads_common.cpp.

References PADS_COMMON::ParseDouble().

◆ BOOST_AUTO_TEST_CASE() [24/27]

BOOST_AUTO_TEST_CASE ( ParseInt_InvalidInput )

Definition at line 134 of file test_pads_common.cpp.

References BOOST_CHECK_EQUAL(), and PADS_COMMON::ParseInt().

◆ BOOST_AUTO_TEST_CASE() [25/27]

BOOST_AUTO_TEST_CASE ( ParseInt_Overflow )

Definition at line 143 of file test_pads_common.cpp.

References BOOST_CHECK_EQUAL(), and PADS_COMMON::ParseInt().

◆ BOOST_AUTO_TEST_CASE() [26/27]

BOOST_AUTO_TEST_CASE ( ParseInt_ValidInput )

◆ BOOST_AUTO_TEST_CASE() [27/27]