KiCad PCB EDA Suite
|
Reusable test fixture with some basic pre-filled tables. More...
Public Member Functions | |
LIB_TABLE_TEST_FIXTURE () | |
std::unique_ptr< TEST_LIB_TABLE_ROW > | makeRowFromDef (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. | |
Reusable test fixture with some basic pre-filled tables.
Definition at line 163 of file test_lib_table.cpp.
|
inline |
Definition at line 165 of file test_lib_table.cpp.
References fallback_lib_defs, LIB_TABLE::InsertRow(), m_fallbackTable, m_mainTableNoFb, m_mainTableWithFb, main_lib_defs, and makeRowFromDef().
|
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().
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().
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().
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().