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 <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)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/12]

BOOST_AUTO_TEST_CASE ( BoardLayer  )

Definition at line 149 of file test_api_enums.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/12]

BOOST_AUTO_TEST_CASE ( DrillShape  )

Definition at line 174 of file test_api_enums.cpp.

◆ BOOST_AUTO_TEST_CASE() [3/12]

BOOST_AUTO_TEST_CASE ( HorizontalAlignment  )

Definition at line 129 of file test_api_enums.cpp.

◆ BOOST_AUTO_TEST_CASE() [4/12]

BOOST_AUTO_TEST_CASE ( KiCadObjectType  )

Definition at line 144 of file test_api_enums.cpp.

◆ BOOST_AUTO_TEST_CASE() [5/12]

BOOST_AUTO_TEST_CASE ( PadStackShape  )

Definition at line 154 of file test_api_enums.cpp.

◆ BOOST_AUTO_TEST_CASE() [6/12]

BOOST_AUTO_TEST_CASE ( PadStackType  )

Definition at line 169 of file test_api_enums.cpp.

◆ BOOST_AUTO_TEST_CASE() [7/12]

BOOST_AUTO_TEST_CASE ( PadType  )

Definition at line 164 of file test_api_enums.cpp.

◆ BOOST_AUTO_TEST_CASE() [8/12]

BOOST_AUTO_TEST_CASE ( StrokeLineStyle  )

Definition at line 139 of file test_api_enums.cpp.

◆ BOOST_AUTO_TEST_CASE() [9/12]

BOOST_AUTO_TEST_CASE ( UnconnectedLayerRemoval  )

Definition at line 179 of file test_api_enums.cpp.

◆ BOOST_AUTO_TEST_CASE() [10/12]

BOOST_AUTO_TEST_CASE ( VerticalAlignment  )

Definition at line 134 of file test_api_enums.cpp.

◆ BOOST_AUTO_TEST_CASE() [11/12]

BOOST_AUTO_TEST_CASE ( ViaType  )

Definition at line 184 of file test_api_enums.cpp.

◆ BOOST_AUTO_TEST_CASE() [12/12]

BOOST_AUTO_TEST_CASE ( ZoneConnectionStyle  )

Definition at line 159 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 51 of file test_api_enums.cpp.

References name.