|
KiCad PCB EDA Suite
|
Tests for DRC and connectivity checks related to backdrilling and post-machining. More...
#include <qa_utils/wx_utils/unit_test_utils.h>#include <pcbnew_utils/board_test_utils.h>#include <board.h>#include <board_design_settings.h>#include <board_stackup_manager/board_stackup.h>#include <connectivity/connectivity_data.h>#include <drc/drc_engine.h>#include <drc/drc_item.h>#include <footprint.h>#include <pad.h>#include <pcb_track.h>#include <pcb_marker.h>#include <settings/settings_manager.h>#include <zone.h>#include <zone_filler.h>Go to the source code of this file.
Classes | |
| struct | BACKDRILL_TEST_FIXTURE |
Functions | |
| BOOST_FIXTURE_TEST_CASE (ViaBackdrillLayerDetection, BACKDRILL_TEST_FIXTURE) | |
| Test that IsBackdrilledOrPostMachined correctly identifies affected layers for vias. | |
| BOOST_FIXTURE_TEST_CASE (ViaPostMachiningLayerDetection, BACKDRILL_TEST_FIXTURE) | |
| Test that IsBackdrilledOrPostMachined correctly identifies affected layers for post-machining. | |
| BOOST_FIXTURE_TEST_CASE (PadBackdrillLayerDetection, BACKDRILL_TEST_FIXTURE) | |
| Test that IsBackdrilledOrPostMachined correctly identifies affected layers for pads. | |
| BOOST_FIXTURE_TEST_CASE (ViaEffectiveShapeOnBackdrilledLayer, BACKDRILL_TEST_FIXTURE) | |
| Test that GetEffectiveShape returns the backdrill hole shape for affected layers. | |
| BOOST_FIXTURE_TEST_CASE (ZoneConnectivityWithBackdrill, BACKDRILL_TEST_FIXTURE) | |
| Test that connectivity correctly excludes backdrilled layers for zones. | |
| BOOST_FIXTURE_TEST_CASE (DRCTrackOnPostMachinedLayer, BACKDRILL_TEST_FIXTURE) | |
| Test DRC error for track connected to post-machined layer. | |
| BOOST_FIXTURE_TEST_CASE (DRCTrackOnBackdrilledLayer, BACKDRILL_TEST_FIXTURE) | |
| Test DRC error for track connected to backdrilled layer. | |
| BOOST_FIXTURE_TEST_CASE (DRCTrackOnUnaffectedLayerNoDRC, BACKDRILL_TEST_FIXTURE) | |
| Test that tracks on non-affected layers don't trigger DRC errors. | |
| BOOST_FIXTURE_TEST_CASE (DRCTrackOnBackdrilledPadLayer, BACKDRILL_TEST_FIXTURE) | |
| Test DRC for pad with backdrill and connected track. | |
| BOOST_FIXTURE_TEST_CASE (PadPostMachiningLayerDetection, BACKDRILL_TEST_FIXTURE) | |
| Test that pad post-machining is correctly detected. | |
| BOOST_FIXTURE_TEST_CASE (PadBackPostMachiningLayerDetection, BACKDRILL_TEST_FIXTURE) | |
| Test back post-machining detection. | |
| BOOST_FIXTURE_TEST_CASE (ViaBothBackdrillAndPostMachining, BACKDRILL_TEST_FIXTURE) | |
| Combined test: both backdrill and post-machining on same via. | |
Tests for DRC and connectivity checks related to backdrilling and post-machining.
Definition in file test_drc_backdrill_postmachining.cpp.
| BOOST_FIXTURE_TEST_CASE | ( | DRCTrackOnBackdrilledLayer | , |
| BACKDRILL_TEST_FIXTURE | ) |
Test DRC error for track connected to backdrilled layer.
Definition at line 479 of file test_drc_backdrill_postmachining.cpp.
References B_Cu, DRCE_TRACK_ON_POST_MACHINED_LAYER, F_Cu, In1_Cu, In2_Cu, pcbIUScale, and via.
| BOOST_FIXTURE_TEST_CASE | ( | DRCTrackOnBackdrilledPadLayer | , |
| BACKDRILL_TEST_FIXTURE | ) |
Test DRC for pad with backdrill and connected track.
Definition at line 547 of file test_drc_backdrill_postmachining.cpp.
References DRCE_TRACK_ON_POST_MACHINED_LAYER, F_Cu, In1_Cu, In2_Cu, pad, FOOTPRINT::Pads(), and pcbIUScale.
| BOOST_FIXTURE_TEST_CASE | ( | DRCTrackOnPostMachinedLayer | , |
| BACKDRILL_TEST_FIXTURE | ) |
Test DRC error for track connected to post-machined layer.
Definition at line 449 of file test_drc_backdrill_postmachining.cpp.
References COUNTERBORE, DRCE_TRACK_ON_POST_MACHINED_LAYER, F_Cu, pcbIUScale, and via.
| BOOST_FIXTURE_TEST_CASE | ( | DRCTrackOnUnaffectedLayerNoDRC | , |
| BACKDRILL_TEST_FIXTURE | ) |
Test that tracks on non-affected layers don't trigger DRC errors.
Definition at line 509 of file test_drc_backdrill_postmachining.cpp.
References B_Cu, BOOST_CHECK_EQUAL(), DRCE_TRACK_ON_POST_MACHINED_LAYER, F_Cu, In2_Cu, EDA_ITEM::m_Uuid, pcbIUScale, and via.
| BOOST_FIXTURE_TEST_CASE | ( | PadBackdrillLayerDetection | , |
| BACKDRILL_TEST_FIXTURE | ) |
Test that IsBackdrilledOrPostMachined correctly identifies affected layers for pads.
Definition at line 334 of file test_drc_backdrill_postmachining.cpp.
References B_Cu, F_Cu, In1_Cu, In2_Cu, In3_Cu, pad, FOOTPRINT::Pads(), and pcbIUScale.
| BOOST_FIXTURE_TEST_CASE | ( | PadBackPostMachiningLayerDetection | , |
| BACKDRILL_TEST_FIXTURE | ) |
Test back post-machining detection.
Definition at line 604 of file test_drc_backdrill_postmachining.cpp.
References B_Cu, COUNTERSINK, F_Cu, pad, FOOTPRINT::Pads(), and pcbIUScale.
| BOOST_FIXTURE_TEST_CASE | ( | PadPostMachiningLayerDetection | , |
| BACKDRILL_TEST_FIXTURE | ) |
Test that pad post-machining is correctly detected.
Definition at line 577 of file test_drc_backdrill_postmachining.cpp.
References B_Cu, COUNTERBORE, F_Cu, pad, FOOTPRINT::Pads(), and pcbIUScale.
| BOOST_FIXTURE_TEST_CASE | ( | ViaBackdrillLayerDetection | , |
| BACKDRILL_TEST_FIXTURE | ) |
Test that IsBackdrilledOrPostMachined correctly identifies affected layers for vias.
Definition at line 280 of file test_drc_backdrill_postmachining.cpp.
References B_Cu, F_Cu, In1_Cu, In2_Cu, In3_Cu, pcbIUScale, and via.
| BOOST_FIXTURE_TEST_CASE | ( | ViaBothBackdrillAndPostMachining | , |
| BACKDRILL_TEST_FIXTURE | ) |
Combined test: both backdrill and post-machining on same via.
Definition at line 631 of file test_drc_backdrill_postmachining.cpp.
References PADSTACK::ALL_LAYERS, B_Cu, COUNTERBORE, F_Cu, In2_Cu, pcbIUScale, and via.
| BOOST_FIXTURE_TEST_CASE | ( | ViaEffectiveShapeOnBackdrilledLayer | , |
| BACKDRILL_TEST_FIXTURE | ) |
Test that GetEffectiveShape returns the backdrill hole shape for affected layers.
Definition at line 364 of file test_drc_backdrill_postmachining.cpp.
References PADSTACK::ALL_LAYERS, B_Cu, BOOST_REQUIRE(), F_Cu, BOX2< Vec >::GetWidth(), In2_Cu, pcbIUScale, and via.
| BOOST_FIXTURE_TEST_CASE | ( | ViaPostMachiningLayerDetection | , |
| BACKDRILL_TEST_FIXTURE | ) |
Test that IsBackdrilledOrPostMachined correctly identifies affected layers for post-machining.
Definition at line 310 of file test_drc_backdrill_postmachining.cpp.
References B_Cu, COUNTERSINK, F_Cu, pcbIUScale, and via.
| BOOST_FIXTURE_TEST_CASE | ( | ZoneConnectivityWithBackdrill | , |
| BACKDRILL_TEST_FIXTURE | ) |
Test that connectivity correctly excludes backdrilled layers for zones.
Definition at line 403 of file test_drc_backdrill_postmachining.cpp.
References B_Cu, F_Cu, In2_Cu, pcbIUScale, and via.