KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_api_enums.cpp File Reference
#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 <pad_shapes.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)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/7]

BOOST_AUTO_TEST_CASE ( BoardLayer  )

Definition at line 148 of file test_api_enums.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/7]

BOOST_AUTO_TEST_CASE ( HorizontalAlignment  )

Definition at line 128 of file test_api_enums.cpp.

◆ BOOST_AUTO_TEST_CASE() [3/7]

BOOST_AUTO_TEST_CASE ( KiCadObjectType  )

Definition at line 143 of file test_api_enums.cpp.

◆ BOOST_AUTO_TEST_CASE() [4/7]

BOOST_AUTO_TEST_CASE ( PadStackShape  )

Definition at line 153 of file test_api_enums.cpp.

◆ BOOST_AUTO_TEST_CASE() [5/7]

BOOST_AUTO_TEST_CASE ( StrokeLineStyle  )

Definition at line 138 of file test_api_enums.cpp.

◆ BOOST_AUTO_TEST_CASE() [6/7]

BOOST_AUTO_TEST_CASE ( VerticalAlignment  )

Definition at line 133 of file test_api_enums.cpp.

◆ BOOST_AUTO_TEST_CASE() [7/7]

BOOST_AUTO_TEST_CASE ( ZoneConnectionStyle  )

Definition at line 158 of file test_api_enums.cpp.

◆ testEnums()

template<typename KiCadEnum , typename ProtoEnum >
void testEnums ( bool  aPartiallyMapped = false)

Checks if a KiCad enum has been properly mapped to a Protobuf enum.

Template Parameters
KiCadEnumis an enum type
ProtoEnumis a Protobuf enum type
Parameters
aPartiallyMappedis true if only some of the KiCad enum values are exposed to the API

Definition at line 50 of file test_api_enums.cpp.

References BOOST_TEST_CONTEXT, and name.