rad 6.2.0
Loading...
Searching...
No Matches
Classes | Functions
testConfig.cpp File Reference

Unit tests for the Config class. More...

#include <rad/config.hpp>
#include <gtest/gtest.h>

Classes

class  MyConfig
 
class  TestConfig
 

Functions

 TEST_F (TestConfig, ctor)
 
 TEST_F (TestConfig, CreateConfigFromParams)
 
 TEST_F (TestConfig, CreateConfigFromText)
 
 TEST_F (TestConfig, CreateCommonConfigFromText)
 
 TEST_F (TestConfig, CreateCustomConfigFromText)
 
 TEST_F (TestConfig, MergeConfigWithoutAndWithType)
 
 TEST_F (TestConfig, NonExistingParam)
 
 TEST_F (TestConfig, HasParam)
 
 TEST_F (TestConfig, SetParam)
 
 TEST_F (TestConfig, SetConfigAsString)
 
 TEST_F (TestConfig, SetConfigAsString2)
 
 TEST_F (TestConfig, SetConfigAsString3)
 
 TEST_F (TestConfig, GetConfigAsString)
 
 TEST_F (TestConfig, DISABLED_GetConfigAsString2)
 
 TEST_F (TestConfig, GetListOfKeysFromConfig)
 
 TEST_F (TestConfig, CopyCtor)
 
 TEST_F (TestConfig, CheckConfig)
 
 TEST_F (TestConfig, ValidateConfig)
 
 TEST_F (TestConfig, ValidateNewConfig)
 
 TEST_F (TestConfig, ValidateConfigWithNonExistingParam)
 
 TEST_F (TestConfig, PreserveOrderAfterMerge)
 

Detailed Description

Unit tests for the Config class.

Function Documentation

◆ TEST_F() [1/21]

TEST_F ( TestConfig ,
CheckConfig  )

◆ TEST_F() [2/21]

TEST_F ( TestConfig ,
CopyCtor  )

◆ TEST_F() [3/21]

TEST_F ( TestConfig ,
CreateCommonConfigFromText  )

◆ TEST_F() [4/21]

TEST_F ( TestConfig ,
CreateConfigFromParams  )

◆ TEST_F() [5/21]

TEST_F ( TestConfig ,
CreateConfigFromText  )

◆ TEST_F() [6/21]

TEST_F ( TestConfig ,
CreateCustomConfigFromText  )

◆ TEST_F() [7/21]

TEST_F ( TestConfig ,
ctor  )

◆ TEST_F() [8/21]

TEST_F ( TestConfig ,
DISABLED_GetConfigAsString2  )

This test is disabled till ECII-761 is fixed. At the moment it is not possible to save the configuration below because the added attribute 'modname' does not belong to the data type 'MyApp'.

◆ TEST_F() [9/21]

TEST_F ( TestConfig ,
GetConfigAsString  )

◆ TEST_F() [10/21]

TEST_F ( TestConfig ,
GetListOfKeysFromConfig  )

◆ TEST_F() [11/21]

TEST_F ( TestConfig ,
HasParam  )

◆ TEST_F() [12/21]

TEST_F ( TestConfig ,
MergeConfigWithoutAndWithType  )

◆ TEST_F() [13/21]

TEST_F ( TestConfig ,
NonExistingParam  )

◆ TEST_F() [14/21]

TEST_F ( TestConfig ,
PreserveOrderAfterMerge  )

◆ TEST_F() [15/21]

TEST_F ( TestConfig ,
SetConfigAsString  )

Test that it is possible to create a config with data type and then merge a partial config without data type.

◆ TEST_F() [16/21]

TEST_F ( TestConfig ,
SetConfigAsString2  )

Test that it is possible to create a config without data type and then merge a config with data type.

◆ TEST_F() [17/21]

TEST_F ( TestConfig ,
SetConfigAsString3  )

Test that it is possible to merge a single attribute using the the fully qualified notation (e.g. 'cfg/version: 'beta').

◆ TEST_F() [18/21]

TEST_F ( TestConfig ,
SetParam  )

Test setting values of parameters using the SetParam method.

◆ TEST_F() [19/21]

TEST_F ( TestConfig ,
ValidateConfig  )

◆ TEST_F() [20/21]

TEST_F ( TestConfig ,
ValidateConfigWithNonExistingParam  )

◆ TEST_F() [21/21]

TEST_F ( TestConfig ,
ValidateNewConfig  )