rad  5.1.0
Classes | Functions
testConfig.cpp File Reference

Unit tests for the Config class. More...

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

Classes

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)
 

Detailed Description

Unit tests for the Config class.

Function Documentation

◆ TEST_F() [1/15]

TEST_F ( TestConfig  ,
CreateCommonConfigFromText   
)

◆ TEST_F() [2/15]

TEST_F ( TestConfig  ,
CreateConfigFromParams   
)

◆ TEST_F() [3/15]

TEST_F ( TestConfig  ,
CreateConfigFromText   
)

◆ TEST_F() [4/15]

TEST_F ( TestConfig  ,
CreateCustomConfigFromText   
)

◆ TEST_F() [5/15]

TEST_F ( TestConfig  ,
ctor   
)

◆ TEST_F() [6/15]

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() [7/15]

TEST_F ( TestConfig  ,
GetConfigAsString   
)

◆ TEST_F() [8/15]

TEST_F ( TestConfig  ,
GetListOfKeysFromConfig   
)

◆ TEST_F() [9/15]

TEST_F ( TestConfig  ,
HasParam   
)

◆ TEST_F() [10/15]

TEST_F ( TestConfig  ,
MergeConfigWithoutAndWithType   
)

◆ TEST_F() [11/15]

TEST_F ( TestConfig  ,
NonExistingParam   
)

◆ TEST_F() [12/15]

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() [13/15]

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() [14/15]

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() [15/15]

TEST_F ( TestConfig  ,
SetParam   
)

Test setting values of parameters using the SetParam method.