API
 
Loading...
Searching...
No Matches
kcubeCtrl_test.cpp
Go to the documentation of this file.
1/** \file kcubeCtrl_test.cpp
2 * \brief Catch2 tests for the kcubeCtrl app.
3 * \author Jared R. Males (jaredmales@gmail.com)
4 *
5 * \ingroup kcubeCtrl_files
6 */
7
8#include "../../../tests/testXWC.hpp"
9#include "../../../tests/testMacrosINDI.hpp"
10
11#include "../kcubeCtrl.hpp"
12
13using namespace MagAOX::app;
14
15namespace libXWCTest
16{
17
18/** \defgroup kcubeCtrl_unit_test kcubeCtrl Unit Tests
19 * \brief Unit tests for the kcubeCtrl application.
20 *
21 * \ingroup application_unit_test
22 */
23
24/// Namespace for `kcubeCtrl` unit tests.
25/** \ingroup kcubeCtrl_unit_test
26 */
27namespace kcubeCtrlTest
28{
29
30/// \cond DOXYGEN_SUPPRESS_TEST_HARNESS
31class kcubeCtrl_test : public kcubeCtrl
32{
33 public:
34 kcubeCtrl_test( const std::string device )
35 {
36 m_configName = device;
37
39 }
40};
41/// \endcond
42
43/// Verify the kcubeCtrl INDI callback validators accept only the expected properties.
44/**
45 * \ingroup kcubeCtrl_unit_test
46 */
47TEST_CASE( "kcubeCtrl INDI callbacks validate device and property names", "[kcubeCtrl]" )
48{
49 // clang-format off
50 #ifdef KCUBECTRL_TEST_DOXYGEN_REF
51 kcubeCtrl::newCallBack_m_indiP_identify( pcf::IndiProperty() );
52 #endif
53 // clang-format on
54
56}
57
58} // namespace kcubeCtrlTest
59
60} // namespace libXWCTest
The MagAO-X K-Cube Controller.
Definition kcubeCtrl.hpp:75
TEST_CASE("kcubeCtrl INDI callbacks validate device and property names", "[kcubeCtrl]")
Verify the kcubeCtrl INDI callback validators accept only the expected properties.
#define XWCTEST_INDI_NEW_CALLBACK(testclass, propname)
Catch-2 tests for whether a NEW callback properly validates the input property properly.
Namespace for all libXWC tests.
#define XWCTEST_SETUP_INDI_NEW_PROP(propname)