KiCad PCB EDA Suite
|
Test suite for LIB_SYMBOL. More...
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <sch_shape.h>
#include <sch_pin.h>
#include <lib_symbol.h>
#include "lib_field_test_utils.h"
Go to the source code of this file.
Classes | |
class | TEST_LIB_SYMBOL_FIXTURE |
struct | TEST_LIB_SYMBOL_SUBREF_CASE |
Functions | |
BOOST_AUTO_TEST_CASE (DefaultProperties) | |
Declare the test suite. | |
BOOST_AUTO_TEST_CASE (DefaultDrawings) | |
Check the drawings on a "blank" LIB_SYMBOL. | |
BOOST_AUTO_TEST_CASE (DefaultFields) | |
Check the default fields are present as expected. | |
BOOST_AUTO_TEST_CASE (AddedFields) | |
Test adding fields to a LIB_SYMBOL. | |
BOOST_AUTO_TEST_CASE (AddedDrawItems) | |
Test adding draw items to a LIB_SYMBOL. | |
BOOST_AUTO_TEST_CASE (SubReference) | |
Test the subreference indexing. | |
BOOST_AUTO_TEST_CASE (Compare) | |
Check the compare method. | |
BOOST_AUTO_TEST_CASE (GetUnitItems) | |
Check the fetch unit items code. | |
BOOST_AUTO_TEST_CASE (GetUnitDrawItems) | |
Check the fetch unit draw items code. | |
BOOST_AUTO_TEST_CASE (Inheritance) | |
Check inheritance support. | |
BOOST_AUTO_TEST_CASE (CopyConstructor) | |
Check the copy constructor. | |
BOOST_AUTO_TEST_CASE (IsPowerTest) | |
Check the power and legacy power symbol tests. | |
Test suite for LIB_SYMBOL.
Definition in file test_lib_part.cpp.
BOOST_AUTO_TEST_CASE | ( | AddedDrawItems | ) |
Test adding draw items to a LIB_SYMBOL.
Definition at line 166 of file test_lib_part.cpp.
BOOST_AUTO_TEST_CASE | ( | AddedFields | ) |
Test adding fields to a LIB_SYMBOL.
Definition at line 124 of file test_lib_part.cpp.
References KI_TEST::AreDefaultFieldsCorrect(), KI_TEST::FieldNameIdMatches(), and MANDATORY_FIELDS.
BOOST_AUTO_TEST_CASE | ( | Compare | ) |
Check the compare method.
Definition at line 367 of file test_lib_part.cpp.
References LIB_SYMBOL::AddDrawItem(), ARC, LIB_SYMBOL::Compare(), copy, SCH_ITEM::EQUALITY, LIB_SYMBOL::GetDrawItems(), LIB_SYMBOL::GetLibId(), SYMBOL::GetPinNameOffset(), LAYER_DEVICE, LIB_SYMBOL::LockUnits(), RECTANGLE, LIB_SYMBOL::RemoveDrawItem(), SCH_PIN_T, SCH_SHAPE_T, LIB_SYMBOL::SetDescription(), SYMBOL::SetExcludedFromBoard(), SYMBOL::SetExcludedFromBOM(), LIB_SYMBOL::SetFPFilters(), LIB_SYMBOL::SetKeyWords(), LIB_SYMBOL::SetLibId(), LIB_ID::SetLibItemName(), LIB_SYMBOL::SetName(), LIB_SYMBOL::SetNormal(), SYMBOL::SetPinNameOffset(), LIB_SYMBOL::SetPower(), SYMBOL::SetShowPinNames(), SYMBOL::SetShowPinNumbers(), and LIB_SYMBOL::SetUnitCount().
BOOST_AUTO_TEST_CASE | ( | CopyConstructor | ) |
BOOST_AUTO_TEST_CASE | ( | DefaultDrawings | ) |
Check the drawings on a "blank" LIB_SYMBOL.
Definition at line 85 of file test_lib_part.cpp.
References MANDATORY_FIELDS.
BOOST_AUTO_TEST_CASE | ( | DefaultFields | ) |
Check the default fields are present as expected.
Definition at line 96 of file test_lib_part.cpp.
References KI_TEST::AreDefaultFieldsCorrect(), DATASHEET_FIELD, DESCRIPTION_FIELD, KI_TEST::FieldNameIdMatches(), FOOTPRINT_FIELD, MANDATORY_FIELDS, REFERENCE_FIELD, and VALUE_FIELD.
BOOST_AUTO_TEST_CASE | ( | DefaultProperties | ) |
Declare the test suite.
Check that we can get the basic properties out as expected
Definition at line 60 of file test_lib_part.cpp.
BOOST_AUTO_TEST_CASE | ( | GetUnitDrawItems | ) |
Check the fetch unit draw items code.
Definition at line 569 of file test_lib_part.cpp.
References SCH_PIN::SetNumber().
BOOST_AUTO_TEST_CASE | ( | GetUnitItems | ) |
Check the fetch unit items code.
Definition at line 527 of file test_lib_part.cpp.
References SCH_ITEM::SetBodyStyle(), SCH_PIN::SetNumber(), and SCH_ITEM::SetUnit().
BOOST_AUTO_TEST_CASE | ( | Inheritance | ) |
Check inheritance support.
Definition at line 589 of file test_lib_part.cpp.
References MANDATORY_FIELDS, EDA_ITEM::SetParent(), and SCH_FIELD::SetText().
BOOST_AUTO_TEST_CASE | ( | IsPowerTest | ) |
Check the power and legacy power symbol tests.
Definition at line 680 of file test_lib_part.cpp.
References pin, and PT_POWER_IN.
BOOST_AUTO_TEST_CASE | ( | SubReference | ) |
Test the subreference indexing.
Definition at line 182 of file test_lib_part.cpp.
References LIB_SYMBOL::LetterSubReference().