API
adcTracker_test.cpp
Go to the documentation of this file.
1 /** \file adcTracker_test.cpp
2  * \brief Catch2 tests for the adcTracker 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 "../adcTracker.hpp"
14 
15 using namespace MagAOX::app;
16 
17 namespace ADCTTEST
18 {
19 
20 class adcTracker_test : public adcTracker
21 {
22 
23 public:
24  adcTracker_test(const std::string device)
25  {
26  m_configName = device;
27 
29  XWCTEST_SETUP_INDI_NEW_PROP(deltaAngle);
30  XWCTEST_SETUP_INDI_NEW_PROP(deltaADC1);
31  XWCTEST_SETUP_INDI_NEW_PROP(deltaADC2);
33 
34  XWCTEST_SETUP_INDI_ARB_PROP(m_indiP_teldata, tcsi, zd);
35  }
36 };
37 
38 
39 SCENARIO( "INDI Callbacks", "[adcTracker]" )
40 {
46 
47  XWCTEST_INDI_SET_CALLBACK( adcTracker, m_indiP_teldata, tcsi, zd);
48 
49 }
50 
51 
52 } //namespace adcTracker_test
adcTracker_test(const std::string device)
The MagAO-X ADC Tracker.
Definition: adcTracker.hpp:40
#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.
SCENARIO("INDI Callbacks", "[adcTracker]")
#define XWCTEST_SETUP_INDI_ARB_PROP(varname, device, propname)
#define XWCTEST_SETUP_INDI_NEW_PROP(propname)