|
KiCad PCB EDA Suite
|
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 (DetectPadsFileType_Unknown) | |
| BOOST_AUTO_TEST_CASE (FindRelatedPadsFiles_NonExistent) | |
| BOOST_AUTO_TEST_CASE (RELATED_FILES_HasMethods) | |
Test suite for PADS common utilities including deterministic UUID generation.
Definition in file test_pads_common.cpp.
| BOOST_AUTO_TEST_CASE | ( | ConvertInvertedNetName_Empty | ) |
Definition at line 234 of file test_pads_common.cpp.
References BOOST_CHECK_EQUAL(), and PADS_COMMON::ConvertInvertedNetName().
| BOOST_AUTO_TEST_CASE | ( | ConvertInvertedNetName_InvertedSignal | ) |
Definition at line 207 of file test_pads_common.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), and PADS_COMMON::ConvertInvertedNetName().
| BOOST_AUTO_TEST_CASE | ( | ConvertInvertedNetName_NormalSignal | ) |
Definition at line 216 of file test_pads_common.cpp.
References BOOST_CHECK_EQUAL(), and PADS_COMMON::ConvertInvertedNetName().
| BOOST_AUTO_TEST_CASE | ( | ConvertInvertedNetName_SlashOnly | ) |
Definition at line 240 of file test_pads_common.cpp.
References BOOST_CHECK_EQUAL(), and PADS_COMMON::ConvertInvertedNetName().
| BOOST_AUTO_TEST_CASE | ( | ConvertInvertedNetName_SpecialCharacters | ) |
Definition at line 225 of file test_pads_common.cpp.
References BOOST_CHECK_EQUAL(), and PADS_COMMON::ConvertInvertedNetName().
| BOOST_AUTO_TEST_CASE | ( | DetectPadsFileType_Unknown | ) |
Definition at line 253 of file test_pads_common.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), PADS_COMMON::DetectPadsFileType(), and PADS_COMMON::UNKNOWN.
| BOOST_AUTO_TEST_CASE | ( | FindRelatedPadsFiles_NonExistent | ) |
Definition at line 262 of file test_pads_common.cpp.
References PADS_COMMON::FindRelatedPadsFiles().
| BOOST_AUTO_TEST_CASE | ( | GenerateDeterministicUuid_CrossProbeConsistency | ) |
Definition at line 105 of file test_pads_common.cpp.
References PADS_COMMON::GenerateDeterministicUuid().
| BOOST_AUTO_TEST_CASE | ( | GenerateDeterministicUuid_Deterministic | ) |
Definition at line 36 of file test_pads_common.cpp.
References KIID::AsString(), BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), and PADS_COMMON::GenerateDeterministicUuid().
| BOOST_AUTO_TEST_CASE | ( | GenerateDeterministicUuid_DifferentInputs | ) |
Definition at line 49 of file test_pads_common.cpp.
References PADS_COMMON::GenerateDeterministicUuid().
| BOOST_AUTO_TEST_CASE | ( | GenerateDeterministicUuid_EmptyString | ) |
Definition at line 80 of file test_pads_common.cpp.
References KIID::AsString(), BOOST_CHECK_EQUAL(), and PADS_COMMON::GenerateDeterministicUuid().
| BOOST_AUTO_TEST_CASE | ( | GenerateDeterministicUuid_LongString | ) |
Definition at line 90 of file test_pads_common.cpp.
References KIID::AsString(), BOOST_CHECK_EQUAL(), and PADS_COMMON::GenerateDeterministicUuid().
| BOOST_AUTO_TEST_CASE | ( | GenerateDeterministicUuid_ValidFormat | ) |
Definition at line 62 of file test_pads_common.cpp.
References KIID::AsString(), BOOST_CHECK_EQUAL(), and PADS_COMMON::GenerateDeterministicUuid().
| BOOST_AUTO_TEST_CASE | ( | PadsLineStyleToKiCad_DefaultFallback | ) |
Definition at line 189 of file test_pads_common.cpp.
References BOOST_CHECK_EQUAL(), DASH, PADS_COMMON::PadsLineStyleToKiCad(), and SOLID.
| BOOST_AUTO_TEST_CASE | ( | PadsLineStyleToKiCad_KnownStyles | ) |
Definition at line 172 of file test_pads_common.cpp.
References BOOST_CHECK_EQUAL(), DASH, DASHDOT, DASHDOTDOT, DOT, PADS_COMMON::PadsLineStyleToKiCad(), and SOLID.
| BOOST_AUTO_TEST_CASE | ( | ParseDouble_InvalidInput | ) |
Definition at line 158 of file test_pads_common.cpp.
References PADS_COMMON::ParseDouble().
| BOOST_AUTO_TEST_CASE | ( | ParseDouble_Overflow | ) |
Definition at line 166 of file test_pads_common.cpp.
References PADS_COMMON::ParseDouble().
| BOOST_AUTO_TEST_CASE | ( | ParseDouble_ValidInput | ) |
Definition at line 149 of file test_pads_common.cpp.
References PADS_COMMON::ParseDouble().
| 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 | ( | ParseInt_Overflow | ) |
Definition at line 143 of file test_pads_common.cpp.
References BOOST_CHECK_EQUAL(), and PADS_COMMON::ParseInt().
| BOOST_AUTO_TEST_CASE | ( | ParseInt_ValidInput | ) |
Definition at line 125 of file test_pads_common.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), and PADS_COMMON::ParseInt().
| BOOST_AUTO_TEST_CASE | ( | RELATED_FILES_HasMethods | ) |
Definition at line 271 of file test_pads_common.cpp.
References empty(), PADS_COMMON::RELATED_FILES::HasBoth(), PADS_COMMON::RELATED_FILES::HasPcb(), PADS_COMMON::RELATED_FILES::HasSchematic(), PADS_COMMON::RELATED_FILES::pcbFile, and PADS_COMMON::RELATED_FILES::schematicFile.