API
 
Loading...
Searching...
No Matches

Unit tests for the modalPSDs application. More...

Collaboration diagram for modalPSDs Unit Tests:

Namespaces

namespace  libXWCTest::modalPSDsTest
 Namespace for modalPSDs unit tests.
 

Functions

 libXWCTest::modalPSDsTest::SCENARIO ("INDI Callbacks", "[modalPSDs]")
 Verify modalPSDs callback validation and PSD-window extraction logic behave as expected.
 
 libXWCTest::modalPSDsTest::TEST_CASE ("modalPSDs PSD averaging and mean windows are decoupled", "[modalPSDs]")
 Verify modalPSDs derives PSD averaging depth from psdTime and psdAvgTime while mean sizing follows meanTime.
 
 libXWCTest::modalPSDsTest::TEST_CASE ("modalPSDs PSD input windows use the exact required history depth", "[modalPSDs]")
 Verify modalPSDs can read both windows when the circular buffer is sized to the exact required history depth.
 
 libXWCTest::modalPSDsTest::TEST_CASE ("modalPSDs rolling mean update matches full recompute", "[modalPSDs]")
 Verify modalPSDs rolling mean updates match a full recomputation after one overlap advance.
 
 libXWCTest::modalPSDsTest::TEST_CASE ("modalPSDs rolling PSD sum update matches full recompute", "[modalPSDs]")
 Verify modalPSDs rolling PSD-sum updates match a full recomputation when one plane enters and one leaves.
 
 libXWCTest::modalPSDsTest::TEST_CASE ("modalPSDs loop-state gating is optional and blocks open-loop frames", "[modalPSDs]")
 Verify modalPSDs optionally gates PSD ingestion on the configured loop-state property.
 

Detailed Description

Unit tests for the modalPSDs application.

Function Documentation

◆ SCENARIO()

libXWCTest::modalPSDsTest::SCENARIO ( "INDI Callbacks"  ,
""  [modalPSDs] 
)

Verify modalPSDs callback validation and PSD-window extraction logic behave as expected.

Definition at line 218 of file modalPSDs_test.cpp.

References MagAOX::app::modalPSDs::loadPsdInputWindows(), XWCTEST_INDI_NEW_CALLBACK, and XWCTEST_INDI_SET_CALLBACK.

◆ TEST_CASE() [1/5]

libXWCTest::modalPSDsTest::TEST_CASE ( "modalPSDs loop-state gating is optional and blocks open-loop frames"  ,
""  [modalPSDs] 
)

Verify modalPSDs optionally gates PSD ingestion on the configured loop-state property.

Definition at line 468 of file modalPSDs_test.cpp.

References MagAOX::app::modalPSDs::acceptLoopStateFrame().

◆ TEST_CASE() [2/5]

libXWCTest::modalPSDsTest::TEST_CASE ( "modalPSDs PSD averaging and mean windows are decoupled"  ,
""  [modalPSDs] 
)

Verify modalPSDs derives PSD averaging depth from psdTime and psdAvgTime while mean sizing follows meanTime.

Definition at line 241 of file modalPSDs_test.cpp.

References MagAOX::app::modalPSDs::desiredMeanSampleCount(), MagAOX::app::modalPSDs::desiredPSDAverageCount(), MagAOX::app::modalPSDs::rawPSDHistoryDepth(), and MagAOX::app::modalPSDs::requiredInputHistoryDepth().

◆ TEST_CASE() [3/5]

libXWCTest::modalPSDsTest::TEST_CASE ( "modalPSDs PSD input windows use the exact required history depth"  ,
""  [modalPSDs] 
)

Verify modalPSDs can read both windows when the circular buffer is sized to the exact required history depth.

Definition at line 339 of file modalPSDs_test.cpp.

◆ TEST_CASE() [4/5]

libXWCTest::modalPSDsTest::TEST_CASE ( "modalPSDs rolling mean update matches full recompute"  ,
""  [modalPSDs] 
)

Verify modalPSDs rolling mean updates match a full recomputation after one overlap advance.

Definition at line 371 of file modalPSDs_test.cpp.

References MagAOX::app::modalPSDs::cacheMeanHead(), MagAOX::app::modalPSDs::circularEntryAdvance(), MagAOX::app::modalPSDs::recomputeMeanSums(), and MagAOX::app::modalPSDs::rollMeanSums().

◆ TEST_CASE() [5/5]

libXWCTest::modalPSDsTest::TEST_CASE ( "modalPSDs rolling PSD sum update matches full recompute"  ,
""  [modalPSDs] 
)

Verify modalPSDs rolling PSD-sum updates match a full recomputation when one plane enters and one leaves.

Definition at line 436 of file modalPSDs_test.cpp.

References MagAOX::app::modalPSDs::updatePlaneSum().