gaze
0.1.0
Perform gaze tracking with common webcams.
Main Page
Related Pages
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Groups
Pages
include
gaze
tests
doctest_helper.h
1
#ifndef INCLUDE_GAZE_TESTS_DOCTEST_HELPER_H_
2
#define INCLUDE_GAZE_TESTS_DOCTEST_HELPER_H_
3
4
#include <
string
>
5
#include <
vector
>
6
7
14
#define DOCTEST_VALUE_PARAMETERIZED_DATA(data, data_array) \
15
static std::vector<std::string> _doctest_subcases = [&data_array]() { \
16
std::vector<std::string> out; \
17
while (out.size() != data_array.size()) \
18
out.push_back(std::string(#data_array "[") + \
19
std::to_string(out.size() + 1) + "]"); \
20
return out; \
21
}(); \
22
int _doctest_subcase_idx = 0; \
23
std::for_each(data_array.begin(), data_array.end(), [&](const auto& in) { \
24
DOCTEST_SUBCASE(_doctest_subcases[_doctest_subcase_idx++].c_str()) { \
25
data = in; \
26
} \
27
})
28
29
30
#endif // INCLUDE_GAZE_TESTS_DOCTEST_HELPER_H_
vector
string
Generated by
1.8.6