KiCad PCB EDA Suite
Loading...
Searching...
No Matches
LIB_TABLE_TEST_FIXTURE Struct Reference

Reusable test fixture with some basic pre-filled tables. More...

Public Member Functions

 LIB_TABLE_TEST_FIXTURE ()
 
std::unique_ptr< TEST_LIB_TABLE_ROWmakeRowFromDef (const LIB_ROW_DEFINITION &aDef)
 Helper to construct a new TEST_LIB_TABLE_ROW from a definition struct.
 

Public Attributes

TEST_LIB_TABLE m_mainTableNoFb
 Table with some enabled and disabled libs, no fallback provided.
 
TEST_LIB_TABLE m_mainTableWithFb
 Identical to m_mainTableNoFb, but with a fallback.
 
TEST_LIB_TABLE m_fallbackTable
 The table that m_mainTableWithFb falls back to.
 

Detailed Description

Reusable test fixture with some basic pre-filled tables.

Definition at line 163 of file test_lib_table.cpp.

Constructor & Destructor Documentation

◆ LIB_TABLE_TEST_FIXTURE()

LIB_TABLE_TEST_FIXTURE::LIB_TABLE_TEST_FIXTURE ( )
inline

Member Function Documentation

◆ makeRowFromDef()

std::unique_ptr< TEST_LIB_TABLE_ROW > LIB_TABLE_TEST_FIXTURE::makeRowFromDef ( const LIB_ROW_DEFINITION aDef)
inline

Helper to construct a new TEST_LIB_TABLE_ROW from a definition struct.

Definition at line 182 of file test_lib_table.cpp.

References LIB_ROW_DEFINITION::m_description, LIB_ROW_DEFINITION::m_enabled, LIB_ROW_DEFINITION::m_nickname, and LIB_ROW_DEFINITION::m_uri.

Referenced by LIB_TABLE_TEST_FIXTURE().

Member Data Documentation

◆ m_fallbackTable

TEST_LIB_TABLE LIB_TABLE_TEST_FIXTURE::m_fallbackTable

The table that m_mainTableWithFb falls back to.

Definition at line 199 of file test_lib_table.cpp.

Referenced by LIB_TABLE_TEST_FIXTURE().

◆ m_mainTableNoFb

TEST_LIB_TABLE LIB_TABLE_TEST_FIXTURE::m_mainTableNoFb

Table with some enabled and disabled libs, no fallback provided.

Definition at line 193 of file test_lib_table.cpp.

Referenced by LIB_TABLE_TEST_FIXTURE().

◆ m_mainTableWithFb

TEST_LIB_TABLE LIB_TABLE_TEST_FIXTURE::m_mainTableWithFb

Identical to m_mainTableNoFb, but with a fallback.

Definition at line 196 of file test_lib_table.cpp.

Referenced by LIB_TABLE_TEST_FIXTURE().


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