KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_drc_backdrill_postmachining.cpp File Reference

Tests for DRC and connectivity checks related to backdrilling and post-machining. More...

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.
 

Detailed Description

Tests for DRC and connectivity checks related to backdrilling and post-machining.

Definition in file test_drc_backdrill_postmachining.cpp.

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE() [1/12]

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() [2/12]

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() [3/12]

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() [4/12]

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() [5/12]

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() [6/12]

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() [7/12]

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() [8/12]

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() [9/12]

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() [10/12]

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() [11/12]

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() [12/12]

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.