KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_drc_chain_length_trunk.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <filesystem>
#include <fstream>
#include <board.h>
#include <board_design_settings.h>
#include <drc/drc_chain_topology.h>
#include <drc/drc_engine.h>
#include <drc/drc_item.h>
#include <footprint.h>
#include <netinfo.h>
#include <pad.h>
#include <pcb_marker.h>
#include <pcb_track.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 (DaisyChainTrunkEqualsSumExplicit)
 
 BOOST_AUTO_TEST_CASE (BranchedChainTrunkExcludesStubs)
 

Variables

static const char * DAISY_PCB
 
static const char * BRANCHED_PCB
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( BranchedChainTrunkExcludesStubs )

◆ BOOST_AUTO_TEST_CASE() [2/2]

BOOST_AUTO_TEST_CASE ( DaisyChainTrunkEqualsSumExplicit )

Variable Documentation

◆ BRANCHED_PCB

const char* BRANCHED_PCB
static
Initial value:
= R"(
(kicad_pcb
(version 20250904)
(generator "pcbnew")
(generator_version "9.99")
(layers
(0 "F.Cu" signal)
(2 "B.Cu" signal)
(44 "Edge.Cuts" user)
)
(net 0 "")
(net 1 "/NET_A")
(gr_line (start -5 -25) (end 60 -25) (layer "Edge.Cuts") (width 0.05))
(gr_line (start 60 -25) (end 60 25) (layer "Edge.Cuts") (width 0.05))
(gr_line (start 60 25) (end -5 25) (layer "Edge.Cuts") (width 0.05))
(gr_line (start -5 25) (end -5 -25) (layer "Edge.Cuts") (width 0.05))
(footprint "Term1" (layer "F.Cu") (uuid "00000000-0000-0000-0000-000000000d01")
(at 0 0)
(pad "1" smd rect (at 0 0) (size 0.8 0.8) (layers "F.Cu") (net 1 "/NET_A") (uuid "00000000-0000-0000-0000-000000000d02"))
)
(footprint "Term2" (layer "F.Cu") (uuid "00000000-0000-0000-0000-000000000e01")
(at 50 0)
(pad "1" smd rect (at 0 0) (size 0.8 0.8) (layers "F.Cu") (net 1 "/NET_A") (uuid "00000000-0000-0000-0000-000000000e02"))
)
(segment (start 0 0) (end 50 0) (width 0.2) (layer "F.Cu") (net 1))
(segment (start 12.5 0) (end 12.5 15) (width 0.2) (layer "F.Cu") (net 1))
(segment (start 25 0) (end 25 -20) (width 0.2) (layer "F.Cu") (net 1))
(segment (start 37.5 0) (end 37.5 18) (width 0.2) (layer "F.Cu") (net 1))
)
)"

Definition at line 82 of file test_drc_chain_length_trunk.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

◆ DAISY_PCB

const char* DAISY_PCB
static

Definition at line 42 of file test_drc_chain_length_trunk.cpp.

Referenced by BOOST_AUTO_TEST_CASE().