|
KiCad PCB EDA Suite
|
#include <cmath>#include <filesystem>#include <fstream>#include <memory>#include <set>#include <string>#include <qa_utils/wx_utils/unit_test_utils.h>#include <qa_utils/file_utils.h>#include <pcbnew_utils/board_file_utils.h>#include <boost/test/unit_test.hpp>#include <board.h>#include <pad.h>#include <settings/settings_manager.h>#include "pcb_io/odbpp/odb_test_utils.h"Go to the source code of this file.
Classes | |
| struct | ODB_TOOL_RECORD |
| One TOOLS record from an ODB++ drill layer "tools" file. More... | |
Functions | |
| static std::vector< ODB_TOOL_RECORD > | parseOdbTools (const fs::path &aToolsFile) |
| Parse the TOOLS records out of an ODB++ "tools" file. | |
| static void | checkNonPlatedDrillTools (const char *aUnits, double aOutputScale) |
| BOOST_AUTO_TEST_CASE (OdbNonPlatedDrillTools) | |
| BOOST_AUTO_TEST_CASE | ( | OdbNonPlatedDrillTools | ) |
Definition at line 175 of file test_odb_drill_tools.cpp.
References checkNonPlatedDrillTools().
|
static |
Definition at line 96 of file test_odb_drill_tools.cpp.
References std::abs(), actual, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), expected, ExportOdb(), KI_TEST::GetPcbnewTestDataDir(), NPTH, pad, parseOdbTools(), KI_TEST::SCOPED_TEMP_DIR::Path(), pcbIUScale, KI_TEST::ReadBoardFromFileOrStream(), and tools.
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Parse the TOOLS records out of an ODB++ "tools" file.
The format is a flat sequence of "TOOLS {" blocks of KEY=VALUE lines. Only the keys the drill tool table is asserted on are read; the file's leading UNITS/THICKNESS/USER_PARAMS lines share none of those names, so they fall through untouched.
Definition at line 58 of file test_odb_drill_tools.cpp.
References tools.
Referenced by checkNonPlatedDrillTools().