API
modalPSDs_test.cpp
Go to the documentation of this file.
1 /** \file modalPSDs_test.cpp
2  * \brief Catch2 tests for the modalPSDs 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 "../modalPSDs.hpp"
14 
15 using namespace MagAOX::app;
16 
17 //namespace MPSDTEST
18 //{
19 
20 class modalPSDs_test : public modalPSDs
21 {
22 
23 public:
24  modalPSDs_test(const std::string & device)
25  {
26  m_configName = device;
27 
29  XWCTEST_SETUP_INDI_NEW_PROP(psdAvgTime);
30  XWCTEST_SETUP_INDI_ARB_PROP(m_indiP_fpsSource, modeamps, fps )
31  }
32 };
33 
34 SCENARIO( "INDI Callbacks", "[modalPSDs]" )
35 {
38  XWCTEST_INDI_SET_CALLBACK( modalPSDs, m_indiP_fpsSource, modeamps, fps);
39 }
40 
41 
42 //} //namespace modalPSDs_test
Class for application to calculate rolling PSDs of modal amplitudes.
Definition: modalPSDs.hpp:43
modalPSDs_test(const std::string &device)
#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", "[modalPSDs]")
#define XWCTEST_SETUP_INDI_ARB_PROP(varname, device, propname)
#define XWCTEST_SETUP_INDI_NEW_PROP(propname)