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

Test that DRC correctly calculates lengths for traces with multiple track widths. More...

Go to the source code of this file.

Classes

struct  TUNER_DRC_TEST_FIXTURE
 

Functions

 BOOST_FIXTURE_TEST_CASE (LengthCalculationIncludesAllWidths, TUNER_DRC_TEST_FIXTURE)
 Verify that length calculation includes all segments regardless of track width.
 

Detailed Description

Test that DRC correctly calculates lengths for traces with multiple track widths.

This verifies the fix for GitLab issue #18045 where tracks with width changes caused the tuner and DRC to report different lengths.

Definition in file test_drc_tuner_agreement.cpp.

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE()

BOOST_FIXTURE_TEST_CASE ( LengthCalculationIncludesAllWidths ,
TUNER_DRC_TEST_FIXTURE  )

Verify that length calculation includes all segments regardless of track width.

GitLab issue #18045: Length tuner disagrees with DRC due to track-width change

Definition at line 54 of file test_drc_tuner_agreement.cpp.

References BOOST_REQUIRE(), BOOST_TEST_MESSAGE(), LENGTH_DELAY_CALCULATION::CalculateLengthDetails(), LENGTH_DELAY_CALCULATION::GetLengthCalculationItem(), NETINFO_ITEM::GetNetCode(), KI_TEST::LoadBoard(), NO_DELAY_DETAIL, NO_LAYER_DETAIL, PCB_TRACE_T, LENGTH_DELAY_STATS::TrackLength, and LENGTH_DELAY_CALCULATION_ITEM::Type().