KiCad PCB EDA Suite
|
#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_LINE * | make_wire (const VECTOR2I &aStart, const VECTOR2I &aEnd) |
static SCH_LINE * | make_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 |
BOOST_AUTO_TEST_CASE | ( | BusEntryOnBus | ) |
Definition at line 116 of file test_junction_helpers.cpp.
References JUNCTION_HELPERS::AnalyzePoint(), BE_SIZE, SCH_BUS_ENTRY_BASE::GetEnd(), SCH_BUS_ENTRY_BASE::GetPosition(), JUNCTION_HELPERS::POINT_INFO::hasBusEntry, JUNCTION_HELPERS::POINT_INFO::hasBusEntryToMultipleWires, JUNCTION_HELPERS::POINT_INFO::isJunction, and make_bus().
BOOST_AUTO_TEST_CASE | ( | BusEntryToWire | ) |
Definition at line 148 of file test_junction_helpers.cpp.
References JUNCTION_HELPERS::AnalyzePoint(), BE_SIZE, info, and make_wire().
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 | ( | SheetPinToOneWire | ) |
Definition at line 293 of file test_junction_helpers.cpp.
References SCH_SHEET::AddPin(), JUNCTION_HELPERS::AnalyzePoint(), BE_SIZE, info, SCH_ITEM::IsConnected(), make_wire(), pin, and RIGHT.
BOOST_AUTO_TEST_CASE | ( | SheetPinToTwoWires | ) |
Definition at line 323 of file test_junction_helpers.cpp.
References SCH_SHEET::AddPin(), JUNCTION_HELPERS::AnalyzePoint(), BE_SIZE, info, SCH_ITEM::IsConnected(), make_wire(), pin, and RIGHT.
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 | ( | WireCorner | ) |
Definition at line 82 of file test_junction_helpers.cpp.
References JUNCTION_HELPERS::AnalyzePoint(), info, and make_wire().
BOOST_AUTO_TEST_CASE | ( | WireCornerToBusEntry | ) |
Definition at line 246 of file test_junction_helpers.cpp.
References JUNCTION_HELPERS::AnalyzePoint(), BE_SIZE, info, make_bus(), and make_wire().
BOOST_AUTO_TEST_CASE | ( | WireCrossingBus | ) |
Definition at line 182 of file test_junction_helpers.cpp.
References JUNCTION_HELPERS::AnalyzePoint(), BE_SIZE, info, make_bus(), and make_wire().
BOOST_AUTO_TEST_CASE | ( | WireCrossingBusEntryRoot | ) |
Definition at line 222 of file test_junction_helpers.cpp.
References JUNCTION_HELPERS::AnalyzePoint(), BE_SIZE, info, make_bus(), and make_wire().
BOOST_AUTO_TEST_CASE | ( | WireDirectToBus | ) |
Definition at line 166 of file test_junction_helpers.cpp.
References JUNCTION_HELPERS::AnalyzePoint(), BE_SIZE, info, make_bus(), and make_wire().
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 | ( | WireTeeToBusEntry | ) |
Definition at line 269 of file test_junction_helpers.cpp.
References JUNCTION_HELPERS::AnalyzePoint(), BE_SIZE, info, make_bus(), and make_wire().
BOOST_AUTO_TEST_CASE | ( | WireToBusEntryRoot | ) |
Definition at line 202 of file test_junction_helpers.cpp.
References JUNCTION_HELPERS::AnalyzePoint(), BE_SIZE, info, make_bus(), and make_wire().
Definition at line 49 of file test_junction_helpers.cpp.
References LAYER_BUS, and SCH_LINE::SetEndPoint().
Referenced by BOOST_AUTO_TEST_CASE().
Definition at line 42 of file test_junction_helpers.cpp.
References LAYER_WIRE, and SCH_LINE::SetEndPoint().
Referenced by BOOST_AUTO_TEST_CASE().
|
staticconstexpr |
Definition at line 35 of file test_junction_helpers.cpp.
Referenced by BOOST_AUTO_TEST_CASE().