|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <sstream>#include <pcb_io/pads/pads_parser.h>#include <pcbnew_utils/board_file_utils.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (Part_DefaultConstruction) | |
| BOOST_AUTO_TEST_CASE (Part_SingleDecal) | |
| BOOST_AUTO_TEST_CASE (Part_AlternateDecals) | |
| BOOST_AUTO_TEST_CASE (DecalStringSplit_SingleDecal) | |
| BOOST_AUTO_TEST_CASE (DecalStringSplit_TwoDecals) | |
| BOOST_AUTO_TEST_CASE (DecalStringSplit_ThreeDecals) | |
| BOOST_AUTO_TEST_CASE (DecalStringSplit_ManyDecals) | |
| BOOST_AUTO_TEST_CASE (Parameters_DefaultThermalSettings) | |
| BOOST_AUTO_TEST_CASE (Parameters_CustomThermalSettings) | |
| BOOST_AUTO_TEST_CASE (Pour_DefaultConstruction) | |
| BOOST_AUTO_TEST_CASE (Pour_CutoutFlag) | |
| BOOST_AUTO_TEST_CASE (ReuseInstance_DefaultConstruction) | |
| BOOST_AUTO_TEST_CASE (ReuseInstance_WithValues) | |
| BOOST_AUTO_TEST_CASE (ReuseBlock_DefaultConstruction) | |
| BOOST_AUTO_TEST_CASE (ReuseBlock_WithContents) | |
| BOOST_AUTO_TEST_CASE (ReuseBlock_PartMembershipMapping) | |
| BOOST_AUTO_TEST_CASE (ReuseBlock_EmptyBlocksMap) | |
| BOOST_AUTO_TEST_CASE (ReuseBlock_GroupCreationCondition) | |
| BOOST_AUTO_TEST_CASE (Cluster_DefaultConstruction) | |
| BOOST_AUTO_TEST_CASE (Cluster_WithContents) | |
| BOOST_AUTO_TEST_CASE (Cluster_SegmentRefDetection) | |
| BOOST_AUTO_TEST_CASE (TestPoint_DefaultConstruction) | |
| BOOST_AUTO_TEST_CASE (TestPoint_ViaType) | |
| BOOST_AUTO_TEST_CASE (TestPoint_PinType) | |
| BOOST_AUTO_TEST_CASE (TestPoint_SideValues) | |
| BOOST_AUTO_TEST_CASE (Dimension_DefaultConstruction) | |
| BOOST_AUTO_TEST_CASE (Dimension_WithValues) | |
| BOOST_AUTO_TEST_CASE (Dimension_NamePrefix) | |
| BOOST_AUTO_TEST_CASE (DesignRules_DefaultConstruction) | |
| BOOST_AUTO_TEST_CASE (DesignRules_WithValues) | |
| BOOST_AUTO_TEST_CASE (NetClassDef_DefaultConstruction) | |
| BOOST_AUTO_TEST_CASE (NetClassDef_WithValues) | |
| BOOST_AUTO_TEST_CASE (DiffPairDef_DefaultConstruction) | |
| BOOST_AUTO_TEST_CASE (DiffPairDef_WithValues) | |
| BOOST_AUTO_TEST_CASE | ( | Cluster_DefaultConstruction | ) |
Definition at line 476 of file test_pads_part_structures.cpp.
References BOOST_CHECK_EQUAL(), PADS_IO::CLUSTER::id, PADS_IO::CLUSTER::name, PADS_IO::CLUSTER::net_names, and PADS_IO::CLUSTER::segment_refs.
| BOOST_AUTO_TEST_CASE | ( | Cluster_SegmentRefDetection | ) |
Definition at line 511 of file test_pads_part_structures.cpp.
References BOOST_CHECK_EQUAL().
| BOOST_AUTO_TEST_CASE | ( | Cluster_WithContents | ) |
Definition at line 486 of file test_pads_part_structures.cpp.
References BOOST_CHECK_EQUAL(), PADS_IO::CLUSTER::id, PADS_IO::CLUSTER::name, PADS_IO::CLUSTER::net_names, and PADS_IO::CLUSTER::segment_refs.
| BOOST_AUTO_TEST_CASE | ( | DecalStringSplit_ManyDecals | ) |
Definition at line 196 of file test_pads_part_structures.cpp.
References BOOST_CHECK_EQUAL().
| BOOST_AUTO_TEST_CASE | ( | DecalStringSplit_SingleDecal | ) |
Definition at line 72 of file test_pads_part_structures.cpp.
References BOOST_CHECK_EQUAL().
| BOOST_AUTO_TEST_CASE | ( | DecalStringSplit_ThreeDecals | ) |
Definition at line 154 of file test_pads_part_structures.cpp.
References BOOST_CHECK_EQUAL().
| BOOST_AUTO_TEST_CASE | ( | DecalStringSplit_TwoDecals | ) |
Definition at line 113 of file test_pads_part_structures.cpp.
References BOOST_CHECK_EQUAL().
| BOOST_AUTO_TEST_CASE | ( | DesignRules_DefaultConstruction | ) |
Definition at line 646 of file test_pads_part_structures.cpp.
References PADS_IO::DESIGN_RULES::default_clearance, PADS_IO::DESIGN_RULES::default_track_width, PADS_IO::DESIGN_RULES::default_via_drill, PADS_IO::DESIGN_RULES::default_via_size, PADS_IO::DESIGN_RULES::hole_to_hole, PADS_IO::DESIGN_RULES::mask_clearance, PADS_IO::DESIGN_RULES::min_clearance, PADS_IO::DESIGN_RULES::min_track_width, PADS_IO::DESIGN_RULES::min_via_drill, PADS_IO::DESIGN_RULES::min_via_size, and PADS_IO::DESIGN_RULES::silk_clearance.
| BOOST_AUTO_TEST_CASE | ( | DesignRules_WithValues | ) |
Definition at line 664 of file test_pads_part_structures.cpp.
References PADS_IO::DESIGN_RULES::default_clearance, PADS_IO::DESIGN_RULES::default_track_width, PADS_IO::DESIGN_RULES::default_via_drill, PADS_IO::DESIGN_RULES::default_via_size, PADS_IO::DESIGN_RULES::hole_to_hole, PADS_IO::DESIGN_RULES::mask_clearance, PADS_IO::DESIGN_RULES::min_clearance, PADS_IO::DESIGN_RULES::min_track_width, PADS_IO::DESIGN_RULES::min_via_drill, PADS_IO::DESIGN_RULES::min_via_size, and PADS_IO::DESIGN_RULES::silk_clearance.
| BOOST_AUTO_TEST_CASE | ( | DiffPairDef_DefaultConstruction | ) |
Definition at line 735 of file test_pads_part_structures.cpp.
References BOOST_CHECK_EQUAL(), PADS_IO::DIFF_PAIR_DEF::gap, PADS_IO::DIFF_PAIR_DEF::name, PADS_IO::DIFF_PAIR_DEF::negative_net, PADS_IO::DIFF_PAIR_DEF::positive_net, and PADS_IO::DIFF_PAIR_DEF::width.
| BOOST_AUTO_TEST_CASE | ( | DiffPairDef_WithValues | ) |
Definition at line 746 of file test_pads_part_structures.cpp.
References BOOST_CHECK_EQUAL(), PADS_IO::DIFF_PAIR_DEF::gap, PADS_IO::DIFF_PAIR_DEF::name, PADS_IO::DIFF_PAIR_DEF::negative_net, PADS_IO::DIFF_PAIR_DEF::positive_net, and PADS_IO::DIFF_PAIR_DEF::width.
| BOOST_AUTO_TEST_CASE | ( | Dimension_DefaultConstruction | ) |
Definition at line 590 of file test_pads_part_structures.cpp.
References BOOST_CHECK_EQUAL(), PADS_IO::DIMENSION::layer, PADS_IO::DIMENSION::name, PADS_IO::DIMENSION::points, PADS_IO::DIMENSION::rotation, PADS_IO::DIMENSION::text, PADS_IO::DIMENSION::text_height, PADS_IO::DIMENSION::text_width, PADS_IO::DIMENSION::x, and PADS_IO::DIMENSION::y.
| BOOST_AUTO_TEST_CASE | ( | Dimension_NamePrefix | ) |
Definition at line 633 of file test_pads_part_structures.cpp.
| BOOST_AUTO_TEST_CASE | ( | Dimension_WithValues | ) |
Definition at line 605 of file test_pads_part_structures.cpp.
References BOOST_CHECK_EQUAL(), PADS_IO::DIMENSION::layer, PADS_IO::DIMENSION::name, PADS_IO::DIMENSION::points, PADS_IO::DIMENSION::rotation, PADS_IO::DIMENSION::text, PADS_IO::DIMENSION::text_height, PADS_IO::DIMENSION::text_width, PADS_IO::DIMENSION::x, and PADS_IO::DIMENSION::y.
| BOOST_AUTO_TEST_CASE | ( | NetClassDef_DefaultConstruction | ) |
Definition at line 693 of file test_pads_part_structures.cpp.
References BOOST_CHECK_EQUAL(), PADS_IO::NET_CLASS_DEF::clearance, PADS_IO::NET_CLASS_DEF::diff_pair_gap, PADS_IO::NET_CLASS_DEF::diff_pair_width, PADS_IO::NET_CLASS_DEF::name, PADS_IO::NET_CLASS_DEF::net_names, PADS_IO::NET_CLASS_DEF::track_width, PADS_IO::NET_CLASS_DEF::via_drill, and PADS_IO::NET_CLASS_DEF::via_size.
| BOOST_AUTO_TEST_CASE | ( | NetClassDef_WithValues | ) |
Definition at line 707 of file test_pads_part_structures.cpp.
References BOOST_CHECK_EQUAL(), PADS_IO::NET_CLASS_DEF::clearance, PADS_IO::NET_CLASS_DEF::diff_pair_gap, PADS_IO::NET_CLASS_DEF::diff_pair_width, PADS_IO::NET_CLASS_DEF::name, PADS_IO::NET_CLASS_DEF::net_names, PADS_IO::NET_CLASS_DEF::track_width, PADS_IO::NET_CLASS_DEF::via_drill, and PADS_IO::NET_CLASS_DEF::via_size.
| BOOST_AUTO_TEST_CASE | ( | Parameters_CustomThermalSettings | ) |
| BOOST_AUTO_TEST_CASE | ( | Parameters_DefaultThermalSettings | ) |
| BOOST_AUTO_TEST_CASE | ( | Part_AlternateDecals | ) |
Definition at line 58 of file test_pads_part_structures.cpp.
References PADS_IO::PART::alternate_decals, BOOST_CHECK_EQUAL(), and PADS_IO::PART::decal.
| BOOST_AUTO_TEST_CASE | ( | Part_DefaultConstruction | ) |
Definition at line 35 of file test_pads_part_structures.cpp.
References PADS_IO::PART::alternate_decals, BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), PADS_IO::PART::bottom_layer, PADS_IO::PART::decal, PADS_IO::PART::glued, PADS_IO::PART::name, PADS_IO::PART::rotation, and PADS_IO::PART::value.
| BOOST_AUTO_TEST_CASE | ( | Part_SingleDecal | ) |
Definition at line 48 of file test_pads_part_structures.cpp.
References PADS_IO::PART::alternate_decals, BOOST_CHECK_EQUAL(), and PADS_IO::PART::decal.
| BOOST_AUTO_TEST_CASE | ( | Pour_CutoutFlag | ) |
Definition at line 281 of file test_pads_part_structures.cpp.
References BOOST_CHECK_EQUAL(), PADS_IO::POUR::is_cutout, PADS_IO::POUR::layer, PADS_IO::POUR::net_name, and PADS_IO::POUR::owner_pour.
| BOOST_AUTO_TEST_CASE | ( | Pour_DefaultConstruction | ) |
Definition at line 268 of file test_pads_part_structures.cpp.
References BOOST_CHECK_EQUAL(), PADS_IO::POUR::is_cutout, PADS_IO::POUR::layer, PADS_IO::POUR::net_name, PADS_IO::POUR::owner_pour, PADS_IO::POUR::points, PADS_IO::POUR::priority, and PADS_IO::POUR::width.
| BOOST_AUTO_TEST_CASE | ( | ReuseBlock_DefaultConstruction | ) |
Definition at line 335 of file test_pads_part_structures.cpp.
References BOOST_CHECK_EQUAL(), PADS_IO::REUSE_BLOCK::instances, PADS_IO::REUSE_BLOCK::name, PADS_IO::REUSE_BLOCK::net_naming, PADS_IO::REUSE_BLOCK::nets, PADS_IO::REUSE_BLOCK::part_names, PADS_IO::REUSE_BLOCK::part_naming, and PADS_IO::REUSE_BLOCK::timestamp.
| BOOST_AUTO_TEST_CASE | ( | ReuseBlock_EmptyBlocksMap | ) |
Definition at line 431 of file test_pads_part_structures.cpp.
| BOOST_AUTO_TEST_CASE | ( | ReuseBlock_GroupCreationCondition | ) |
Definition at line 449 of file test_pads_part_structures.cpp.
References BOOST_CHECK_EQUAL(), PADS_IO::REUSE_INSTANCE::instance_name, PADS_IO::REUSE_BLOCK::instances, PADS_IO::REUSE_BLOCK::name, and PADS_IO::REUSE_BLOCK::part_names.
| BOOST_AUTO_TEST_CASE | ( | ReuseBlock_PartMembershipMapping | ) |
Definition at line 393 of file test_pads_part_structures.cpp.
References BOOST_CHECK_EQUAL(), PADS_IO::REUSE_BLOCK::name, and PADS_IO::REUSE_BLOCK::part_names.
| BOOST_AUTO_TEST_CASE | ( | ReuseBlock_WithContents | ) |
Definition at line 348 of file test_pads_part_structures.cpp.
References BOOST_CHECK_EQUAL(), PADS_IO::REUSE_INSTANCE::instance_name, PADS_IO::REUSE_BLOCK::instances, PADS_IO::REUSE_INSTANCE::location, PADS_IO::REUSE_NET::merge, PADS_IO::REUSE_BLOCK::name, PADS_IO::REUSE_NET::name, PADS_IO::REUSE_BLOCK::net_naming, PADS_IO::REUSE_BLOCK::nets, PADS_IO::REUSE_BLOCK::part_names, PADS_IO::REUSE_BLOCK::part_naming, PADS_IO::REUSE_BLOCK::timestamp, PADS_IO::POINT::x, and PADS_IO::POINT::y.
| BOOST_AUTO_TEST_CASE | ( | ReuseInstance_DefaultConstruction | ) |
Definition at line 301 of file test_pads_part_structures.cpp.
References BOOST_CHECK_EQUAL(), PADS_IO::REUSE_INSTANCE::glued, PADS_IO::REUSE_INSTANCE::instance_name, PADS_IO::REUSE_INSTANCE::location, PADS_IO::REUSE_INSTANCE::net_naming, PADS_IO::REUSE_INSTANCE::part_naming, PADS_IO::REUSE_INSTANCE::rotation, PADS_IO::POINT::x, and PADS_IO::POINT::y.
| BOOST_AUTO_TEST_CASE | ( | ReuseInstance_WithValues | ) |
Definition at line 314 of file test_pads_part_structures.cpp.
References BOOST_CHECK_EQUAL(), PADS_IO::REUSE_INSTANCE::glued, PADS_IO::REUSE_INSTANCE::instance_name, PADS_IO::REUSE_INSTANCE::location, PADS_IO::REUSE_INSTANCE::net_naming, PADS_IO::REUSE_INSTANCE::part_naming, PADS_IO::REUSE_INSTANCE::rotation, PADS_IO::POINT::x, and PADS_IO::POINT::y.
| BOOST_AUTO_TEST_CASE | ( | TestPoint_DefaultConstruction | ) |
Definition at line 528 of file test_pads_part_structures.cpp.
References BOOST_CHECK_EQUAL(), and tp.
| BOOST_AUTO_TEST_CASE | ( | TestPoint_PinType | ) |
Definition at line 559 of file test_pads_part_structures.cpp.
References BOOST_CHECK_EQUAL(), and tp.
| BOOST_AUTO_TEST_CASE | ( | TestPoint_SideValues | ) |
Definition at line 576 of file test_pads_part_structures.cpp.
References BOOST_CHECK_EQUAL(), and PADS_IO::TEST_POINT::side.
| BOOST_AUTO_TEST_CASE | ( | TestPoint_ViaType | ) |
Definition at line 540 of file test_pads_part_structures.cpp.
References BOOST_CHECK_EQUAL(), and tp.