|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <filesystem>#include <fstream>#include <base_units.h>#include <board.h>#include <board_design_settings.h>#include <drc/drc_engine.h>#include <drc/drc_item.h>#include <footprint.h>#include <netinfo.h>#include <pad.h>#include <pcb_marker.h>#include <pcb_track.h>#include <pcbnew/pcb_io/kicad_sexpr/pcb_io_kicad_sexpr.h>#include <drc/drc_rule_parser.h>#include <reporter.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (StubLengthFiresOnIntermediateNetOnly) | |
| BOOST_AUTO_TEST_CASE (StubLengthQuietOnTwoNetChain) | |
| BOOST_AUTO_TEST_CASE (StubLengthIncludesPadToDie) | |
| BOOST_AUTO_TEST_CASE (StubLengthAcceptsTimeDomainUnits) | |
| BOOST_AUTO_TEST_CASE (ReturnPathDoesNotCarryTimeDomainOption) | |
Variables | |
| static const char * | BOARD_TEXT |
| static const char * | DRU_TEXT |
| BOOST_AUTO_TEST_CASE | ( | ReturnPathDoesNotCarryTimeDomainOption | ) |
Definition at line 586 of file test_drc_stub_length.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), WX_STRING_REPORTER::GetMessages(), REPORTER::HasMessageOfSeverity(), NET_CHAIN_RETURN_PATH_CONSTRAINT, DRC_RULES_PARSER::Parse(), RPT_SEVERITY_ERROR, and DRC_CONSTRAINT::TIME_DOMAIN.
| BOOST_AUTO_TEST_CASE | ( | StubLengthAcceptsTimeDomainUnits | ) |
Definition at line 547 of file test_drc_stub_length.cpp.
References BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), WX_STRING_REPORTER::GetMessages(), REPORTER::HasMessageOfSeverity(), NET_CHAIN_STUB_LENGTH_CONSTRAINT, DRC_RULES_PARSER::Parse(), RPT_SEVERITY_ERROR, DRC_CONSTRAINT::SPACE_DOMAIN, and DRC_CONSTRAINT::TIME_DOMAIN.
| BOOST_AUTO_TEST_CASE | ( | StubLengthFiresOnIntermediateNetOnly | ) |
Definition at line 106 of file test_drc_stub_length.cpp.
References BOARD_TEXT, BOOST_AUTO_TEST_CASE(), BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), DRCE_DANGLING_VIA, DRCE_DRILL_OUT_OF_RANGE, DRCE_INVALID_OUTLINE, DRCE_LIB_FOOTPRINT_ISSUES, DRCE_LIB_FOOTPRINT_MISMATCH, DRCE_NET_CHAIN_STUB_TOO_LONG, DRCE_UNCONNECTED_ITEMS, DRU_TEXT, NETINFO_ITEM::GetNetCode(), NETINFO_ITEM::GetNetname(), PCB_IO_KICAD_SEXPR::LoadBoard(), BOARD_DESIGN_SETTINGS::m_DRCEngine, BOARD_DESIGN_SETTINGS::m_DRCSeverities, MM, pad, RPT_SEVERITY_ERROR, RPT_SEVERITY_IGNORE, NETINFO_ITEM::SetNetChain(), and NETINFO_ITEM::SetTerminalPad().
| BOOST_AUTO_TEST_CASE | ( | StubLengthIncludesPadToDie | ) |
Definition at line 364 of file test_drc_stub_length.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), DRCE_DANGLING_VIA, DRCE_DRILL_OUT_OF_RANGE, DRCE_INVALID_OUTLINE, DRCE_LIB_FOOTPRINT_ISSUES, DRCE_LIB_FOOTPRINT_MISMATCH, DRCE_NET_CHAIN_STUB_TOO_LONG, DRCE_UNCONNECTED_ITEMS, NETINFO_ITEM::GetNetCode(), NETINFO_ITEM::GetNetname(), PCB_IO_KICAD_SEXPR::LoadBoard(), BOARD_DESIGN_SETTINGS::m_DRCEngine, BOARD_DESIGN_SETTINGS::m_DRCSeverities, MM, pad, pcbIUScale, RPT_SEVERITY_ERROR, RPT_SEVERITY_IGNORE, NETINFO_ITEM::SetNetChain(), PAD::SetPadToDieLength(), and NETINFO_ITEM::SetTerminalPad().
| BOOST_AUTO_TEST_CASE | ( | StubLengthQuietOnTwoNetChain | ) |
Definition at line 219 of file test_drc_stub_length.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), DRCE_DANGLING_VIA, DRCE_DRILL_OUT_OF_RANGE, DRCE_INVALID_OUTLINE, DRCE_LIB_FOOTPRINT_ISSUES, DRCE_LIB_FOOTPRINT_MISMATCH, DRCE_NET_CHAIN_STUB_TOO_LONG, DRCE_UNCONNECTED_ITEMS, NETINFO_ITEM::GetNetCode(), PCB_IO_KICAD_SEXPR::LoadBoard(), BOARD_DESIGN_SETTINGS::m_DRCEngine, BOARD_DESIGN_SETTINGS::m_DRCSeverities, MM, pad, RPT_SEVERITY_ERROR, RPT_SEVERITY_IGNORE, NETINFO_ITEM::SetNetChain(), and NETINFO_ITEM::SetTerminalPad().
|
static |
Definition at line 48 of file test_drc_stub_length.cpp.
|
static |
Definition at line 94 of file test_drc_stub_length.cpp.