KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_drc_length_with_chain.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <filesystem>
#include <fstream>
#include <board.h>
#include <board_design_settings.h>
#include <drc/drc_engine.h>
#include <drc/drc_item.h>
#include <netinfo.h>
#include <pcb_marker.h>
#include <pcbnew/pcb_io/kicad_sexpr/pcb_io_kicad_sexpr.h>

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (PerNetLengthFiresAlongsideChainLength)
 

Variables

static const char * BOARD_TEXT
 
static const char * DRU_TEXT
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

Variable Documentation

◆ BOARD_TEXT

const char* BOARD_TEXT
static
Initial value:
= R"KICAD(
(kicad_pcb
(version 20250904)
(generator "pcbnew")
(generator_version "9.99")
(layers
(0 "F.Cu" signal)
(2 "B.Cu" signal)
)
(net 0 "")
(net 1 "/CHAIN_NET")
(net 2 "/PLAIN_NET")
(segment (start 0 0) (end 25 0) (width 0.2) (layer "F.Cu") (net 1))
(segment (start 0 5) (end 25 5) (width 0.2) (layer "F.Cu") (net 2))
)
)KICAD"

Definition at line 38 of file test_drc_length_with_chain.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().

◆ DRU_TEXT

const char* DRU_TEXT
static
Initial value:
= R"KICAD((version 1)
(rule "FastTopo"
(condition "A.NetClass == 'Default'")
(constraint length (min 0mm) (max 5mm))
(constraint net_chain_length (min 0mm) (max 200mm))
)
)KICAD"

Definition at line 59 of file test_drc_length_with_chain.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().