KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SYMBOL_LIBRARY_PARSE_ERROR_FIXTURE Class Reference

Public Member Functions

 SYMBOL_LIBRARY_PARSE_ERROR_FIXTURE ()
 
 ~SYMBOL_LIBRARY_PARSE_ERROR_FIXTURE ()
 
wxString GetTempLibraryPath ()
 
void CreateValidLibrary (const wxString &aPath, int aSymbolCount)
 Create a valid symbol library file with the specified number of symbols.
 
void CorruptLibraryAfterSymbol (const wxString &aPath, int aSymbolNumber)
 Corrupt the library file by introducing a parse error after the specified symbol.
 

Public Attributes

std::vector< wxString > m_tempFiles
 

Detailed Description

Definition at line 44 of file test_symbol_library_parse_error.cpp.

Constructor & Destructor Documentation

◆ SYMBOL_LIBRARY_PARSE_ERROR_FIXTURE()

SYMBOL_LIBRARY_PARSE_ERROR_FIXTURE::SYMBOL_LIBRARY_PARSE_ERROR_FIXTURE ( )
inline

Definition at line 47 of file test_symbol_library_parse_error.cpp.

◆ ~SYMBOL_LIBRARY_PARSE_ERROR_FIXTURE()

SYMBOL_LIBRARY_PARSE_ERROR_FIXTURE::~SYMBOL_LIBRARY_PARSE_ERROR_FIXTURE ( )
inline

Definition at line 51 of file test_symbol_library_parse_error.cpp.

References m_tempFiles.

Member Function Documentation

◆ CorruptLibraryAfterSymbol()

void SYMBOL_LIBRARY_PARSE_ERROR_FIXTURE::CorruptLibraryAfterSymbol ( const wxString & aPath,
int aSymbolNumber )
inline

Corrupt the library file by introducing a parse error after the specified symbol.

This simulates a bad merge or file corruption that would cause parsing to fail partway through the library.

Definition at line 119 of file test_symbol_library_parse_error.cpp.

◆ CreateValidLibrary()

void SYMBOL_LIBRARY_PARSE_ERROR_FIXTURE::CreateValidLibrary ( const wxString & aPath,
int aSymbolCount )
inline

Create a valid symbol library file with the specified number of symbols.

Each symbol is named "Symbol_N" where N is 1, 2, 3, etc.

Definition at line 74 of file test_symbol_library_parse_error.cpp.

◆ GetTempLibraryPath()

wxString SYMBOL_LIBRARY_PARSE_ERROR_FIXTURE::GetTempLibraryPath ( )
inline

Definition at line 61 of file test_symbol_library_parse_error.cpp.

References m_tempFiles.

Member Data Documentation

◆ m_tempFiles

std::vector<wxString> SYMBOL_LIBRARY_PARSE_ERROR_FIXTURE::m_tempFiles

The documentation for this class was generated from the following file: