KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>
#include <boost/bimap.hpp>
#include <magic_enum.hpp>
#include <import_export.h>
#include <qa_utils/wx_utils/wx_assert.h>
#include <api/api_enums.h>
#include <api/common/types/enums.pb.h>
#include <api/board/board_types.pb.h>
#include <core/typeinfo.h>
#include <font/text_attributes.h>
#include <layer_ids.h>
#include <stroke_params.h>
#include <padstack.h>
#include <pcb_track.h>
#include <zones.h>
Go to the source code of this file.
Functions | |
template<typename KiCadEnum , typename ProtoEnum > | |
void | testEnums (bool aPartiallyMapped=false) |
Checks if a KiCad enum has been properly mapped to a Protobuf enum. | |
BOOST_AUTO_TEST_CASE (HorizontalAlignment) | |
BOOST_AUTO_TEST_CASE (VerticalAlignment) | |
BOOST_AUTO_TEST_CASE (StrokeLineStyle) | |
BOOST_AUTO_TEST_CASE (KiCadObjectType) | |
BOOST_AUTO_TEST_CASE (BoardLayer) | |
BOOST_AUTO_TEST_CASE (PadStackShape) | |
BOOST_AUTO_TEST_CASE (ZoneConnectionStyle) | |
BOOST_AUTO_TEST_CASE (PadType) | |
BOOST_AUTO_TEST_CASE (PadStackType) | |
BOOST_AUTO_TEST_CASE (DrillShape) | |
BOOST_AUTO_TEST_CASE (UnconnectedLayerRemoval) | |
BOOST_AUTO_TEST_CASE (ViaType) | |
BOOST_AUTO_TEST_CASE | ( | BoardLayer | ) |
Definition at line 149 of file test_api_enums.cpp.
BOOST_AUTO_TEST_CASE | ( | DrillShape | ) |
Definition at line 174 of file test_api_enums.cpp.
BOOST_AUTO_TEST_CASE | ( | HorizontalAlignment | ) |
Definition at line 129 of file test_api_enums.cpp.
BOOST_AUTO_TEST_CASE | ( | KiCadObjectType | ) |
Definition at line 144 of file test_api_enums.cpp.
BOOST_AUTO_TEST_CASE | ( | PadStackShape | ) |
Definition at line 154 of file test_api_enums.cpp.
BOOST_AUTO_TEST_CASE | ( | PadStackType | ) |
Definition at line 169 of file test_api_enums.cpp.
BOOST_AUTO_TEST_CASE | ( | PadType | ) |
Definition at line 164 of file test_api_enums.cpp.
BOOST_AUTO_TEST_CASE | ( | StrokeLineStyle | ) |
Definition at line 139 of file test_api_enums.cpp.
BOOST_AUTO_TEST_CASE | ( | UnconnectedLayerRemoval | ) |
Definition at line 179 of file test_api_enums.cpp.
BOOST_AUTO_TEST_CASE | ( | VerticalAlignment | ) |
Definition at line 134 of file test_api_enums.cpp.
BOOST_AUTO_TEST_CASE | ( | ViaType | ) |
Definition at line 184 of file test_api_enums.cpp.
BOOST_AUTO_TEST_CASE | ( | ZoneConnectionStyle | ) |
Definition at line 159 of file test_api_enums.cpp.
void testEnums | ( | bool | aPartiallyMapped = false | ) |
Checks if a KiCad enum has been properly mapped to a Protobuf enum.
KiCadEnum | is an enum type |
ProtoEnum | is a Protobuf enum type |
aPartiallyMapped | is true if only some of the KiCad enum values are exposed to the API |
Definition at line 51 of file test_api_enums.cpp.
References name.