Main MRPT website > C++ reference for MRPT 1.9.9
Functions | Variables
CConfigFileMemory_unittest.cpp File Reference
#include <mrpt/utils/CConfigFileMemory.h>
#include <mrpt/utils/CConfigFile.h>
#include <mrpt/system/filesystem.h>
#include <gtest/gtest.h>
#include <fstream>

Go to the source code of this file.

Functions

 TEST (CConfigFileMemory, readwrite)
 
 TEST (CConfigFileMemory, Sections)
 
 TEST (CConfigFileMemory, Names)
 
 TEST (CConfigFileMemory, setFromString)
 
 TEST (CConfigFileMemory, readMultiLineStrings)
 
 TEST (CConfigFile, readMultiLineStrings)
 
 TEST (CConfigFileMemory, parseVariables)
 

Variables

const std::string sampleCfgTxt
 
const std::string expectedStr
 

Function Documentation

◆ TEST() [1/7]

TEST ( CConfigFileMemory  ,
readwrite   
)

Definition at line 20 of file CConfigFileMemory_unittest.cpp.

◆ TEST() [2/7]

TEST ( CConfigFileMemory  ,
Sections   
)

Definition at line 28 of file CConfigFileMemory_unittest.cpp.

References mrpt::utils::CConfigFileMemory::getAllSections(), and mrpt::utils::CConfigFileBase::write().

Here is the call graph for this function:

◆ TEST() [3/7]

TEST ( CConfigFileMemory  ,
Names   
)

Definition at line 43 of file CConfigFileMemory_unittest.cpp.

References mrpt::utils::CConfigFileMemory::getAllKeys(), and mrpt::utils::CConfigFileBase::write().

Here is the call graph for this function:

◆ TEST() [4/7]

TEST ( CConfigFileMemory  ,
setFromString   
)

◆ TEST() [5/7]

TEST ( CConfigFileMemory  ,
readMultiLineStrings   
)

Definition at line 85 of file CConfigFileMemory_unittest.cpp.

References expectedStr, mrpt::utils::CConfigFileBase::read_string(), sampleCfgTxt, and mrpt::utils::CConfigFileMemory::setContent().

Here is the call graph for this function:

◆ TEST() [6/7]

TEST ( CConfigFile  ,
readMultiLineStrings   
)

Definition at line 94 of file CConfigFileMemory_unittest.cpp.

References expectedStr, mrpt::system::getTempFileName(), mrpt::utils::CConfigFileBase::read_string(), and sampleCfgTxt.

Here is the call graph for this function:

◆ TEST() [7/7]

TEST ( CConfigFileMemory  ,
parseVariables   
)

Variable Documentation

◆ expectedStr

const std::string expectedStr
Initial value:
"this is a long value that can be split into several lines but read as a "
"single line.")
GLsizei const GLchar ** string
Definition: glext.h:4101

Definition at line 81 of file CConfigFileMemory_unittest.cpp.

Referenced by TEST().

◆ sampleCfgTxt

const std::string sampleCfgTxt
Initial value:
=
"[test]\n"
"key_str = this is a \\\n"
"long value that can be \\\n"
"split into several lines \\\n"
"but read as a single line. \n"

Definition at line 74 of file CConfigFileMemory_unittest.cpp.

Referenced by TEST().




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019