|
KiCad PCB EDA Suite
|
Test that DRC correctly calculates lengths for traces with multiple track widths. More...
#include <qa_utils/wx_utils/unit_test_utils.h>#include <pcbnew_utils/board_test_utils.h>#include <board.h>#include <pcb_track.h>#include <length_delay_calculation/length_delay_calculation.h>#include <length_delay_calculation/length_delay_calculation_item.h>#include <settings/settings_manager.h>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. | |
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.
| 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().