|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <boost/test/data/test_case.hpp>#include <cstring>#include <wx/filename.h>#include <wx/wfstream.h>#include <pcbnew_utils/board_test_utils.h>#include <pcbnew_utils/board_file_utils.h>#include <wildcards_and_files_ext.h>#include <pcbnew/pcb_io/pcb_io.h>#include <pcbnew/pcb_io/pcb_io_mgr.h>Go to the source code of this file.
Classes | |
| struct | PCB_IO_PLUGIN_CASE |
Functions | |
| BOOST_CHECK_EQUAL (PCB_IO_MGR::FindPluginTypeFromBoardPath(dataPath), c.m_expected_type) | |
| BOOST_CHECK_EQUAL (PCB_IO_MGR::GuessPluginTypeFromLibPath(dataPath), c.m_expected_type) | |
| for (auto &entry :pluginEntries) | |
| BOOST_AUTO_TEST_CASE (NestedTableRejectedByConvertLibrary) | |
| Issue #23291: migrating a nested library table row crashed because FindPlugin( NESTED_TABLE ) returns nullptr and ConvertLibrary dereferenced it. | |
Variables | |
| static const std::vector< PCB_IO_PLUGIN_CASE > | BoardPluginCases |
| static const std::vector< PCB_IO_PLUGIN_CASE > | LibraryPluginCases |
| auto & | pluginEntries = PCB_IO_MGR::PLUGIN_REGISTRY::Instance()->AllPlugins() |
| BOOST_AUTO_TEST_CASE | ( | NestedTableRejectedByConvertLibrary | ) |
Issue #23291: migrating a nested library table row crashed because FindPlugin( NESTED_TABLE ) returns nullptr and ConvertLibrary dereferenced it.
The converter must reject nested tables.
Definition at line 315 of file test_io_mgr.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_REQUIRE(), PCB_IO_MGR::ConvertLibrary(), PCB_IO_MGR::GuessPluginTypeFromLibPath(), FILEEXT::KiCadFootprintLibPathExtension, PCB_IO_MGR::NESTED_TABLE, and table.
| BOOST_CHECK_EQUAL | ( | PCB_IO_MGR::FindPluginTypeFromBoardPath(dataPath) | , |
| c. | m_expected_type ) |
References PCB_IO_MGR::FindPluginTypeFromBoardPath().
Referenced by for().
| BOOST_CHECK_EQUAL | ( | PCB_IO_MGR::GuessPluginTypeFromLibPath(dataPath) | , |
| c. | m_expected_type ) |
References PCB_IO_MGR::GuessPluginTypeFromLibPath().
| for | ( | auto &entry :pluginEntries | ) |
Definition at line 293 of file test_io_mgr.cpp.
References BOOST_CHECK_EQUAL(), BOOST_TEST_CONTEXT(), PCB_IO_MGR::FindPlugin(), and pluginEntries.
|
static |
Definition at line 55 of file test_io_mgr.cpp.
|
static |
Definition at line 160 of file test_io_mgr.cpp.
| auto& pluginEntries = PCB_IO_MGR::PLUGIN_REGISTRY::Instance()->AllPlugins() |
Definition at line 291 of file test_io_mgr.cpp.
Referenced by for().