#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 = std::string("this is a long value that can be split into several lines but read as a single line.") |
| TEST | ( | CConfigFileMemory | , |
| readwrite | |||
| ) |
Definition at line 20 of file CConfigFileMemory_unittest.cpp.
| TEST | ( | CConfigFileMemory | , |
| Sections | |||
| ) |
Definition at line 28 of file CConfigFileMemory_unittest.cpp.
References mrpt::utils::CConfigFileMemory::getAllSections(), and mrpt::utils::CConfigFileBase::write().
| TEST | ( | CConfigFileMemory | , |
| Names | |||
| ) |
Definition at line 42 of file CConfigFileMemory_unittest.cpp.
References mrpt::utils::CConfigFileMemory::getAllKeys(), and mrpt::utils::CConfigFileBase::write().
| TEST | ( | CConfigFileMemory | , |
| setFromString | |||
| ) |
Definition at line 56 of file CConfigFileMemory_unittest.cpp.
References mrpt::utils::CConfigFileBase::read_int(), mrpt::utils::CConfigFileBase::read_string(), sampleCfgTxt, and mrpt::utils::CConfigFileMemory::setContent().
| TEST | ( | CConfigFileMemory | , |
| readMultiLineStrings | |||
| ) |
Definition at line 82 of file CConfigFileMemory_unittest.cpp.
References expectedStr, mrpt::utils::CConfigFileBase::read_string(), sampleCfgTxt, and mrpt::utils::CConfigFileMemory::setContent().
| TEST | ( | CConfigFile | , |
| readMultiLineStrings | |||
| ) |
Definition at line 91 of file CConfigFileMemory_unittest.cpp.
References expectedStr, mrpt::system::getTempFileName(), mrpt::utils::CConfigFileBase::read_string(), and sampleCfgTxt.
| TEST | ( | CConfigFileMemory | , |
| parseVariables | |||
| ) |
Definition at line 108 of file CConfigFileMemory_unittest.cpp.
References mrpt::utils::CConfigFileBase::read_double(), mrpt::utils::CConfigFileBase::read_int(), mrpt::utils::CConfigFileBase::read_string(), and mrpt::utils::CConfigFileMemory::setContent().
| const std::string expectedStr = std::string("this is a long value that can be split into several lines but read as a single line.") |
Definition at line 80 of file CConfigFileMemory_unittest.cpp.
Referenced by TEST().
| const std::string sampleCfgTxt |
Definition at line 73 of file CConfigFileMemory_unittest.cpp.
Referenced by TEST().
| Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019 |