| 
    KiCad PCB EDA Suite
    
   | 
 
#include <qa_utils/wx_utils/unit_test_utils.h>#include <boost/test/data/test_case.hpp>#include <pcbnew_utils/board_test_utils.h>#include <board.h>#include <board_design_settings.h>#include <pad.h>#include <pcb_track.h>#include <footprint.h>#include <zone.h>#include <drc/drc_item.h>#include <settings/settings_manager.h>Go to the source code of this file.
Classes | |
| struct | ZONE_FILL_TEST_FIXTURE | 
Functions | |
| BOOST_FIXTURE_TEST_CASE (BasicZoneFills, ZONE_FILL_TEST_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (NotchedZones, ZONE_FILL_TEST_FIXTURE) | |
| BOOST_DATA_TEST_CASE_F (ZONE_FILL_TEST_FIXTURE, RegressionZoneFillTests, boost::unit_test::data::make(RegressionZoneFillTests_tests), relPath) | |
| BOOST_DATA_TEST_CASE_F (ZONE_FILL_TEST_FIXTURE, RegressionSliverZoneFillTests, boost::unit_test::data::make(RegressionSliverZoneFillTests_tests), relPath) | |
| BOOST_DATA_TEST_CASE_F (ZONE_FILL_TEST_FIXTURE, RegressionTeardropFill, boost::unit_test::data::make(RegressionTeardropFill_tests), test) | |
| BOOST_FIXTURE_TEST_CASE (RegressionNetTie, ZONE_FILL_TEST_FIXTURE) | |
Variables | |
| int | delta = KiROUND( 0.006 * pcbIUScale.IU_PER_MM ) | 
| static const std::vector< wxString > | RegressionZoneFillTests_tests | 
| static const std::vector< wxString > | RegressionSliverZoneFillTests_tests | 
| static const std::vector< std::pair< wxString, int > > | RegressionTeardropFill_tests | 
| BOOST_DATA_TEST_CASE_F | ( | ZONE_FILL_TEST_FIXTURE | , | 
| RegressionSliverZoneFillTests | , | ||
| boost::unit_test::data::make(RegressionSliverZoneFillTests_tests) | , | ||
| relPath | ) | 
Definition at line 234 of file test_zone_filler.cpp.
References BOOST_CHECK_EQUAL(), BOOST_TEST_MESSAGE(), DRCE_COPPER_SLIVER, KI_TEST::FillZones(), INCH, KI_TEST::LoadBoard(), BOARD_DESIGN_SETTINGS::m_DRCEngine, MM, pcbIUScale, RegressionSliverZoneFillTests_tests, RPT_SEVERITY_ERROR, DRC_ENGINE::RunTests(), and DRC_ENGINE::SetViolationHandler().
| BOOST_DATA_TEST_CASE_F | ( | ZONE_FILL_TEST_FIXTURE | , | 
| RegressionTeardropFill | , | ||
| boost::unit_test::data::make(RegressionTeardropFill_tests) | , | ||
| test | ) | 
Definition at line 281 of file test_zone_filler.cpp.
References KI_TEST::FillZones(), KI_TEST::LoadBoard(), and RegressionTeardropFill_tests.
| BOOST_DATA_TEST_CASE_F | ( | ZONE_FILL_TEST_FIXTURE | , | 
| RegressionZoneFillTests | , | ||
| boost::unit_test::data::make(RegressionZoneFillTests_tests) | , | ||
| relPath | ) | 
Definition at line 188 of file test_zone_filler.cpp.
References BOOST_CHECK_EQUAL(), BOOST_TEST_MESSAGE(), DRCE_CLEARANCE, KI_TEST::FillZones(), INCH, KI_TEST::LoadBoard(), BOARD_DESIGN_SETTINGS::m_DRCEngine, MM, pcbIUScale, RegressionZoneFillTests_tests, RPT_SEVERITY_ERROR, DRC_ENGINE::RunTests(), and DRC_ENGINE::SetViolationHandler().
| BOOST_FIXTURE_TEST_CASE | ( | BasicZoneFills | , | 
| ZONE_FILL_TEST_FIXTURE | ) | 
Definition at line 51 of file test_zone_filler.cpp.
References PADSTACK::ALL_LAYERS, BOOST_CHECK_EQUAL(), delta, DRCE_CLEARANCE, KI_TEST::FillZones(), PAD::GetNumber(), DRC_ENGINE::InitEngine(), KI_TEST::LoadBoard(), BOARD_DESIGN_SETTINGS::m_DRCEngine, EDA_ITEM::m_Uuid, MM, pad, PCB_ARC_T, DRC_ENGINE::RunTests(), and DRC_ENGINE::SetViolationHandler().
| BOOST_FIXTURE_TEST_CASE | ( | NotchedZones | , | 
| ZONE_FILL_TEST_FIXTURE | ) | 
Definition at line 144 of file test_zone_filler.cpp.
References SHAPE_POLY_SET::BooleanAdd(), BOOST_CHECK_EQUAL(), F_Cu, KI_TEST::FillZones(), KI_TEST::LoadBoard(), and SHAPE_POLY_SET::OutlineCount().
| BOOST_FIXTURE_TEST_CASE | ( | RegressionNetTie | , | 
| ZONE_FILL_TEST_FIXTURE | ) | 
Definition at line 307 of file test_zone_filler.cpp.
References clearance, KI_TEST::FillZones(), KI_TEST::LoadBoard(), and pad.
| int delta = KiROUND( 0.006 * pcbIUScale.IU_PER_MM ) | 
Definition at line 48 of file test_zone_filler.cpp.
Referenced by SYMBOL_EDITOR_MOVE_TOOL::AlignElements(), SCH_MOVE_TOOL::AlignToGrid(), EC_PERPLINE::Apply(), PNS::ApproximateSegmentAsRect(), PDF_PLOTTER::arcPath(), arcPts(), BezierToPolyline(), BOOST_FIXTURE_TEST_CASE(), PNS::DP_GATEWAYS::buildDpContinuation(), PCB_IO_KICAD_SEXPR_PARSER::checkpoint(), CircleToEndSegmentDeltaRadius(), LENGTH_DELAY_CALCULATION::clipLineToPad(), Collide(), Collide(), Collide(), Collide(), Collide(), SHAPE_POLY_SET::CollideVertex(), LOCAL_HISTORY::CommitSnapshot(), SCH_LINE_WIRE_BUS_TOOL::computeBreakPoint(), COUPLED_MICROSTRIP::conductor_losses(), MICROSTRIP::conductor_losses(), ConnectBoardShapes(), ConvertArcToPolyline(), GERBER_DRAW_ITEM::ConvertSegmentToPolygon(), AM_PRIMITIVE::ConvertShapeToPolygon(), D_CODE::ConvertShapeToPolygon(), PNS::coupledBypass(), BOARD_ADAPTER::createArcSegments(), EXCELLON_WRITER::createDrillFile(), ALIGN_DISTRIBUTE_TOOL::doDistributeCenters(), ALIGN_DISTRIBUTE_TOOL::doDistributeGaps(), SCH_MOVE_TOOL::doMoveSelection(), SYMBOL_EDITOR_MOVE_TOOL::doMoveSelection(), KIGFX::SCH_PAINTER::draw(), DRAWING_TOOL::DrawDimension(), D_CODE::DrawFlashedShape(), KIGFX::GERBVIEW_PAINTER::drawFlashedShape(), DrawHalfOpenCylinder(), KIGFX::PREVIEW::DRAW_CONTEXT::DrawLineDashed(), editArcEndpointKeepTangent(), fillArcGBRITEM(), PSLIKE_PLOTTER::FlashPadOval(), PCB_IO_KICAD_SEXPR::format(), RENDER_3D_OPENGL::generate3dGrid(), RENDER_3D_OPENGL::generateDimple(), RENDER_3D_OPENGL::generateDisk(), RENDER_3D_OPENGL::generateRing(), KIBIS_MODEL::generateSquareWave(), PCB_DIM_ALIGNED::GetAngle(), SCH_NO_CONNECT::GetBoundingBox(), GetDeltasForDistributeByGaps(), GetDeltasForDistributeByPoints(), KIGIT_COMMON::GetDifferentFiles(), SNAP_LINE_MANAGER::GetNearestSnapLinePoint(), BOARD::GetPad(), SCH_FIELD::GetRenderCache(), GERBER_DRAW_ITEM::GetTextD_CodePrms(), PAD::HitTest(), PAD::HitTest(), SCH_NO_CONNECT::HitTest(), SCH_DRAWING_TOOLS::ImportGraphics(), SYMBOL_EDITOR_DRAWING_TOOLS::ImportGraphics(), SCH_DRAWING_TOOLS::ImportSheet(), SCH_MOVE_TOOL::initializeMoveOperation(), CYLINDER::Intersect(), CYLINDER::IntersectP(), BOX2< VECTOR2I >::Intersects(), BEZIER_POLY::isFlat(), PNS::IsSegment45Degree(), CADSTAR_SCH_ARCHIVE_LOADER::loadLibPart(), PCB_IO_EAGLE::loadPlain(), PCB_SELECTION_TOOL::Main(), PL_EDIT_TOOL::Main(), SCH_SELECTION_TOOL::Main(), DSN::SPECCTRA_DB::makePADSTACK(), TRANSFORM::MapAngles(), MapAnglesV6(), SCH_DIRECTIVE_LABEL::MirrorHorizontally(), SCH_LABEL_BASE::MirrorHorizontally(), SCH_DIRECTIVE_LABEL::MirrorSpinStyle(), SCH_LABEL_BASE::MirrorSpinStyle(), SCH_DIRECTIVE_LABEL::MirrorVertically(), SCH_LABEL_BASE::MirrorVertically(), mpInfoLayer::Move(), PNS::HOLE::Move(), SCH_ALIGN_TOOL::moveItem(), SCH_MOVE_TOOL::moveItem(), NearestPoints(), SCH_TEXT::NormalizeJustification(), DIALOG_SHIM::OnCharHook(), KIGFX::WX_VIEW_CONTROLS::onMotion(), KIGFX::WX_VIEW_CONTROLS::onScroll(), PCB_POINT_EDITOR::OnSelectionChange(), KIGFX::WX_VIEW_CONTROLS::onWheel(), PCB_IO_EAGLE::packageCircle(), PCB_IO_EAGLE::packagePolygon(), PCB_IO_EASYEDAPRO_PARSER::ParseBoard(), PCB_IO_EASYEDAPRO_PARSER::ParseContour(), GPCB_FPL_CACHE::parseFOOTPRINT(), EASYEDA_PARSER_BASE::ParseLineChains(), PCB_IO_KICAD_SEXPR_PARSER::parsePAD(), PCB_IO_KICAD_SEXPR_PARSER::parsePadstack(), PCB_IO_EASYEDAPRO_PARSER::ParsePoly(), PCB_IO_EASYEDA_PARSER::ParseToBoardItemContainer(), DRAWING_TOOL::PlaceImportedGraphics(), SCH_NO_CONNECT::Plot(), PLOTTER::polyArc(), SCH_SHEET_PIN::Rotate(), CURSOR::SetCoordX(), SCH_LINE::SetLength(), PNS::SOLID::SetPos(), FOOTPRINT::SetPosition(), PCB_BARCODE::SetPosition(), PCB_GROUP::SetPosition(), SCH_GROUP::SetPosition(), SCH_SHEET::SetPositionIgnoringPins(), PCB_BARCODE::SetRect(), KIGFX::VIEW::SetScale(), PCB_TEXTBOX::SetTextAngle(), GRID_HELPER::SnapToConstructionLines(), COUPLED_STRIPLINE::Synthesize(), TestSegmentHit(), BEZIER_POLY::thirdControlPointDeviation(), KIGFX::COLOR4D::ToHSV(), DIALOG_PAD_PROPERTIES::transferDataToPad(), TransformCircleToPolygon(), TransformCircleToPolygon(), TransformOvalToPolygon(), PAD::TransformShapeToPolygon(), SETTINGS_MANAGER::TriggerBackupIfNeeded(), DIM_LEADER_POINT_EDIT_BEHAVIOR::UpdateItem(), SHAPE_GROUP_POINT_EDIT_BEHAVIOR::UpdateItem(), BOARD_INSPECTION_TOOL::UpdateLocalRatsnest(), and PCB_PROPERTIES_PANEL::valueChanged().
      
  | 
  static | 
Definition at line 229 of file test_zone_filler.cpp.
Referenced by BOOST_DATA_TEST_CASE_F().
      
  | 
  static | 
Definition at line 276 of file test_zone_filler.cpp.
Referenced by BOOST_DATA_TEST_CASE_F().
      
  | 
  static | 
Definition at line 170 of file test_zone_filler.cpp.
Referenced by BOOST_DATA_TEST_CASE_F().