API
Applications
Utilities
API
Handbook
GitHub
Home
Loading...
Searching...
No Matches
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
SCENARIO
#define SCENARIO(...)
Definition
catch.hpp:17760
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::MagAOXApp< true >::m_configName
std::string m_configName
The name of the configuration file (minus .conf).
Definition
MagAOXApp.hpp:83
MagAOX::app::MagAOXApp< true >::log
static int log(const typename logT::messageT &msg, logPrioT level=logPrio::LOG_DEFAULT)
Make a log entry.
Definition
MagAOXApp.hpp:1804
MagAOX::app::cacaoInterface
The MagAO-X CACAO Interface.
Definition
cacaoInterface.hpp:36
MagAOX::app::cacaoInterface::loopZero
int loopZero()
Zero the loop control channel.
Definition
cacaoInterface.hpp:755
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
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.8