#include <qa_utils/wx_utils/unit_test_utils.h>
#include <boost/test/data/test_case.hpp>
#include <optional>
#include <ostream>
#include <string>
#include <utility>
#include <vector>
#include <footprint_utils.h>
#include <board.h>
#include <footprint.h>
#include <pad.h>
Go to the source code of this file.
◆ BOOST_DATA_TEST_CASE() [1/2]
| BOOST_DATA_TEST_CASE |
( |
TestAllCases | , |
|
|
boost::unit_test::data::make(FpAlignmentTestCases) | , |
|
|
testCase | ) |
◆ BOOST_DATA_TEST_CASE() [2/2]
| BOOST_DATA_TEST_CASE |
( |
TestSelfToSelfCases | , |
|
|
boost::unit_test::data::make(FpSelfToSelfCases) | , |
|
|
selfCase | ) |
◆ operator<<() [1/2]
| std::ostream & operator<< |
( |
std::ostream & | os, |
|
|
const ALIGN_FP_DEF & | fpDef ) |
◆ operator<<() [2/2]
◆ FpAlignmentTestCases
◆ FpDef_DIP4_OrigBodyCenter
Initial value:{
"DIP4, body center at origin",
{
{ "1", { -1000, -500 } },
{ "2", { -1000, 500 } },
{ "3", { 1000, -500 } },
{ "4", { 1000, 500 } },
},
}
Definition at line 155 of file test_footprint_realignment.cpp.
◆ FpDef_DIP4_OrigBodyCenter_Rotated90DegCCW
| const ALIGN_FP_DEF FpDef_DIP4_OrigBodyCenter_Rotated90DegCCW |
|
static |
Initial value:{
"DIP4, body center at origin, rotated 90 deg CCW",
{
{ "1", { -500, 1000 } },
{ "2", { 500, 1000 } },
{ "3", { 500, -1000 } },
{ "4", { -500, -1000 } },
},
}
Definition at line 179 of file test_footprint_realignment.cpp.
◆ FpDef_DIP4_OrigPin1
Initial value:{
"DIP4, pin 1 at origin",
{
{ "1", { 0, 0 } },
{ "2", { 0, 1000 } },
{ "3", { 2000, 0 } },
{ "4", { 2000, 1000 } },
},
}
Definition at line 144 of file test_footprint_realignment.cpp.
◆ FpDef_DIP4_Pin4Deleted
Initial value:{
"DIP4, pin 4 deleted",
{
{ "1", { 0, 0 } },
{ "2", { 0, 1000 } },
{ "3", { 2000, 0 } },
},
}
Definition at line 190 of file test_footprint_realignment.cpp.
◆ FpDef_DIP4_Pin4Moved
Initial value:{
"DIP4, pin 4 moved",
{
{ "1", { 0, 0 } },
{ "2", { 0, 1000 } },
{ "3", { 2000, 0 } },
{ "4", { 2100, 1000 } },
},
}
Definition at line 200 of file test_footprint_realignment.cpp.
◆ FpDef_DIP4_Rotated90DegCCW
Initial value:{
"DIP4, rotated 90 deg CCW",
{
{ "1", { 0, 0 } },
{ "2", { 1000, 0 } },
{ "3", { 1000, -2000 } },
{ "4", { 0, -2000 } },
},
}
Definition at line 168 of file test_footprint_realignment.cpp.
◆ FpDef_DIP4_Widened
Initial value:{
"DIP4, widened",
{
{ "1", { 0, 0 } },
{ "2", { 0, 1000 } },
{ "3", { 2400, 0 } },
{ "4", { 2400, 1000 } },
},
}
Definition at line 211 of file test_footprint_realignment.cpp.
◆ FpDef_DIP4_WithMPs
Initial value:{
"DIP4, with mechanical pins",
{
{ "1", { 0, 0 } },
{ "2", { 0, 1000 } },
{ "3", { 2000, 0 } },
{ "4", { 2000, 1000 } },
{ "MP", { -1000, 500 } },
{ "MP", { 3000, 500 } },
},
}
Definition at line 222 of file test_footprint_realignment.cpp.
◆ FpDef_NoPins
◆ FpSelfToSelfCases