mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
Loading...
Searching...
No Matches
leakyIntegrator_test.cpp
Go to the documentation of this file.
1/** \file leakyIntegrator_test.cpp
2 * \brief Tests for leaky adaptive-optics integration.
3 */
4#include "../../../catch2/catch.hpp"
5
7
8/** \cond */
9/// Compile the leaky integrator and its measurement type for a representative scalar type.
10template struct mx::AO::sim::wfMeasurement<double>;
12/** \endcond */
13
14/** \defgroup leakyIntegrator_unit_tests leakyIntegrator Unit Tests
15 * \ingroup ao_sim_unit_tests
16 */
17
18namespace unitTest::ao_sim_leakyIntegrator_test
19{
20
21/** \brief Verifies single-mode leak configuration through mx::AO::sim::leakyIntegrator::leak.
22 *
23 * \ingroup leakyIntegrator_unit_tests
24 * \todo Add behavioral assertions for the remaining APIs declared in mx::AO::sim::leakyIntegrator.
25 */
26TEST_CASE( "leakyIntegrator sets a single-mode leak", "[ao::sim::leakyIntegrator]" )
27{
29
30 REQUIRE( integrator.initialize( 2 ) == 0 );
31 CHECK( integrator.leak( 1, 0.25 ) == 0 );
32}
33
34} // namespace unitTest::ao_sim_leakyIntegrator_test
Implements the leaky integrator controller.
int initialize(int nModes)
Allocate and initialize all state.
int leak(int i, realT l)
Set the leak for a single mode.
TEST_CASE("Loading aoAtmosphere config settings", "[ao::analysis::aoAtmosphere]")
Verify parsing and validation of atmosphere configuration settings.
Declares and defines the leaky integrator controller class for AO control.