BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Checks JsonItemContainerConverter class and its ability to convert SessionItemContainer to json and back. More...
Public Member Functions | |
JsonItemContainerConverterTest () | |
~JsonItemContainerConverterTest () | |
std::unique_ptr< JsonItemContainerConverter > | createConverter () const |
std::string | createEmptyDir (const std::string &subdir) const |
Creates an empty directory in main test folder. More... | |
std::string | testDir () const |
std::string | testPath () const |
Return full path to the test folder. Located in CMAKE_BINARY_DIR/test_output/<m_test_dir>. More... | |
Public Attributes | |
std::unique_ptr< JsonItemDataConverter > | m_itemdata_converter |
Protected Attributes | |
std::string | m_test_dir |
Checks JsonItemContainerConverter class and its ability to convert SessionItemContainer to json and back.
Full testing is not possible since JsonItemContainerConverter requires machinery provided by JsonItemConverter. Simplifed item/json creation is used.
Definition at line 36 of file jsonitemcontainerconverter.test.cpp.
|
inline |
Definition at line 38 of file jsonitemcontainerconverter.test.cpp.
|
default |
|
inline |
Definition at line 44 of file jsonitemcontainerconverter.test.cpp.
References ModelView::JsonItemFormatAssistant::itemDataKey, ModelView::JsonItemFormatAssistant::itemTagsKey, and ModelView::JsonItemFormatAssistant::modelKey.
|
inherited |
Creates an empty directory in main test folder.
Remove recursively previous one with the same name, if exist.
Definition at line 39 of file folderbasedtest.cpp.
References ModelView::Utils::create_directory(), ModelView::Utils::join(), ModelView::Utils::remove_all(), and FolderBasedTest::testPath().
|
inherited |
|
inherited |
Return full path to the test folder. Located in CMAKE_BINARY_DIR/test_output/<m_test_dir>.
Definition at line 31 of file folderbasedtest.cpp.
References FolderBasedTest::m_test_dir, and TestUtils::TestDirectoryPath().
Referenced by FolderBasedTest::createEmptyDir().
std::unique_ptr<JsonItemDataConverter> JsonItemContainerConverterTest::m_itemdata_converter |
Definition at line 76 of file jsonitemcontainerconverter.test.cpp.
|
protectedinherited |
Definition at line 35 of file folderbasedtest.h.
Referenced by FolderBasedTest::FolderBasedTest(), FolderBasedTest::testDir(), and FolderBasedTest::testPath().