KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_junction_helpers.cpp File Reference
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <junction_helpers.h>
#include <sch_bus_entry.h>
#include <sch_line.h>
#include <sch_sheet.h>
#include <sch_sheet_pin.h>

Go to the source code of this file.

Classes

struct  JUNCTION_HELPER_FIXTURE
 

Functions

static SCH_LINEmake_wire (const VECTOR2I &aStart, const VECTOR2I &aEnd)
 
static SCH_LINEmake_bus (const VECTOR2I &aStart, const VECTOR2I &aEnd)
 
 BOOST_AUTO_TEST_CASE (Empty)
 Check that we can get the basic properties out as expected.
 
 BOOST_AUTO_TEST_CASE (SingleWireEnd)
 
 BOOST_AUTO_TEST_CASE (WireCorner)
 
 BOOST_AUTO_TEST_CASE (WireTee)
 
 BOOST_AUTO_TEST_CASE (BusEntryOnBus)
 
 BOOST_AUTO_TEST_CASE (BusEntryToWire)
 
 BOOST_AUTO_TEST_CASE (WireDirectToBus)
 
 BOOST_AUTO_TEST_CASE (WireCrossingBus)
 
 BOOST_AUTO_TEST_CASE (WireToBusEntryRoot)
 
 BOOST_AUTO_TEST_CASE (WireCrossingBusEntryRoot)
 
 BOOST_AUTO_TEST_CASE (WireCornerToBusEntry)
 
 BOOST_AUTO_TEST_CASE (WireTeeToBusEntry)
 
 BOOST_AUTO_TEST_CASE (SheetPinToOneWire)
 
 BOOST_AUTO_TEST_CASE (SheetPinToTwoWires)
 

Variables

static constexpr int BE_SIZE = 25400
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/14]

◆ BOOST_AUTO_TEST_CASE() [2/14]

BOOST_AUTO_TEST_CASE ( BusEntryToWire  )

◆ BOOST_AUTO_TEST_CASE() [3/14]

BOOST_AUTO_TEST_CASE ( Empty  )

Check that we can get the basic properties out as expected.

Definition at line 61 of file test_junction_helpers.cpp.

References JUNCTION_HELPERS::AnalyzePoint(), and info.

◆ BOOST_AUTO_TEST_CASE() [4/14]

BOOST_AUTO_TEST_CASE ( SheetPinToOneWire  )

◆ BOOST_AUTO_TEST_CASE() [5/14]

BOOST_AUTO_TEST_CASE ( SheetPinToTwoWires  )

◆ BOOST_AUTO_TEST_CASE() [6/14]

BOOST_AUTO_TEST_CASE ( SingleWireEnd  )

Definition at line 68 of file test_junction_helpers.cpp.

References JUNCTION_HELPERS::AnalyzePoint(), info, and make_wire().

◆ BOOST_AUTO_TEST_CASE() [7/14]

BOOST_AUTO_TEST_CASE ( WireCorner  )

Definition at line 82 of file test_junction_helpers.cpp.

References JUNCTION_HELPERS::AnalyzePoint(), info, and make_wire().

◆ BOOST_AUTO_TEST_CASE() [8/14]

BOOST_AUTO_TEST_CASE ( WireCornerToBusEntry  )

◆ BOOST_AUTO_TEST_CASE() [9/14]

BOOST_AUTO_TEST_CASE ( WireCrossingBus  )

◆ BOOST_AUTO_TEST_CASE() [10/14]

BOOST_AUTO_TEST_CASE ( WireCrossingBusEntryRoot  )

◆ BOOST_AUTO_TEST_CASE() [11/14]

BOOST_AUTO_TEST_CASE ( WireDirectToBus  )

◆ BOOST_AUTO_TEST_CASE() [12/14]

BOOST_AUTO_TEST_CASE ( WireTee  )

Definition at line 98 of file test_junction_helpers.cpp.

References JUNCTION_HELPERS::AnalyzePoint(), info, and make_wire().

◆ BOOST_AUTO_TEST_CASE() [13/14]

BOOST_AUTO_TEST_CASE ( WireTeeToBusEntry  )

◆ BOOST_AUTO_TEST_CASE() [14/14]

BOOST_AUTO_TEST_CASE ( WireToBusEntryRoot  )

◆ make_bus()

static SCH_LINE * make_bus ( const VECTOR2I aStart,
const VECTOR2I aEnd 
)
static

Definition at line 49 of file test_junction_helpers.cpp.

References LAYER_BUS, and SCH_LINE::SetEndPoint().

Referenced by BOOST_AUTO_TEST_CASE().

◆ make_wire()

static SCH_LINE * make_wire ( const VECTOR2I aStart,
const VECTOR2I aEnd 
)
static

Definition at line 42 of file test_junction_helpers.cpp.

References LAYER_WIRE, and SCH_LINE::SetEndPoint().

Referenced by BOOST_AUTO_TEST_CASE().

Variable Documentation

◆ BE_SIZE

constexpr int BE_SIZE = 25400
staticconstexpr

Definition at line 35 of file test_junction_helpers.cpp.

Referenced by BOOST_AUTO_TEST_CASE().