|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <boost/bimap.hpp>#include <google/protobuf/any.pb.h>#include <memory>#include <set>#include <magic_enum.hpp>#include <api/api_enums.h>#include <qa_utils/wx_utils/wx_assert.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. | |
| template<typename ProtoClass, typename KiCadClass, typename Factory> | |
| void | testProtoFromKiCadObject (KiCadClass *aInput, Factory &&aCreateOutput) |
| template<typename ProtoClass, typename KiCadClass, typename ParentClass> | |
| void | testProtoFromKiCadObject (KiCadClass *aInput, ParentClass *aParent, bool aStrict=true) |
| 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 42 of file api_test_utils.h.
References BOOST_REQUIRE(), BOOST_TEST_CONTEXT(), FromProtoEnum(), name, result, and ToProtoEnum().
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(), and BOOST_AUTO_TEST_CASE().
| void testProtoFromKiCadObject | ( | KiCadClass * | aInput, |
| Factory && | aCreateOutput ) |
Definition at line 119 of file api_test_utils.h.
References BOOST_TEST_CONTEXT(), BOOST_TEST_MESSAGE(), and output.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), and testProtoFromKiCadObject().
| void testProtoFromKiCadObject | ( | KiCadClass * | aInput, |
| ParentClass * | aParent, | ||
| bool | aStrict = true ) |
Definition at line 153 of file api_test_utils.h.
References testProtoFromKiCadObject().