ifw-daq 3.1.0
IFW Data Acquisition modules
Loading...
Searching...
No Matches
Classes | Functions
testAsyncOpStop.cpp File Reference

Unit test for daq::op::StopAsync. More...

#include <daq/config.hpp>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <log4cplus/logger.h>
#include <nlohmann/json.hpp>
#include <daq/error.hpp>
#include <daq/op/initiate.hpp>
#include <daq/op/stop.hpp>
#include "mock/keywordFormatterMock.hpp"
#include "mock/metadaqifMock.hpp"
#include "testAsyncOpBase.hpp"
#include "utils.hpp"

Go to the source code of this file.

Classes

struct  TestAsyncOpStop
 Note: TestAsyncOpBase set. More...
 

Functions

 TEST_F (TestAsyncOpStop, Stop)
 
 TEST_F (TestAsyncOpStop, StopReturnsInvalidJsonKeywordsSucceedsIfTolerant)
 
 TEST_F (TestAsyncOpStop, StopReturnsInvalidJsonKeywordsFails)
 
 TEST_F (TestAsyncOpStop, StopReturnsUnknownKeywordsFails)
 
 TEST_F (TestAsyncOpStop, StopMetaFailsReturnsExceptionalFuture)
 m_meta_rr_client Will succeed.
 
 TEST_F (TestAsyncOpStop, StopMetaFailsReturnsSuccessWithTolerantPolicy)
 
 TEST_F (TestAsyncOpStop, StopIgnoresAlreadyStoppedSources)
 

Detailed Description

Unit test for daq::op::StopAsync.

Definition in file testAsyncOpStop.cpp.

Function Documentation

◆ TEST_F() [1/7]

TEST_F ( TestAsyncOpStop  ,
Stop   
)

Definition at line 56 of file testAsyncOpStop.cpp.

◆ TEST_F() [2/7]

TEST_F ( TestAsyncOpStop  ,
StopIgnoresAlreadyStoppedSources   
)

Definition at line 357 of file testAsyncOpStop.cpp.

◆ TEST_F() [3/7]

TEST_F ( TestAsyncOpStop  ,
StopMetaFailsReturnsExceptionalFuture   
)

m_meta_rr_client Will succeed.

m_meta_rr_client2 will fail.

Definition at line 269 of file testAsyncOpStop.cpp.

◆ TEST_F() [4/7]

TEST_F ( TestAsyncOpStop  ,
StopMetaFailsReturnsSuccessWithTolerantPolicy   
)

Definition at line 312 of file testAsyncOpStop.cpp.

◆ TEST_F() [5/7]

TEST_F ( TestAsyncOpStop  ,
StopReturnsInvalidJsonKeywordsFails   
)

Definition at line 159 of file testAsyncOpStop.cpp.

◆ TEST_F() [6/7]

TEST_F ( TestAsyncOpStop  ,
StopReturnsInvalidJsonKeywordsSucceedsIfTolerant   
)

Definition at line 108 of file testAsyncOpStop.cpp.

◆ TEST_F() [7/7]

TEST_F ( TestAsyncOpStop  ,
StopReturnsUnknownKeywordsFails   
)

Definition at line 206 of file testAsyncOpStop.cpp.