ifw-daq  1.0.0
IFW Data Acquisition modules
Classes | Functions | Variables
testFitsController.cpp File Reference

Unit test for daq::FitsControllerImpl More...

#include <daq/fitsController.hpp>
#include <gtest/gtest.h>
#include <gmock/gmock.h>

Go to the source code of this file.

Classes

class  TestFitsController
 Fixture for daq::FitsControllerImpl test. More...
 

Functions

void FitsfileReclaimer (fitsfile *ptr) noexcept
 
 TEST_F (TestFitsController, AbortNotStartedSucceeds)
 
 TEST_F (TestFitsController, UpdateKeywordsFailsIfAborted)
 
 TEST_F (TestFitsController, AddCommentFailsIfAborted)
 
 TEST_F (TestFitsController, UpdateKeywordsFailsIfStopped)
 
 TEST_F (TestFitsController, AddCommentFailsIfStopped)
 
 TEST_F (TestFitsController, StartAlreadyStartedFails)
 
 TEST_F (TestFitsController, StopAlreadyStoppedFails)
 
 TEST_F (TestFitsController, AbortAlreadyStoppedFails)
 
 TEST_F (TestFitsController, AbortAcquiringSucceeds)
 
 TEST_F (TestFitsController, StartCreatesFitsfile)
 
 TEST_F (TestFitsController, StopClosesFitsfileAndProduceResult)
 

Variables

constexpr size_t FITS_INITIAL_BUFFER_SIZE = 4 * 2880
 

Detailed Description

Unit test for daq::FitsControllerImpl

Definition in file testFitsController.cpp.

Function Documentation

◆ FitsfileReclaimer()

void FitsfileReclaimer ( fitsfile *  ptr)
noexcept

Definition at line 20 of file testFitsController.cpp.

◆ TEST_F() [1/11]

TEST_F ( TestFitsController  ,
AbortAcquiringSucceeds   
)

Definition at line 163 of file testFitsController.cpp.

◆ TEST_F() [2/11]

TEST_F ( TestFitsController  ,
AbortAlreadyStoppedFails   
)

Definition at line 152 of file testFitsController.cpp.

◆ TEST_F() [3/11]

TEST_F ( TestFitsController  ,
AbortNotStartedSucceeds   
)

Definition at line 89 of file testFitsController.cpp.

◆ TEST_F() [4/11]

TEST_F ( TestFitsController  ,
AddCommentFailsIfAborted   
)

Definition at line 105 of file testFitsController.cpp.

◆ TEST_F() [5/11]

TEST_F ( TestFitsController  ,
AddCommentFailsIfStopped   
)

Definition at line 124 of file testFitsController.cpp.

◆ TEST_F() [6/11]

TEST_F ( TestFitsController  ,
StartAlreadyStartedFails   
)

Definition at line 134 of file testFitsController.cpp.

◆ TEST_F() [7/11]

TEST_F ( TestFitsController  ,
StartCreatesFitsfile   
)

Definition at line 176 of file testFitsController.cpp.

◆ TEST_F() [8/11]

TEST_F ( TestFitsController  ,
StopAlreadyStoppedFails   
)

Definition at line 142 of file testFitsController.cpp.

◆ TEST_F() [9/11]

TEST_F ( TestFitsController  ,
StopClosesFitsfileAndProduceResult   
)

Definition at line 189 of file testFitsController.cpp.

◆ TEST_F() [10/11]

TEST_F ( TestFitsController  ,
UpdateKeywordsFailsIfAborted   
)

Definition at line 96 of file testFitsController.cpp.

◆ TEST_F() [11/11]

TEST_F ( TestFitsController  ,
UpdateKeywordsFailsIfStopped   
)

Definition at line 114 of file testFitsController.cpp.

Variable Documentation

◆ FITS_INITIAL_BUFFER_SIZE

constexpr size_t FITS_INITIAL_BUFFER_SIZE = 4 * 2880
constexpr

Definition at line 31 of file testFitsController.cpp.