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

Unit tests for json handling. More...

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

Go to the source code of this file.

Classes

class  TestJson
 

Functions

 TEST_F (TestJson, ParseInvalidJsonThrowsNlohmannException)
 
 TEST_F (TestJson, ParseValueKeywords)
 
 TEST_F (TestJson, ParseEsoKeywords)
 
 TEST_F (TestJson, ParseOptionalKeywordComment)
 
 TEST_F (TestJson, ParseEmptyArray)
 
 TEST_F (TestJson, ParseFailsIfNotAnArray)
 
 TEST_F (TestJson, ParseFailsIfNotAnObjectInArray)
 
 TEST_F (TestJson, ParseFailsIfObjectMissTypeProperty)
 
 TEST_F (TestJson, ParseFailsIfObjectHasUnknownTypeProperty)
 
 TEST_F (TestJson, ParseFailsIfTypeIsNotString)
 
 TEST_F (TestJson, ParseFailsIfObjectMissNameProperty)
 
 TEST_F (TestJson, ParseFailsIfObjectMissValue)
 
 TEST_F (TestJson, ParseFailsIfObjectHasUnsupportedValueType)
 
 TEST_F (TestJson, ParseFailsIfNameIsNotString)
 
 TEST_F (TestJson, ParseFailsIfObjectHasCommentThatIsNotString)
 

Detailed Description

Unit tests for json handling.

Definition in file testJson.cpp.

Function Documentation

◆ TEST_F() [1/15]

TEST_F ( TestJson  ,
ParseEmptyArray   
)

Definition at line 239 of file testJson.cpp.

◆ TEST_F() [2/15]

TEST_F ( TestJson  ,
ParseEsoKeywords   
)

Definition at line 116 of file testJson.cpp.

◆ TEST_F() [3/15]

TEST_F ( TestJson  ,
ParseFailsIfNameIsNotString   
)

Definition at line 354 of file testJson.cpp.

◆ TEST_F() [4/15]

TEST_F ( TestJson  ,
ParseFailsIfNotAnArray   
)

Definition at line 248 of file testJson.cpp.

◆ TEST_F() [5/15]

TEST_F ( TestJson  ,
ParseFailsIfNotAnObjectInArray   
)

Definition at line 260 of file testJson.cpp.

◆ TEST_F() [6/15]

TEST_F ( TestJson  ,
ParseFailsIfObjectHasCommentThatIsNotString   
)

Definition at line 368 of file testJson.cpp.

◆ TEST_F() [7/15]

TEST_F ( TestJson  ,
ParseFailsIfObjectHasUnknownTypeProperty   
)

Definition at line 286 of file testJson.cpp.

◆ TEST_F() [8/15]

TEST_F ( TestJson  ,
ParseFailsIfObjectHasUnsupportedValueType   
)

Definition at line 340 of file testJson.cpp.

◆ TEST_F() [9/15]

TEST_F ( TestJson  ,
ParseFailsIfObjectMissNameProperty   
)

Definition at line 314 of file testJson.cpp.

◆ TEST_F() [10/15]

TEST_F ( TestJson  ,
ParseFailsIfObjectMissTypeProperty   
)

Definition at line 273 of file testJson.cpp.

◆ TEST_F() [11/15]

TEST_F ( TestJson  ,
ParseFailsIfObjectMissValue   
)

Definition at line 327 of file testJson.cpp.

◆ TEST_F() [12/15]

TEST_F ( TestJson  ,
ParseFailsIfTypeIsNotString   
)

Definition at line 300 of file testJson.cpp.

◆ TEST_F() [13/15]

TEST_F ( TestJson  ,
ParseInvalidJsonThrowsNlohmannException   
)

Definition at line 21 of file testJson.cpp.

◆ TEST_F() [14/15]

TEST_F ( TestJson  ,
ParseOptionalKeywordComment   
)

Definition at line 204 of file testJson.cpp.

◆ TEST_F() [15/15]

TEST_F ( TestJson  ,
ParseValueKeywords   
)

Definition at line 37 of file testJson.cpp.