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 <core/typeinfo.h>
#include <font/text_attributes.h>
#include <layer_ids.h>
#include <pin_type.h>
#include <stroke_params.h>
#include <widgets/report_severity.h>
#include <api/board/board_types.pb.h>
#include <api/board/board_commands.pb.h>
#include <board_stackup_manager/board_stackup.h>
#include <padstack.h>
#include <pcb_dimension.h>
#include <pcb_track.h>
#include <project/board_project_settings.h>
#include <zones.h>
#include <zone_settings.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 (ElectricalPinType)
 
 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 (IslandRemovalMode)
 
 BOOST_AUTO_TEST_CASE (ZoneFillMode)
 
 BOOST_AUTO_TEST_CASE (ZoneBorderStyle)
 
 BOOST_AUTO_TEST_CASE (PlacementRuleSourceType)
 
 BOOST_AUTO_TEST_CASE (TeardropType)
 
 BOOST_AUTO_TEST_CASE (DimensionTextBorderStyle)
 
 BOOST_AUTO_TEST_CASE (DimensionUnitFormat)
 
 BOOST_AUTO_TEST_CASE (DimensionArrowDirection)
 
 BOOST_AUTO_TEST_CASE (DimensionPrecision)
 
 BOOST_AUTO_TEST_CASE (DimensionTextPosition)
 
 BOOST_AUTO_TEST_CASE (DimensionUnit)
 
 BOOST_AUTO_TEST_CASE (InactiveLayerDisplayMode)
 
 BOOST_AUTO_TEST_CASE (NetColorDisplayMode)
 
 BOOST_AUTO_TEST_CASE (RatsnestDisplayMode)
 
 BOOST_AUTO_TEST_CASE (BoardStackupLayerType)
 
 BOOST_AUTO_TEST_CASE (DrcSeverity)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/29]

BOOST_AUTO_TEST_CASE ( BoardLayer )

Definition at line 161 of file test_api_enums.cpp.

References testEnums().

◆ BOOST_AUTO_TEST_CASE() [2/29]

BOOST_AUTO_TEST_CASE ( BoardStackupLayerType )

Definition at line 272 of file test_api_enums.cpp.

References testEnums().

◆ BOOST_AUTO_TEST_CASE() [3/29]

BOOST_AUTO_TEST_CASE ( DimensionArrowDirection )

Definition at line 237 of file test_api_enums.cpp.

References testEnums().

◆ BOOST_AUTO_TEST_CASE() [4/29]

BOOST_AUTO_TEST_CASE ( DimensionPrecision )

Definition at line 242 of file test_api_enums.cpp.

References testEnums().

◆ BOOST_AUTO_TEST_CASE() [5/29]

BOOST_AUTO_TEST_CASE ( DimensionTextBorderStyle )

Definition at line 227 of file test_api_enums.cpp.

References testEnums().

◆ BOOST_AUTO_TEST_CASE() [6/29]

BOOST_AUTO_TEST_CASE ( DimensionTextPosition )

Definition at line 247 of file test_api_enums.cpp.

References testEnums().

◆ BOOST_AUTO_TEST_CASE() [7/29]

BOOST_AUTO_TEST_CASE ( DimensionUnit )

Definition at line 252 of file test_api_enums.cpp.

References testEnums().

◆ BOOST_AUTO_TEST_CASE() [8/29]

BOOST_AUTO_TEST_CASE ( DimensionUnitFormat )

Definition at line 232 of file test_api_enums.cpp.

References testEnums().

◆ BOOST_AUTO_TEST_CASE() [9/29]

BOOST_AUTO_TEST_CASE ( DrcSeverity )

Definition at line 277 of file test_api_enums.cpp.

References testEnums().

◆ BOOST_AUTO_TEST_CASE() [10/29]

BOOST_AUTO_TEST_CASE ( DrillShape )

Definition at line 186 of file test_api_enums.cpp.

References testEnums().

◆ BOOST_AUTO_TEST_CASE() [11/29]

BOOST_AUTO_TEST_CASE ( ElectricalPinType )

Definition at line 156 of file test_api_enums.cpp.

References testEnums().

◆ BOOST_AUTO_TEST_CASE() [12/29]

BOOST_AUTO_TEST_CASE ( HorizontalAlignment )

Definition at line 136 of file test_api_enums.cpp.

References testEnums().

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().

◆ BOOST_AUTO_TEST_CASE() [13/29]

BOOST_AUTO_TEST_CASE ( InactiveLayerDisplayMode )

Definition at line 257 of file test_api_enums.cpp.

References testEnums().

◆ BOOST_AUTO_TEST_CASE() [14/29]

BOOST_AUTO_TEST_CASE ( IslandRemovalMode )

Definition at line 202 of file test_api_enums.cpp.

References testEnums().

◆ BOOST_AUTO_TEST_CASE() [15/29]

BOOST_AUTO_TEST_CASE ( KiCadObjectType )

Definition at line 151 of file test_api_enums.cpp.

References testEnums().

◆ BOOST_AUTO_TEST_CASE() [16/29]

BOOST_AUTO_TEST_CASE ( NetColorDisplayMode )

Definition at line 262 of file test_api_enums.cpp.

References testEnums().

◆ BOOST_AUTO_TEST_CASE() [17/29]

BOOST_AUTO_TEST_CASE ( PadStackShape )

Definition at line 166 of file test_api_enums.cpp.

References testEnums().

◆ BOOST_AUTO_TEST_CASE() [18/29]

BOOST_AUTO_TEST_CASE ( PadStackType )

Definition at line 181 of file test_api_enums.cpp.

References testEnums().

◆ BOOST_AUTO_TEST_CASE() [19/29]

BOOST_AUTO_TEST_CASE ( PadType )

Definition at line 176 of file test_api_enums.cpp.

References testEnums().

◆ BOOST_AUTO_TEST_CASE() [20/29]

BOOST_AUTO_TEST_CASE ( PlacementRuleSourceType )

Definition at line 217 of file test_api_enums.cpp.

References testEnums().

◆ BOOST_AUTO_TEST_CASE() [21/29]

BOOST_AUTO_TEST_CASE ( RatsnestDisplayMode )

Definition at line 267 of file test_api_enums.cpp.

References testEnums().

◆ BOOST_AUTO_TEST_CASE() [22/29]

BOOST_AUTO_TEST_CASE ( StrokeLineStyle )

Definition at line 146 of file test_api_enums.cpp.

References testEnums().

◆ BOOST_AUTO_TEST_CASE() [23/29]

BOOST_AUTO_TEST_CASE ( TeardropType )

Definition at line 222 of file test_api_enums.cpp.

References testEnums().

◆ BOOST_AUTO_TEST_CASE() [24/29]

BOOST_AUTO_TEST_CASE ( UnconnectedLayerRemoval )

Definition at line 191 of file test_api_enums.cpp.

References testEnums().

◆ BOOST_AUTO_TEST_CASE() [25/29]

BOOST_AUTO_TEST_CASE ( VerticalAlignment )

Definition at line 141 of file test_api_enums.cpp.

References testEnums().

◆ BOOST_AUTO_TEST_CASE() [26/29]

BOOST_AUTO_TEST_CASE ( ViaType )

Definition at line 196 of file test_api_enums.cpp.

References testEnums().

◆ BOOST_AUTO_TEST_CASE() [27/29]

BOOST_AUTO_TEST_CASE ( ZoneBorderStyle )

Definition at line 212 of file test_api_enums.cpp.

References testEnums().

◆ BOOST_AUTO_TEST_CASE() [28/29]

BOOST_AUTO_TEST_CASE ( ZoneConnectionStyle )

Definition at line 171 of file test_api_enums.cpp.

References testEnums().

◆ BOOST_AUTO_TEST_CASE() [29/29]

BOOST_AUTO_TEST_CASE ( ZoneFillMode )

Definition at line 207 of file test_api_enums.cpp.

References testEnums().

◆ testEnums()