KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_wx_any_utils.cpp File Reference
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <properties/wx_any_utils.h>
#include <properties/property.h>
#include <geometry/eda_angle.h>
#include <gal/color4d.h>
#include <kiid.h>
#include <layer_ids.h>
#include <math/box2.h>
#include <math/vector2d.h>
#include <wx/any.h>
#include <wx/string.h>
#include <optional>

Go to the source code of this file.

Enumerations

enum class  WX_ANY_TEST_ENUM { ALPHA = 0 , BETA = 1 , GAMMA = 2 }
 

Functions

 ENUM_TO_WXANY (WX_ANY_TEST_ENUM)
 
 BOOST_AUTO_TEST_CASE (SameType_SameValue)
 
 BOOST_AUTO_TEST_CASE (SameType_DifferentValue)
 
 BOOST_AUTO_TEST_CASE (DifferentTypes)
 
 BOOST_AUTO_TEST_CASE (NumericTypes)
 
 BOOST_AUTO_TEST_CASE (OptionalInt)
 
 BOOST_AUTO_TEST_CASE (OptionalDouble)
 
 BOOST_AUTO_TEST_CASE (EdaAngle)
 
 BOOST_AUTO_TEST_CASE (Vector2I)
 
 BOOST_AUTO_TEST_CASE (Box2I)
 
 BOOST_AUTO_TEST_CASE (Color)
 
 BOOST_AUTO_TEST_CASE (Kiid)
 
 BOOST_AUTO_TEST_CASE (PcbLayerId)
 
 BOOST_AUTO_TEST_CASE (UnsupportedReturnsFalse)
 
 BOOST_FIXTURE_TEST_CASE (EnumViaProperty, ENUM_TEST_FIXTURE)
 

Enumeration Type Documentation

◆ WX_ANY_TEST_ENUM

enum class WX_ANY_TEST_ENUM
strong
Enumerator
ALPHA 
BETA 
GAMMA 

Definition at line 48 of file test_wx_any_utils.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/13]

BOOST_AUTO_TEST_CASE ( Box2I )

Definition at line 148 of file test_wx_any_utils.cpp.

References KiWxAnyEquals().

◆ BOOST_AUTO_TEST_CASE() [2/13]

BOOST_AUTO_TEST_CASE ( Color )

Definition at line 159 of file test_wx_any_utils.cpp.

References KiWxAnyEquals().

◆ BOOST_AUTO_TEST_CASE() [3/13]

BOOST_AUTO_TEST_CASE ( DifferentTypes )

Definition at line 80 of file test_wx_any_utils.cpp.

References KiWxAnyEquals().

◆ BOOST_AUTO_TEST_CASE() [4/13]

BOOST_AUTO_TEST_CASE ( EdaAngle )

Definition at line 130 of file test_wx_any_utils.cpp.

References DEGREES_T, and KiWxAnyEquals().

◆ BOOST_AUTO_TEST_CASE() [5/13]

BOOST_AUTO_TEST_CASE ( Kiid )

Definition at line 170 of file test_wx_any_utils.cpp.

References KiWxAnyEquals().

◆ BOOST_AUTO_TEST_CASE() [6/13]

BOOST_AUTO_TEST_CASE ( NumericTypes )

Definition at line 89 of file test_wx_any_utils.cpp.

References KiWxAnyEquals().

◆ BOOST_AUTO_TEST_CASE() [7/13]

BOOST_AUTO_TEST_CASE ( OptionalDouble )

Definition at line 120 of file test_wx_any_utils.cpp.

References KiWxAnyEquals().

◆ BOOST_AUTO_TEST_CASE() [8/13]

BOOST_AUTO_TEST_CASE ( OptionalInt )

Definition at line 109 of file test_wx_any_utils.cpp.

References KiWxAnyEquals().

◆ BOOST_AUTO_TEST_CASE() [9/13]

BOOST_AUTO_TEST_CASE ( PcbLayerId )

Definition at line 179 of file test_wx_any_utils.cpp.

References B_Cu, F_Cu, and KiWxAnyEquals().

◆ BOOST_AUTO_TEST_CASE() [10/13]

BOOST_AUTO_TEST_CASE ( SameType_DifferentValue )

Definition at line 71 of file test_wx_any_utils.cpp.

References KiWxAnyEquals().

◆ BOOST_AUTO_TEST_CASE() [11/13]

BOOST_AUTO_TEST_CASE ( SameType_SameValue )

Definition at line 62 of file test_wx_any_utils.cpp.

References BOOST_AUTO_TEST_CASE(), and KiWxAnyEquals().

◆ BOOST_AUTO_TEST_CASE() [12/13]

BOOST_AUTO_TEST_CASE ( UnsupportedReturnsFalse )

Definition at line 186 of file test_wx_any_utils.cpp.

References KiWxAnyEquals().

◆ BOOST_AUTO_TEST_CASE() [13/13]

BOOST_AUTO_TEST_CASE ( Vector2I )

Definition at line 139 of file test_wx_any_utils.cpp.

References KiWxAnyEquals().

◆ BOOST_FIXTURE_TEST_CASE()

BOOST_FIXTURE_TEST_CASE ( EnumViaProperty ,
ENUM_TEST_FIXTURE  )

Definition at line 228 of file test_wx_any_utils.cpp.

References ALPHA, BETA, BOOST_REQUIRE(), and KiWxAnyEquals().

◆ ENUM_TO_WXANY()

ENUM_TO_WXANY ( WX_ANY_TEST_ENUM )