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

Unit tests for json handling. More...

#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include <nlohmann/json.hpp>
#include <ostream>
#include <daq/fits/json.hpp>

Go to the source code of this file.

Classes

class  TestKeyword< Type >
 Note that test cases must use TypeParam and cannot declare templated aliases. More...
 

Typedefs

using Types = ::testing::Types< ValueKeyword, EsoKeyword >
 

Functions

 TYPED_TEST_CASE (TestKeyword, Types)
 
 TYPED_TEST (TestKeyword, Construction)
 
 TYPED_TEST (TestKeyword, OptionalComment)
 
 TYPED_TEST (TestKeyword, ConstructFromString)
 Test that construction of keyword from a C string is stored as std::string and not a bool, which is the implicitly converted type for the variant construction otherwise. More...
 
 TYPED_TEST (TestKeyword, Equality)
 
 TYPED_TEST (TestKeyword, Ordering)
 
 TYPED_TEST (TestKeyword, OstreamOperator)
 
 TEST (TestKeywordCombinations, Ordering)
 
 TEST (TestKeywordCombinations, NameEquals)
 
 TEST (KeywordVector, UpdateKeywords)
 

Detailed Description

Unit tests for json handling.

Definition in file testKeyword.cpp.

Typedef Documentation

◆ Types

using Types = ::testing::Types<ValueKeyword, EsoKeyword>

Definition at line 25 of file testKeyword.cpp.

Function Documentation

◆ TEST() [1/3]

TEST ( KeywordVector  ,
UpdateKeywords   
)

Definition at line 156 of file testKeyword.cpp.

◆ TEST() [2/3]

TEST ( TestKeywordCombinations  ,
NameEquals   
)

Definition at line 144 of file testKeyword.cpp.

◆ TEST() [3/3]

TEST ( TestKeywordCombinations  ,
Ordering   
)

Definition at line 133 of file testKeyword.cpp.

◆ TYPED_TEST() [1/6]

TYPED_TEST ( TestKeyword  ,
ConstructFromString   
)

Test that construction of keyword from a C string is stored as std::string and not a bool, which is the implicitly converted type for the variant construction otherwise.

Definition at line 62 of file testKeyword.cpp.

◆ TYPED_TEST() [2/6]

TYPED_TEST ( TestKeyword  ,
Construction   
)

Definition at line 28 of file testKeyword.cpp.

◆ TYPED_TEST() [3/6]

TYPED_TEST ( TestKeyword  ,
Equality   
)

Definition at line 70 of file testKeyword.cpp.

◆ TYPED_TEST() [4/6]

TYPED_TEST ( TestKeyword  ,
OptionalComment   
)

Definition at line 51 of file testKeyword.cpp.

◆ TYPED_TEST() [5/6]

TYPED_TEST ( TestKeyword  ,
Ordering   
)

Definition at line 83 of file testKeyword.cpp.

◆ TYPED_TEST() [6/6]

TYPED_TEST ( TestKeyword  ,
OstreamOperator   
)

Definition at line 94 of file testKeyword.cpp.

◆ TYPED_TEST_CASE()

TYPED_TEST_CASE ( TestKeyword  ,
Types   
)