API
Applications
Utilities
API
Handbook
GitHub
Home
cacaoInterface_test.cpp
Go to the documentation of this file.
1
/** \file cacaoInterface_test.cpp
2
* \brief Catch2 tests for the cacaoInterface app.
3
* \author Jared R. Males (jaredmales@gmail.com)
4
*
5
* History:
6
*/
7
8
9
10
#include "../../../tests/catch2/catch.hpp"
11
#include "../../tests/testMacrosINDI.hpp"
12
13
#include "../cacaoInterface.hpp"
14
15
using namespace
MagAOX::app
;
16
17
namespace
CACAOITEST
18
{
19
20
class
cacaoInterface_test
:
public
cacaoInterface
21
{
22
23
public
:
24
cacaoInterface_test
(
const
std::string device)
25
{
26
m_configName = device;
27
28
XWCTEST_SETUP_INDI_NEW_PROP
(loopState);
29
XWCTEST_SETUP_INDI_NEW_PROP
(loopGain);
30
XWCTEST_SETUP_INDI_NEW_PROP
(loopZero);
31
XWCTEST_SETUP_INDI_NEW_PROP
(multCoeff);
32
XWCTEST_SETUP_INDI_NEW_PROP
(maxLim);
33
34
}
35
};
36
37
38
SCENARIO
(
"INDI Callbacks"
,
"[cacaoInterface]"
)
39
{
40
XWCTEST_INDI_NEW_CALLBACK
(
cacaoInterface
, loopState);
41
XWCTEST_INDI_NEW_CALLBACK
(
cacaoInterface
, loopGain);
42
XWCTEST_INDI_NEW_CALLBACK
(
cacaoInterface
, loopZero);
43
XWCTEST_INDI_NEW_CALLBACK
(
cacaoInterface
, multCoeff);
44
XWCTEST_INDI_NEW_CALLBACK
(
cacaoInterface
, maxLim);
45
46
}
47
48
49
}
//namespace cacaoInterface_test
CACAOITEST::cacaoInterface_test
Definition:
cacaoInterface_test.cpp:21
CACAOITEST::cacaoInterface_test::cacaoInterface_test
cacaoInterface_test(const std::string device)
Definition:
cacaoInterface_test.cpp:24
MagAOX::app::cacaoInterface
The MagAO-X CACAO Interface.
Definition:
cacaoInterface.hpp:36
XWCTEST_INDI_NEW_CALLBACK
#define XWCTEST_INDI_NEW_CALLBACK(testclass, propname)
Catch-2 tests for whether a NEW callback properly validates the input property properly.
Definition:
testMacrosINDI.hpp:47
CACAOITEST
Definition:
cacaoInterface_test.cpp:18
CACAOITEST::SCENARIO
SCENARIO("INDI Callbacks", "[cacaoInterface]")
Definition:
cacaoInterface_test.cpp:38
MagAOX::app
Definition:
dm.hpp:26
XWCTEST_SETUP_INDI_NEW_PROP
#define XWCTEST_SETUP_INDI_NEW_PROP(propname)
Definition:
testMacrosINDI.hpp:26
apps
cacaoInterface
tests
cacaoInterface_test.cpp
Generated by
1.9.1