API
Applications
Utilities
API
Handbook
GitHub
Home
kcubeCtrl_test.cpp
Go to the documentation of this file.
1
/** \file kcubeCtrl_test.cpp
2
* \brief Catch2 tests for the kcubeCtrl app.
3
*
4
* History:
5
*/
6
#include "../../../tests/catch2/catch.hpp"
7
#include "../../tests/testMacrosINDI.hpp"
8
9
#include "../kcubeCtrl.hpp"
10
11
using namespace
MagAOX::app
;
12
13
namespace
KCCTEST
14
{
15
16
class
kcubeCtrl_test
:
public
kcubeCtrl
17
{
18
19
public
:
20
kcubeCtrl_test
(
const
std::string device)
21
{
22
m_configName = device;
23
24
XWCTEST_SETUP_INDI_NEW_PROP
(identify);
25
}
26
};
27
28
SCENARIO
(
"INDI Callbacks"
,
"[kcubeCtrl]"
)
29
{
30
XWCTEST_INDI_NEW_CALLBACK
(
kcubeCtrl
, identify);
31
}
32
33
/*
34
SCENARIO( "xxxx", "[kcubeCtrl]" )
35
{
36
GIVEN("xxxxx")
37
{
38
int rv;
39
40
WHEN("xxxx")
41
{
42
rv = [some test];
43
44
REQUIRE(rv == 0);
45
}
46
}
47
}*/
48
49
}
//namespace KCCTEST
KCCTEST::kcubeCtrl_test
Definition:
kcubeCtrl_test.cpp:17
KCCTEST::kcubeCtrl_test::kcubeCtrl_test
kcubeCtrl_test(const std::string device)
Definition:
kcubeCtrl_test.cpp:20
MagAOX::app::kcubeCtrl
The MagAO-X K-Cube Controller.
Definition:
kcubeCtrl.hpp:75
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
KCCTEST
Definition:
kcubeCtrl_test.cpp:14
KCCTEST::SCENARIO
SCENARIO("INDI Callbacks", "[kcubeCtrl]")
Definition:
kcubeCtrl_test.cpp:28
MagAOX::app
Definition:
dm.hpp:26
XWCTEST_SETUP_INDI_NEW_PROP
#define XWCTEST_SETUP_INDI_NEW_PROP(propname)
Definition:
testMacrosINDI.hpp:26
apps
kcubeCtrl
tests
kcubeCtrl_test.cpp
Generated by
1.9.1