MRPT
1.9.9
|
#include <mrpt/config/CConfigFileMemory.h>
#include <mrpt/config/CConfigFile.h>
#include <mrpt/system/filesystem.h>
#include <gtest/gtest.h>
#include <fstream>
#include <cstdlib>
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 |
TEST | ( | CConfigFileMemory | , |
readwrite | |||
) |
Definition at line 17 of file CConfigFileMemory_unittest.cpp.
TEST | ( | CConfigFileMemory | , |
Sections | |||
) |
Definition at line 25 of file CConfigFileMemory_unittest.cpp.
References mrpt::config::CConfigFileMemory::getAllSections(), and mrpt::config::CConfigFileBase::write().
TEST | ( | CConfigFileMemory | , |
Names | |||
) |
Definition at line 40 of file CConfigFileMemory_unittest.cpp.
References mrpt::config::CConfigFileMemory::getAllKeys(), names, and mrpt::config::CConfigFileBase::write().
TEST | ( | CConfigFileMemory | , |
setFromString | |||
) |
Definition at line 55 of file CConfigFileMemory_unittest.cpp.
References mrpt::config::CConfigFileBase::read_int(), mrpt::config::CConfigFileBase::read_string(), sampleCfgTxt, and mrpt::config::CConfigFileMemory::setContent().
TEST | ( | CConfigFileMemory | , |
readMultiLineStrings | |||
) |
Definition at line 82 of file CConfigFileMemory_unittest.cpp.
References expectedStr, mrpt::config::CConfigFileBase::read_string(), sampleCfgTxt, and mrpt::config::CConfigFileMemory::setContent().
TEST | ( | CConfigFile | , |
readMultiLineStrings | |||
) |
Definition at line 91 of file CConfigFileMemory_unittest.cpp.
References expectedStr, mrpt::system::getTempFileName(), mrpt::config::CConfigFileBase::read_string(), and sampleCfgTxt.
TEST | ( | CConfigFileMemory | , |
parseVariables | |||
) |
Definition at line 109 of file CConfigFileMemory_unittest.cpp.
References mrpt::config::CConfigFileBase::read_double(), mrpt::config::CConfigFileBase::read_int(), mrpt::config::CConfigFileBase::read_string(), and mrpt::config::CConfigFileMemory::setContent().
const std::string expectedStr |
Definition at line 78 of file CConfigFileMemory_unittest.cpp.
Referenced by TEST().
const std::string sampleCfgTxt |
Definition at line 71 of file CConfigFileMemory_unittest.cpp.
Referenced by TEST().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020 |