API
 
Loading...
Searching...
No Matches
observerCtrl_INDI_val_test.cpp
Go to the documentation of this file.
1/** \file observerCtrl_test.cpp
2 * \brief Catch2 tests for the observerCtrl app.
3 * \author Jared R. Males (jaredmales@gmail.com)
4 *
5 * History:
6 */
7
8
9/** \defgroup observerCtrl_tests
10 * \brief Tests of the observerCtrl app
11 * \ingroup app_test
12 *
13 */
14
15#include "../../../tests/catch2/catch.hpp"
16#include "../../tests/testMacrosINDI.hpp"
17
18#include "../observerCtrl.hpp"
19
20using namespace MagAOX::app;
21
22namespace SMCTEST
23{
24
50
51
52/// observerCtrl INDI Callback Input Validation
53/**
54 * \ingroup observerCtrl_tests
55 */
56TEST_CASE( "observerCtrl INDI Callback Input Validation", "[observerCtrl]" )
57{
67 XWCTEST_INDI_SET_CALLBACK( observerCtrl, m_indiP_catalog, tcsi, catalog);
68 XWCTEST_INDI_SET_CALLBACK( observerCtrl, m_indiP_teldata, tcsi, teldata);
69 XWCTEST_INDI_SET_CALLBACK( observerCtrl, m_indiP_labMode, tcsi, labMode);
70
71}
72
73
74
75} //namespace observerCtrl_test
std::string m_configName
The name of the configuration file (minus .conf).
static int log(const typename logT::messageT &msg, logPrioT level=logPrio::LOG_DEFAULT)
Make a log entry.
The MagAO-X Observer Controller.
pcf::IndiProperty m_indiP_labMode
Tracks whether TCS is in lab mode.
pcf::IndiProperty m_indiP_catalog
Catalog text data.
pcf::IndiProperty m_indiP_teldata
Telescope data (for parang)
observerCtrl_test(const std::string device)
TEST_CASE("observerCtrl INDI Callback Input Validation", "[observerCtrl]")
observerCtrl INDI Callback Input Validation
#define XWCTEST_INDI_SET_CALLBACK(testclass, varname, device, propname)
Catch-2 tests for whether a SET callback properly validates the input property properly.
#define XWCTEST_INDI_NEW_CALLBACK(testclass, propname)
Catch-2 tests for whether a NEW callback properly validates the input property properly.
#define XWCTEST_SETUP_INDI_ARB_PROP(varname, device, propname)
#define XWCTEST_SETUP_INDI_NEW_PROP(propname)