API
 
Loading...
Searching...
No Matches
kTracker_test.cpp
Go to the documentation of this file.
1/** \file kTracker_test.cpp
2 * \brief Catch2 tests for the kTracker app.
3 * \author Jared R. Males (jaredmales@gmail.com)
4 *
5 * \ingroup kTracker_files
6 */
7
8#include "../../../tests/testXWC.hpp"
9#include "../../../tests/testMacrosINDI.hpp"
10
11#include "../kTracker.hpp"
12
13using namespace MagAOX::app;
14
15namespace libXWCTest
16{
17
18/** \defgroup kTracker_unit_test kTracker Unit Tests
19 * \brief Unit tests for the kTracker application.
20 *
21 * \ingroup application_unit_test
22 */
23
24/// Namespace for `kTracker` unit tests.
25/** \ingroup kTracker_unit_test
26 */
27namespace kTrackerTest
28{
29
30/// \cond DOXYGEN_SUPPRESS_TEST_HARNESS
31class kTracker_test : public kTracker
32{
33 public:
34 kTracker_test( const std::string device )
35 {
36 m_configName = device;
37
39
40 XWCTEST_SETUP_INDI_ARB_PROP( m_indiP_teldata, tcsi, zd );
41 }
42};
43/// \endcond
44
45/// Verify the kTracker INDI callback validators accept only the expected properties.
46/**
47 * \ingroup kTracker_unit_test
48 */
49TEST_CASE( "kTracker INDI callbacks validate device and property names", "[kTracker]" )
50{
51 // clang-format off
52 #ifdef KTRACKER_TEST_DOXYGEN_REF
53 kTracker::newCallBack_m_indiP_tracking( pcf::IndiProperty() );
54 kTracker::setCallBack_m_indiP_teldata( pcf::IndiProperty() );
55 #endif
56 // clang-format on
57
59 XWCTEST_INDI_SET_CALLBACK( kTracker, m_indiP_teldata, tcsi, zd );
60}
61
62} // namespace kTrackerTest
63
64} // namespace libXWCTest
The MagAO-X K-mirror tracker.
Definition kTracker.hpp:41
TEST_CASE("kTracker INDI callbacks validate device and property names", "[kTracker]")
Verify the kTracker INDI callback validators accept only the expected properties.
#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.
Namespace for all libXWC tests.
#define XWCTEST_SETUP_INDI_ARB_PROP(varname, device, propname)
#define XWCTEST_SETUP_INDI_NEW_PROP(propname)