KiCad PCB EDA Suite
|
#include <filesystem>
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <boost/test/unit_test.hpp>
#include <board.h>
#include <footprint.h>
#include <pcb_text.h>
#include <pcb_barcode.h>
#include <pcbnew_utils/board_file_utils.h>
#include <pcbnew_utils/board_test_utils.h>
#include <settings/settings_manager.h>
#include <geometry/convex_hull.h>
Go to the source code of this file.
Functions | |
BOOST_AUTO_TEST_CASE (BarcodeWriteRead) | |
BOOST_AUTO_TEST_CASE (BarcodeFootprintWriteRead) | |
BOOST_AUTO_TEST_CASE (BarcodePositioningAlignment) | |
BOOST_AUTO_TEST_CASE | ( | BarcodeFootprintWriteRead | ) |
Definition at line 76 of file test_barcode_load_save.cpp.
References FOOTPRINT::Add(), APPEND, PCB_BARCODE::AssembleBarcode(), SHAPE_POLY_SET::BBox(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOX2< Vec >::Centre(), KI_TEST::DumpFootprintToFile(), F_SilkS, PCB_BARCODE::GetErrorCorrection(), PCB_BARCODE::GetHeight(), PCB_BARCODE::GetKind(), PCB_BARCODE::GetPolyShape(), PCB_BARCODE::GetText(), PCB_BARCODE::GetTextSize(), PCB_BARCODE::GetWidth(), M, EDA_ITEM::m_Uuid, PCB_BARCODE_T, pcbIUScale, QR_CODE, KI_TEST::ReadFootprintFromFileOrStream(), PCB_BARCODE::SetErrorCorrection(), PCB_BARCODE::SetHeight(), PCB_BARCODE::SetKind(), PCB_BARCODE::SetLayer(), PCB_BARCODE::SetPosition(), PCB_BARCODE::SetText(), PCB_BARCODE::SetTextSize(), and PCB_BARCODE::SetWidth().
BOOST_AUTO_TEST_CASE | ( | BarcodePositioningAlignment | ) |
Definition at line 124 of file test_barcode_load_save.cpp.
References SHAPE_POLY_SET::AddOutline(), APPEND, ARC_LOW_DEF, PCB_BARCODE::AssembleBarcode(), SHAPE_POLY_SET::BooleanSubtract(), CODE_128, CODE_39, DATA_MATRIX, DEGREES_T, F_SilkS, PCB_BARCODE::GetAngle(), PCB_BARCODE::GetPolyShape(), PCB_BARCODE::GetPosition(), SHAPE_POLY_SET::Inflate(), SHAPE_POLY_SET::IsEmpty(), M, MICRO_QR_CODE, SHAPE_POLY_SET::Move(), SHAPE_POLY_SET::Outline(), SHAPE_POLY_SET::OutlineCount(), QR_CODE, PCB_BARCODE::Rotate(), SHAPE_POLY_SET::Rotate(), ROUND_ALL_CORNERS, PCB_BARCODE::SetErrorCorrection(), PCB_BARCODE::SetHeight(), PCB_BARCODE::SetIsKnockout(), PCB_BARCODE::SetKind(), PCB_BARCODE::SetLayer(), PCB_BARCODE::SetPosition(), PCB_BARCODE::SetText(), EDA_TEXT::SetVisible(), PCB_BARCODE::SetWidth(), PCB_BARCODE::Text(), text, and SHAPE_POLY_SET::Unfracture().
BOOST_AUTO_TEST_CASE | ( | BarcodeWriteRead | ) |
Definition at line 38 of file test_barcode_load_save.cpp.
References APPEND, PCB_BARCODE::AssembleBarcode(), SHAPE_POLY_SET::BBox(), BOOST_CHECK_EQUAL(), BOX2< Vec >::Centre(), KI_TEST::DumpBoardToFile(), F_SilkS, PCB_BARCODE::GetErrorCorrection(), PCB_BARCODE::GetHeight(), PCB_BARCODE::GetKind(), PCB_BARCODE::GetPolyShape(), PCB_BARCODE::GetText(), PCB_BARCODE::GetTextSize(), PCB_BARCODE::GetWidth(), M, EDA_ITEM::m_Uuid, PCB_BARCODE_T, pcbIUScale, QR_CODE, KI_TEST::ReadBoardFromFileOrStream(), KI_TEST::RequireBoardItemWithTypeAndId(), PCB_BARCODE::SetErrorCorrection(), PCB_BARCODE::SetHeight(), PCB_BARCODE::SetKind(), PCB_BARCODE::SetLayer(), PCB_BARCODE::SetPosition(), PCB_BARCODE::SetText(), PCB_BARCODE::SetTextSize(), and PCB_BARCODE::SetWidth().