BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Checks JsonItem class and its ability to convert SessionItems to json and back. More...
Classes | |
class | TestItem |
class | TestModel |
Public Member Functions | |
JsonItemConverterTest () | |
~JsonItemConverterTest () | |
std::unique_ptr< JsonItemConverter > | createConverter () |
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... | |
Protected Attributes | |
std::string | m_test_dir |
Private Attributes | |
std::unique_ptr< SessionModel > | m_model |
Checks JsonItem class and its ability to convert SessionItems to json and back.
Definition at line 35 of file jsonitemconverter.test.cpp.
|
inline |
Definition at line 56 of file jsonitemconverter.test.cpp.
|
default |
|
inline |
Definition at line 62 of file jsonitemconverter.test.cpp.
References ModelView::clone.
|
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().
|
private |
Definition at line 69 of file jsonitemconverter.test.cpp.
|
protectedinherited |
Definition at line 35 of file folderbasedtest.h.
Referenced by FolderBasedTest::FolderBasedTest(), FolderBasedTest::testDir(), and FolderBasedTest::testPath().