Compute Library
 21.02
Macros.h File Reference
#include "Framework.h"
#include "Registrars.h"
#include "TestCase.h"

Go to the source code of this file.

Macros

#define TEST_SUITE(SUITE_NAME)
 
#define TEST_SUITE_END()
 
#define CONCAT(ARG0, ARG1)   ARG0##ARG1
 
#define VARIADIC_SIZE_IMPL(e0, e1, e2, e3, e4, e5, e6, e7, e8, e9, e10, e11, e12, e13, size, ...)   size
 
#define VARIADIC_SIZE(...)   VARIADIC_SIZE_IMPL(__VA_ARGS__, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0)
 
#define JOIN_PARAM1(OP, param)   OP(0, param)
 
#define JOIN_PARAM2(OP, param, ...)
 
#define JOIN_PARAM3(OP, param, ...)
 
#define JOIN_PARAM4(OP, param, ...)
 
#define JOIN_PARAM5(OP, param, ...)
 
#define JOIN_PARAM6(OP, param, ...)
 
#define JOIN_PARAM7(OP, param, ...)
 
#define JOIN_PARAM8(OP, param, ...)
 
#define JOIN_PARAM9(OP, param, ...)
 
#define JOIN_PARAM10(OP, param, ...)
 
#define JOIN_PARAM11(OP, param, ...)
 
#define JOIN_PARAM12(OP, param, ...)
 
#define JOIN_PARAM13(OP, param, ...)
 
#define JOIN_PARAM14(OP, param, ...)
 
#define JOIN_PARAM(OP, NUM, ...)
 
#define MAKE_TYPE_PARAM(i, name)   typename T##i
 
#define MAKE_ARG_PARAM(i, name)   const T##i &name
 
#define MAKE_TYPE_PARAMS(...)   JOIN_PARAM(MAKE_TYPE_PARAM, VARIADIC_SIZE(__VA_ARGS__), __VA_ARGS__)
 
#define MAKE_ARG_PARAMS(...)   JOIN_PARAM(MAKE_ARG_PARAM, VARIADIC_SIZE(__VA_ARGS__), __VA_ARGS__)
 
#define TEST_CASE_CONSTRUCTOR(TEST_NAME)   TEST_NAME() = default;
 
#define DATA_TEST_CASE_CONSTRUCTOR(TEST_NAME, DATASET)
 
#define FIXTURE_SETUP(FIXTURE)
 
#define FIXTURE_DATA_SETUP(FIXTURE)
 
#define FIXTURE_RUN(FIXTURE)
 
#define FIXTURE_SYNC(FIXTURE)
 
#define FIXTURE_TEARDOWN(FIXTURE)
 
#define TEST_REGISTRAR(TEST_NAME, MODE, STATUS)
 
#define DATA_TEST_REGISTRAR(TEST_NAME, MODE, STATUS, DATASET)
 
#define TEST_CASE_IMPL(TEST_NAME, MODE, STATUS)
 
#define TEST_CASE(TEST_NAME, MODE)   TEST_CASE_IMPL(TEST_NAME, MODE, arm_compute::test::framework::TestCaseFactory::Status::ACTIVE)
 
#define EXPECTED_FAILURE_TEST_CASE(TEST_NAME, MODE)   TEST_CASE_IMPL(TEST_NAME, MODE, arm_compute::test::framework::TestCaseFactory::Status::EXPECTED_FAILURE)
 
#define DISABLED_TEST_CASE(TEST_NAME, MODE)   TEST_CASE_IMPL(TEST_NAME, MODE, arm_compute::test::framework::TestCaseFactory::Status::DISABLED)
 
#define DATA_TEST_CASE_IMPL(TEST_NAME, MODE, STATUS, DATASET, ...)
 
#define DATA_TEST_CASE(TEST_NAME, MODE, DATASET, ...)   DATA_TEST_CASE_IMPL(TEST_NAME, MODE, arm_compute::test::framework::TestCaseFactory::Status::ACTIVE, DATASET, __VA_ARGS__)
 
#define EXPECTED_FAILURE_DATA_TEST_CASE(TEST_NAME, MODE, DATASET, ...)   DATA_TEST_CASE_IMPL(TEST_NAME, MODE, arm_compute::test::framework::TestCaseFactory::Status::EXPECTED_FAILURE, DATASET, __VA_ARGS__)
 
#define DISABLED_DATA_TEST_CASE(TEST_NAME, MODE, DATASET, ...)   DATA_TEST_CASE_IMPL(TEST_NAME, MODE, arm_compute::test::framework::TestCaseFactory::Status::DISABLED, DATASET, __VA_ARGS__)
 
#define FIXTURE_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, STATUS)
 
#define FIXTURE_TEST_CASE(TEST_NAME, FIXTURE, MODE)   FIXTURE_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, arm_compute::test::framework::TestCaseFactory::Status::ACTIVE)
 
#define EXPECTED_FAILURE_FIXTURE_TEST_CASE(TEST_NAME, FIXTURE, MODE)   FIXTURE_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, arm_compute::test::framework::TestCaseFactory::Status::EXPECTED_FAILURE)
 
#define DISABLED_FIXTURE_TEST_CASE(TEST_NAME, FIXTURE, MODE)   FIXTURE_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, arm_compute::test::framework::TestCaseFactory::Status::DISABLED)
 
#define FIXTURE_DATA_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, STATUS, DATASET)
 
#define FIXTURE_DATA_TEST_CASE(TEST_NAME, FIXTURE, MODE, DATASET)   FIXTURE_DATA_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, arm_compute::test::framework::TestCaseFactory::Status::ACTIVE, DATASET)
 
#define EXPECTED_FAILURE_FIXTURE_DATA_TEST_CASE(TEST_NAME, FIXTURE, MODE, DATASET)   FIXTURE_DATA_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, arm_compute::test::framework::TestCaseFactory::Status::EXPECTED_FAILURE, DATASET)
 
#define DISABLED_FIXTURE_DATA_TEST_CASE(TEST_NAME, FIXTURE, MODE, DATASET)   FIXTURE_DATA_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, arm_compute::test::framework::TestCaseFactory::Status::DISABLED, DATASET)
 
#define REGISTER_FIXTURE_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, STATUS)
 
#define REGISTER_FIXTURE_TEST_CASE(TEST_NAME, FIXTURE, MODE)   REGISTER_FIXTURE_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, arm_compute::test::framework::TestCaseFactory::Status::ACTIVE)
 
#define EXPECTED_FAILURE_REGISTER_FIXTURE_TEST_CASE(TEST_NAME, FIXTURE, MODE)   REGISTER_FIXTURE_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, arm_compute::test::framework::TestCaseFactory::Status::EXPECTED_FAILURE)
 
#define DISABLED_REGISTER_FIXTURE_TEST_CASE(TEST_NAME, FIXTURE, MODE)   REGISTER_FIXTURE_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, arm_compute::test::framework::TestCaseFactory::Status::DISABLED)
 
#define REGISTER_FIXTURE_DATA_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, STATUS, DATASET)
 
#define REGISTER_FIXTURE_DATA_TEST_CASE(TEST_NAME, FIXTURE, MODE, DATASET)   REGISTER_FIXTURE_DATA_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, arm_compute::test::framework::TestCaseFactory::Status::ACTIVE, DATASET)
 
#define EXPECTED_FAILURE_REGISTER_FIXTURE_DATA_TEST_CASE(TEST_NAME, FIXTURE, MODE, DATASET)   REGISTER_FIXTURE_DATA_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, arm_compute::test::framework::TestCaseFactory::Status::EXPECTED_FAILURE, DATASET)
 
#define DISABLED_REGISTER_FIXTURE_DATA_TEST_CASE(TEST_NAME, FIXTURE, MODE, DATASET)   REGISTER_FIXTURE_DATA_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, arm_compute::test::framework::TestCaseFactory::Status::DISABLED, DATASET)
 

Macro Definition Documentation

◆ CONCAT

#define CONCAT (   ARG0,
  ARG1 
)    ARG0##ARG1

Definition at line 50 of file Macros.h.

◆ DATA_TEST_CASE

#define DATA_TEST_CASE (   TEST_NAME,
  MODE,
  DATASET,
  ... 
)    DATA_TEST_CASE_IMPL(TEST_NAME, MODE, arm_compute::test::framework::TestCaseFactory::Status::ACTIVE, DATASET, __VA_ARGS__)

Definition at line 187 of file Macros.h.

◆ DATA_TEST_CASE_CONSTRUCTOR

#define DATA_TEST_CASE_CONSTRUCTOR (   TEST_NAME,
  DATASET 
)
Value:
template <typename D> \
explicit TEST_NAME(D &&data) : DataTestCase{ std::forward<D>(data) } \
{ \
}

Definition at line 109 of file Macros.h.

◆ DATA_TEST_CASE_IMPL

#define DATA_TEST_CASE_IMPL (   TEST_NAME,
  MODE,
  STATUS,
  DATASET,
  ... 
)
Value:
template <typename T> \
class TEST_NAME; \
template <typename... As> \
class TEST_NAME<std::tuple<As...>> : public arm_compute::test::framework::DataTestCase<decltype(DATASET)::type> \
{ \
public: \
DATA_TEST_CASE_CONSTRUCTOR(TEST_NAME, DATASET) \
void do_run() override \
{ \
arm_compute::test::framework::apply(this, &TEST_NAME::run<As...>, _data); \
} \
template <MAKE_TYPE_PARAMS(__VA_ARGS__)> \
void run(MAKE_ARG_PARAMS(__VA_ARGS__)); \
}; \
DATA_TEST_REGISTRAR(TEST_NAME, MODE, STATUS, DATASET); \
template <typename... As> \
template <MAKE_TYPE_PARAMS(__VA_ARGS__)> \
void TEST_NAME<std::tuple<As...>>::run(MAKE_ARG_PARAMS(__VA_ARGS__))
#define MAKE_ARG_PARAMS(...)
Definition: Macros.h:102
void apply(O *obj, F &&func, const std::tuple< As... > &args)
Definition: Utils.h:79

Definition at line 167 of file Macros.h.

◆ DATA_TEST_REGISTRAR

#define DATA_TEST_REGISTRAR (   TEST_NAME,
  MODE,
  STATUS,
  DATASET 
)
Value:
{ \
#TEST_NAME, MODE, STATUS, DATASET \
}
Helper class to statically register a test case.
Definition: Registrars.h:43

Definition at line 144 of file Macros.h.

◆ DISABLED_DATA_TEST_CASE

#define DISABLED_DATA_TEST_CASE (   TEST_NAME,
  MODE,
  DATASET,
  ... 
)    DATA_TEST_CASE_IMPL(TEST_NAME, MODE, arm_compute::test::framework::TestCaseFactory::Status::DISABLED, DATASET, __VA_ARGS__)

Definition at line 191 of file Macros.h.

◆ DISABLED_FIXTURE_DATA_TEST_CASE

#define DISABLED_FIXTURE_DATA_TEST_CASE (   TEST_NAME,
  FIXTURE,
  MODE,
  DATASET 
)    FIXTURE_DATA_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, arm_compute::test::framework::TestCaseFactory::Status::DISABLED, DATASET)

Definition at line 233 of file Macros.h.

◆ DISABLED_FIXTURE_TEST_CASE

#define DISABLED_FIXTURE_TEST_CASE (   TEST_NAME,
  FIXTURE,
  MODE 
)    FIXTURE_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, arm_compute::test::framework::TestCaseFactory::Status::DISABLED)

Definition at line 210 of file Macros.h.

◆ DISABLED_REGISTER_FIXTURE_DATA_TEST_CASE

#define DISABLED_REGISTER_FIXTURE_DATA_TEST_CASE (   TEST_NAME,
  FIXTURE,
  MODE,
  DATASET 
)    REGISTER_FIXTURE_DATA_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, arm_compute::test::framework::TestCaseFactory::Status::DISABLED, DATASET)

Definition at line 274 of file Macros.h.

◆ DISABLED_REGISTER_FIXTURE_TEST_CASE

#define DISABLED_REGISTER_FIXTURE_TEST_CASE (   TEST_NAME,
  FIXTURE,
  MODE 
)    REGISTER_FIXTURE_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, arm_compute::test::framework::TestCaseFactory::Status::DISABLED)

Definition at line 252 of file Macros.h.

◆ DISABLED_TEST_CASE

#define DISABLED_TEST_CASE (   TEST_NAME,
  MODE 
)    TEST_CASE_IMPL(TEST_NAME, MODE, arm_compute::test::framework::TestCaseFactory::Status::DISABLED)

Definition at line 164 of file Macros.h.

◆ EXPECTED_FAILURE_DATA_TEST_CASE

#define EXPECTED_FAILURE_DATA_TEST_CASE (   TEST_NAME,
  MODE,
  DATASET,
  ... 
)    DATA_TEST_CASE_IMPL(TEST_NAME, MODE, arm_compute::test::framework::TestCaseFactory::Status::EXPECTED_FAILURE, DATASET, __VA_ARGS__)

Definition at line 189 of file Macros.h.

◆ EXPECTED_FAILURE_FIXTURE_DATA_TEST_CASE

#define EXPECTED_FAILURE_FIXTURE_DATA_TEST_CASE (   TEST_NAME,
  FIXTURE,
  MODE,
  DATASET 
)    FIXTURE_DATA_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, arm_compute::test::framework::TestCaseFactory::Status::EXPECTED_FAILURE, DATASET)

Definition at line 231 of file Macros.h.

◆ EXPECTED_FAILURE_FIXTURE_TEST_CASE

#define EXPECTED_FAILURE_FIXTURE_TEST_CASE (   TEST_NAME,
  FIXTURE,
  MODE 
)    FIXTURE_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, arm_compute::test::framework::TestCaseFactory::Status::EXPECTED_FAILURE)

Definition at line 208 of file Macros.h.

◆ EXPECTED_FAILURE_REGISTER_FIXTURE_DATA_TEST_CASE

#define EXPECTED_FAILURE_REGISTER_FIXTURE_DATA_TEST_CASE (   TEST_NAME,
  FIXTURE,
  MODE,
  DATASET 
)    REGISTER_FIXTURE_DATA_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, arm_compute::test::framework::TestCaseFactory::Status::EXPECTED_FAILURE, DATASET)

Definition at line 272 of file Macros.h.

◆ EXPECTED_FAILURE_REGISTER_FIXTURE_TEST_CASE

#define EXPECTED_FAILURE_REGISTER_FIXTURE_TEST_CASE (   TEST_NAME,
  FIXTURE,
  MODE 
)    REGISTER_FIXTURE_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, arm_compute::test::framework::TestCaseFactory::Status::EXPECTED_FAILURE)

Definition at line 250 of file Macros.h.

◆ EXPECTED_FAILURE_TEST_CASE

#define EXPECTED_FAILURE_TEST_CASE (   TEST_NAME,
  MODE 
)    TEST_CASE_IMPL(TEST_NAME, MODE, arm_compute::test::framework::TestCaseFactory::Status::EXPECTED_FAILURE)

Definition at line 162 of file Macros.h.

◆ FIXTURE_DATA_SETUP

#define FIXTURE_DATA_SETUP (   FIXTURE)
Value:
void do_setup() override \
{ \
apply(this, &FIXTURE::setup<As...>, _data); \
}

Definition at line 119 of file Macros.h.

◆ FIXTURE_DATA_TEST_CASE

#define FIXTURE_DATA_TEST_CASE (   TEST_NAME,
  FIXTURE,
  MODE,
  DATASET 
)    FIXTURE_DATA_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, arm_compute::test::framework::TestCaseFactory::Status::ACTIVE, DATASET)

Definition at line 229 of file Macros.h.

◆ FIXTURE_DATA_TEST_CASE_IMPL

#define FIXTURE_DATA_TEST_CASE_IMPL (   TEST_NAME,
  FIXTURE,
  MODE,
  STATUS,
  DATASET 
)
Value:
template <typename T> \
class TEST_NAME; \
template <typename... As> \
class TEST_NAME<std::tuple<As...>> : public arm_compute::test::framework::DataTestCase<decltype(DATASET)::type>, public FIXTURE \
{ \
public: \
DATA_TEST_CASE_CONSTRUCTOR(TEST_NAME, DATASET) \
FIXTURE_DATA_SETUP(FIXTURE) \
void do_run() override; \
FIXTURE_TEARDOWN(FIXTURE) \
}; \
DATA_TEST_REGISTRAR(TEST_NAME, MODE, STATUS, DATASET); \
template <typename... As> \
void TEST_NAME<std::tuple<As...>>::do_run()

Definition at line 213 of file Macros.h.

◆ FIXTURE_RUN

#define FIXTURE_RUN (   FIXTURE)
Value:
void do_run() override \
{ \
}

Definition at line 124 of file Macros.h.

◆ FIXTURE_SETUP

#define FIXTURE_SETUP (   FIXTURE)
Value:
void do_setup() override \
{ \
FIXTURE::setup(); \
}

Definition at line 114 of file Macros.h.

◆ FIXTURE_SYNC

#define FIXTURE_SYNC (   FIXTURE)
Value:
void do_sync() override \
{ \
FIXTURE::sync(); \
}

Definition at line 129 of file Macros.h.

◆ FIXTURE_TEARDOWN

#define FIXTURE_TEARDOWN (   FIXTURE)
Value:
void do_teardown() override \
{ \
FIXTURE::teardown(); \
}

Definition at line 134 of file Macros.h.

◆ FIXTURE_TEST_CASE

#define FIXTURE_TEST_CASE (   TEST_NAME,
  FIXTURE,
  MODE 
)    FIXTURE_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, arm_compute::test::framework::TestCaseFactory::Status::ACTIVE)

Definition at line 206 of file Macros.h.

◆ FIXTURE_TEST_CASE_IMPL

#define FIXTURE_TEST_CASE_IMPL (   TEST_NAME,
  FIXTURE,
  MODE,
  STATUS 
)
Value:
class TEST_NAME : public arm_compute::test::framework::TestCase, public FIXTURE \
{ \
public: \
TEST_CASE_CONSTRUCTOR(TEST_NAME) \
FIXTURE_SETUP(FIXTURE) \
void do_run() override; \
FIXTURE_TEARDOWN(FIXTURE) \
}; \
TEST_REGISTRAR(TEST_NAME, MODE, STATUS); \
void TEST_NAME::do_run()
Abstract test case class.
Definition: TestCase.h:40
virtual void do_run()
Run the test.
Definition: TestCase.h:46

Definition at line 194 of file Macros.h.

◆ JOIN_PARAM

#define JOIN_PARAM (   OP,
  NUM,
  ... 
)
Value:
(OP, __VA_ARGS__)
#define JOIN_PARAM(OP, NUM,...)
Definition: Macros.h:95
#define CONCAT(ARG0, ARG1)
Definition: Macros.h:50

Definition at line 95 of file Macros.h.

◆ JOIN_PARAM1

#define JOIN_PARAM1 (   OP,
  param 
)    OP(0, param)

Definition at line 55 of file Macros.h.

◆ JOIN_PARAM10

#define JOIN_PARAM10 (   OP,
  param,
  ... 
)
Value:
OP(9, param) \
, JOIN_PARAM9(OP, __VA_ARGS__)
#define JOIN_PARAM9(OP, param,...)
Definition: Macros.h:77

Definition at line 80 of file Macros.h.

◆ JOIN_PARAM11

#define JOIN_PARAM11 (   OP,
  param,
  ... 
)
Value:
OP(10, param) \
, JOIN_PARAM10(OP, __VA_ARGS__)
#define JOIN_PARAM10(OP, param,...)
Definition: Macros.h:80

Definition at line 83 of file Macros.h.

◆ JOIN_PARAM12

#define JOIN_PARAM12 (   OP,
  param,
  ... 
)
Value:
OP(11, param) \
, JOIN_PARAM11(OP, __VA_ARGS__)
#define JOIN_PARAM11(OP, param,...)
Definition: Macros.h:83

Definition at line 86 of file Macros.h.

◆ JOIN_PARAM13

#define JOIN_PARAM13 (   OP,
  param,
  ... 
)
Value:
OP(12, param) \
, JOIN_PARAM12(OP, __VA_ARGS__)
#define JOIN_PARAM12(OP, param,...)
Definition: Macros.h:86

Definition at line 89 of file Macros.h.

◆ JOIN_PARAM14

#define JOIN_PARAM14 (   OP,
  param,
  ... 
)
Value:
OP(13, param) \
, JOIN_PARAM13(OP, __VA_ARGS__)
#define JOIN_PARAM13(OP, param,...)
Definition: Macros.h:89

Definition at line 92 of file Macros.h.

◆ JOIN_PARAM2

#define JOIN_PARAM2 (   OP,
  param,
  ... 
)
Value:
OP(1, param) \
, JOIN_PARAM1(OP, __VA_ARGS__)
#define JOIN_PARAM1(OP, param)
Definition: Macros.h:55

Definition at line 56 of file Macros.h.

◆ JOIN_PARAM3

#define JOIN_PARAM3 (   OP,
  param,
  ... 
)
Value:
OP(2, param) \
, JOIN_PARAM2(OP, __VA_ARGS__)
#define JOIN_PARAM2(OP, param,...)
Definition: Macros.h:56

Definition at line 59 of file Macros.h.

◆ JOIN_PARAM4

#define JOIN_PARAM4 (   OP,
  param,
  ... 
)
Value:
OP(3, param) \
, JOIN_PARAM3(OP, __VA_ARGS__)
#define JOIN_PARAM3(OP, param,...)
Definition: Macros.h:59

Definition at line 62 of file Macros.h.

◆ JOIN_PARAM5

#define JOIN_PARAM5 (   OP,
  param,
  ... 
)
Value:
OP(4, param) \
, JOIN_PARAM4(OP, __VA_ARGS__)
#define JOIN_PARAM4(OP, param,...)
Definition: Macros.h:62

Definition at line 65 of file Macros.h.

◆ JOIN_PARAM6

#define JOIN_PARAM6 (   OP,
  param,
  ... 
)
Value:
OP(5, param) \
, JOIN_PARAM5(OP, __VA_ARGS__)
#define JOIN_PARAM5(OP, param,...)
Definition: Macros.h:65

Definition at line 68 of file Macros.h.

◆ JOIN_PARAM7

#define JOIN_PARAM7 (   OP,
  param,
  ... 
)
Value:
OP(6, param) \
, JOIN_PARAM6(OP, __VA_ARGS__)
#define JOIN_PARAM6(OP, param,...)
Definition: Macros.h:68

Definition at line 71 of file Macros.h.

◆ JOIN_PARAM8

#define JOIN_PARAM8 (   OP,
  param,
  ... 
)
Value:
OP(7, param) \
, JOIN_PARAM7(OP, __VA_ARGS__)
#define JOIN_PARAM7(OP, param,...)
Definition: Macros.h:71

Definition at line 74 of file Macros.h.

◆ JOIN_PARAM9

#define JOIN_PARAM9 (   OP,
  param,
  ... 
)
Value:
OP(8, param) \
, JOIN_PARAM8(OP, __VA_ARGS__)
#define JOIN_PARAM8(OP, param,...)
Definition: Macros.h:74

Definition at line 77 of file Macros.h.

◆ MAKE_ARG_PARAM

#define MAKE_ARG_PARAM (   i,
  name 
)    const T##i &name

Definition at line 100 of file Macros.h.

◆ MAKE_ARG_PARAMS

#define MAKE_ARG_PARAMS (   ...)    JOIN_PARAM(MAKE_ARG_PARAM, VARIADIC_SIZE(__VA_ARGS__), __VA_ARGS__)

Definition at line 102 of file Macros.h.

◆ MAKE_TYPE_PARAM

#define MAKE_TYPE_PARAM (   i,
  name 
)    typename T##i

Definition at line 99 of file Macros.h.

◆ MAKE_TYPE_PARAMS

#define MAKE_TYPE_PARAMS (   ...)    JOIN_PARAM(MAKE_TYPE_PARAM, VARIADIC_SIZE(__VA_ARGS__), __VA_ARGS__)

Definition at line 101 of file Macros.h.

◆ REGISTER_FIXTURE_DATA_TEST_CASE

#define REGISTER_FIXTURE_DATA_TEST_CASE (   TEST_NAME,
  FIXTURE,
  MODE,
  DATASET 
)    REGISTER_FIXTURE_DATA_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, arm_compute::test::framework::TestCaseFactory::Status::ACTIVE, DATASET)

Definition at line 270 of file Macros.h.

◆ REGISTER_FIXTURE_DATA_TEST_CASE_IMPL

#define REGISTER_FIXTURE_DATA_TEST_CASE_IMPL (   TEST_NAME,
  FIXTURE,
  MODE,
  STATUS,
  DATASET 
)
Value:
template <typename T> \
class TEST_NAME; \
template <typename... As> \
class TEST_NAME<std::tuple<As...>> : public arm_compute::test::framework::DataTestCase<decltype(DATASET)::type>, public FIXTURE \
{ \
public: \
DATA_TEST_CASE_CONSTRUCTOR(TEST_NAME, DATASET) \
FIXTURE_DATA_SETUP(FIXTURE) \
FIXTURE_RUN(FIXTURE) \
FIXTURE_SYNC(FIXTURE) \
FIXTURE_TEARDOWN(FIXTURE) \
}; \
DATA_TEST_REGISTRAR(TEST_NAME, MODE, STATUS, DATASET)

Definition at line 255 of file Macros.h.

◆ REGISTER_FIXTURE_TEST_CASE

#define REGISTER_FIXTURE_TEST_CASE (   TEST_NAME,
  FIXTURE,
  MODE 
)    REGISTER_FIXTURE_TEST_CASE_IMPL(TEST_NAME, FIXTURE, MODE, arm_compute::test::framework::TestCaseFactory::Status::ACTIVE)

Definition at line 248 of file Macros.h.

◆ REGISTER_FIXTURE_TEST_CASE_IMPL

#define REGISTER_FIXTURE_TEST_CASE_IMPL (   TEST_NAME,
  FIXTURE,
  MODE,
  STATUS 
)
Value:
class TEST_NAME : public arm_compute::test::framework::TestCase, public FIXTURE \
{ \
public: \
TEST_CASE_CONSTRUCTOR(TEST_NAME) \
FIXTURE_SETUP(FIXTURE) \
FIXTURE_RUN(FIXTURE) \
FIXTURE_SYNC(FIXTURE) \
FIXTURE_TEARDOWN(FIXTURE) \
}; \
TEST_REGISTRAR(TEST_NAME, MODE, STATUS)
Abstract test case class.
Definition: TestCase.h:40

Definition at line 236 of file Macros.h.

◆ TEST_CASE

#define TEST_CASE (   TEST_NAME,
  MODE 
)    TEST_CASE_IMPL(TEST_NAME, MODE, arm_compute::test::framework::TestCaseFactory::Status::ACTIVE)

Definition at line 160 of file Macros.h.

Referenced by arm_compute::test::validation::TEST_CASE().

◆ TEST_CASE_CONSTRUCTOR

#define TEST_CASE_CONSTRUCTOR (   TEST_NAME)    TEST_NAME() = default;

Definition at line 107 of file Macros.h.

◆ TEST_CASE_IMPL

#define TEST_CASE_IMPL (   TEST_NAME,
  MODE,
  STATUS 
)
Value:
class TEST_NAME : public arm_compute::test::framework::TestCase \
{ \
public: \
TEST_CASE_CONSTRUCTOR(TEST_NAME) \
void do_run() override; \
}; \
TEST_REGISTRAR(TEST_NAME, MODE, STATUS); \
void TEST_NAME::do_run()
Abstract test case class.
Definition: TestCase.h:40
virtual void do_run()
Run the test.
Definition: TestCase.h:46

Definition at line 150 of file Macros.h.

◆ TEST_REGISTRAR

#define TEST_REGISTRAR (   TEST_NAME,
  MODE,
  STATUS 
)
Value:
{ \
#TEST_NAME, MODE, STATUS \
}
Helper class to statically register a test case.
Definition: Registrars.h:43

Definition at line 139 of file Macros.h.

◆ TEST_SUITE

#define TEST_SUITE (   SUITE_NAME)
Value:
namespace SUITE_NAME##Suite \
{ \
static arm_compute::test::framework::detail::TestSuiteRegistrar SUITE_NAME##Suite_reg{ #SUITE_NAME };
Helper class to statically begin and end a test suite.
Definition: Registrars.h:66

Definition at line 34 of file Macros.h.

Referenced by arm_compute::test::validation::TEST_CASE().

◆ TEST_SUITE_END

#define TEST_SUITE_END ( )
Value:
}
Helper class to statically begin and end a test suite.
Definition: Registrars.h:66

Definition at line 39 of file Macros.h.

Referenced by arm_compute::test::validation::TEST_CASE().

◆ VARIADIC_SIZE

#define VARIADIC_SIZE (   ...)    VARIADIC_SIZE_IMPL(__VA_ARGS__, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0)

Definition at line 53 of file Macros.h.

◆ VARIADIC_SIZE_IMPL

#define VARIADIC_SIZE_IMPL (   e0,
  e1,
  e2,
  e3,
  e4,
  e5,
  e6,
  e7,
  e8,
  e9,
  e10,
  e11,
  e12,
  e13,
  size,
  ... 
)    size

Definition at line 52 of file Macros.h.