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

Tests that KIGFX::DrawDashedLine stays bounded on huge segments (issue #23824). More...

#include <boost/test/unit_test.hpp>
#include <gal/graphics_abstraction_layer.h>
#include <gal/gal_display_options.h>
#include <geometry/seg.h>
#include <preview_items/item_drawing_utils.h>

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (NormalLength)
 
 BOOST_AUTO_TEST_CASE (PathologicallyLongLine)
 
 BOOST_AUTO_TEST_CASE (ZeroDashSize)
 

Detailed Description

Tests that KIGFX::DrawDashedLine stays bounded on huge segments (issue #23824).

Definition in file test_dashed_line.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/3]

BOOST_AUTO_TEST_CASE ( NormalLength )

Definition at line 62 of file test_dashed_line.cpp.

References BOOST_AUTO_TEST_CASE(), and KIGFX::DrawDashedLine().

◆ BOOST_AUTO_TEST_CASE() [2/3]

BOOST_AUTO_TEST_CASE ( PathologicallyLongLine )

Definition at line 78 of file test_dashed_line.cpp.

References KIGFX::DrawDashedLine().

◆ BOOST_AUTO_TEST_CASE() [3/3]

BOOST_AUTO_TEST_CASE ( ZeroDashSize )

Definition at line 94 of file test_dashed_line.cpp.

References BOOST_CHECK_EQUAL(), and KIGFX::DrawDashedLine().