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

daq::ManagerImpl tests More...

#include <regex>
#include <daq/manager.hpp>
#include <fmt/ostream.h>
#include <gtest/gtest.h>
#include "mock/daqController.hpp"
#include "statusObserver.hpp"
#include "utils.hpp"

Go to the source code of this file.

Classes

class  TestManagerImplLifecycle
 
class  TestManagerImpl
 

Functions

 TEST_F (TestManagerImplLifecycle, ConstructionIsOk)
 
 TEST_F (TestManagerImplLifecycle, AddDaqNotifiesObserver)
 
 TEST_F (TestManagerImplLifecycle, AwaitStateCompletesWithAbandonedManager)
 
 TEST_F (TestManagerImpl, MakeId)
 
 TEST_F (TestManagerImpl, AddingDaqWithSameIdThrowsInvalidArgument)
 
 TEST_F (TestManagerImpl, StartNonexistingDaqThrowsInvalidArgument)
 
 TEST_F (TestManagerImpl, StartDaqAsyncStartsDaq)
 
 TEST_F (TestManagerImpl, StopNonexistingDaqThrowsInvalidArgument)
 
 TEST_F (TestManagerImpl, StopDaqAsyncStopsDaq)
 
 TEST_F (TestManagerImpl, AbortNonexistingDaqThrowsInvalidArgumentEvenIfTolerant)
 
 TEST_F (TestManagerImpl, AbortDaqAsyncAbortsDaq)
 
 TEST_F (TestManagerImpl, UpdateKeywordsUpdatesKeywords)
 
 TEST_F (TestManagerImpl, UpdateKeywordsForNonexistingDaqThrowsInvalidArgument)
 
 TEST_F (TestManagerImpl, GetStatus)
 
 TEST_F (TestManagerImpl, GetStatusThrowsIfDaqDoesNotExist)
 
 TEST_F (TestManagerImpl, AwaitDaqStateReturnsReadyFutureIfConditionIsFulfilled)
 
 TEST_F (TestManagerImpl, AwaitDaqStateIsReadyWhenConditionIsFulfilled)
 
 TEST_F (TestManagerImpl, AwaitDaqStateIsReadyWhenItTimesout)
 

Detailed Description

daq::ManagerImpl tests

Definition in file testManager.cpp.

Function Documentation

◆ TEST_F() [1/18]

TEST_F ( TestManagerImpl  ,
AbortDaqAsyncAbortsDaq   
)

Definition at line 210 of file testManager.cpp.

◆ TEST_F() [2/18]

TEST_F ( TestManagerImpl  ,
AbortNonexistingDaqThrowsInvalidArgumentEvenIfTolerant   
)

Definition at line 203 of file testManager.cpp.

◆ TEST_F() [3/18]

TEST_F ( TestManagerImpl  ,
AddingDaqWithSameIdThrowsInvalidArgument   
)

Definition at line 156 of file testManager.cpp.

◆ TEST_F() [4/18]

TEST_F ( TestManagerImpl  ,
AwaitDaqStateIsReadyWhenConditionIsFulfilled   
)

Definition at line 271 of file testManager.cpp.

◆ TEST_F() [5/18]

TEST_F ( TestManagerImpl  ,
AwaitDaqStateIsReadyWhenItTimesout   
)

Definition at line 285 of file testManager.cpp.

◆ TEST_F() [6/18]

TEST_F ( TestManagerImpl  ,
AwaitDaqStateReturnsReadyFutureIfConditionIsFulfilled   
)

Definition at line 259 of file testManager.cpp.

◆ TEST_F() [7/18]

TEST_F ( TestManagerImpl  ,
GetStatus   
)

Definition at line 243 of file testManager.cpp.

◆ TEST_F() [8/18]

TEST_F ( TestManagerImpl  ,
GetStatusThrowsIfDaqDoesNotExist   
)

Definition at line 253 of file testManager.cpp.

◆ TEST_F() [9/18]

TEST_F ( TestManagerImpl  ,
MakeId   
)

Definition at line 137 of file testManager.cpp.

◆ TEST_F() [10/18]

TEST_F ( TestManagerImpl  ,
StartDaqAsyncStartsDaq   
)

Definition at line 168 of file testManager.cpp.

◆ TEST_F() [11/18]

TEST_F ( TestManagerImpl  ,
StartNonexistingDaqThrowsInvalidArgument   
)

Definition at line 161 of file testManager.cpp.

◆ TEST_F() [12/18]

TEST_F ( TestManagerImpl  ,
StopDaqAsyncStopsDaq   
)

Definition at line 187 of file testManager.cpp.

◆ TEST_F() [13/18]

TEST_F ( TestManagerImpl  ,
StopNonexistingDaqThrowsInvalidArgument   
)

Definition at line 180 of file testManager.cpp.

◆ TEST_F() [14/18]

TEST_F ( TestManagerImpl  ,
UpdateKeywordsForNonexistingDaqThrowsInvalidArgument   
)

Definition at line 236 of file testManager.cpp.

◆ TEST_F() [15/18]

TEST_F ( TestManagerImpl  ,
UpdateKeywordsUpdatesKeywords   
)

Definition at line 225 of file testManager.cpp.

◆ TEST_F() [16/18]

TEST_F ( TestManagerImplLifecycle  ,
AddDaqNotifiesObserver   
)

Definition at line 88 of file testManager.cpp.

◆ TEST_F() [17/18]

TEST_F ( TestManagerImplLifecycle  ,
AwaitStateCompletesWithAbandonedManager   
)

Definition at line 108 of file testManager.cpp.

◆ TEST_F() [18/18]

TEST_F ( TestManagerImplLifecycle  ,
ConstructionIsOk   
)

Definition at line 80 of file testManager.cpp.