BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Implements class CLASS? More...
Go to the source code of this file.
Classes | |
class | JsonTagInfoConverterTest |
Test convertion of TagInfo from/to QJsonObject. More... | |
Functions | |
TEST_F (JsonTagInfoConverterTest, isItemTag) | |
Checks if json object is correctly identified as representing TagInfo. More... | |
TEST_F (JsonTagInfoConverterTest, tagInfoToFileAndBack) | |
To file and back. More... | |
TEST_F (JsonTagInfoConverterTest, tagInfoToJsonAndBack) | |
From TagInfo to json and back. More... | |
TEST_F (JsonTagInfoConverterTest, toJson) | |
Creating QJsonArray from TagInfo. More... | |
Implements class CLASS?
Definition in file jsontaginfoconverter.test.cpp.
TEST_F | ( | JsonTagInfoConverterTest | , |
isItemTag | |||
) |
Checks if json object is correctly identified as representing TagInfo.
Definition at line 39 of file jsontaginfoconverter.test.cpp.
References ModelView::JsonTagInfoConverter::isTagInfo(), ModelView::JsonTagInfoConverter::maxKey, ModelView::JsonTagInfoConverter::minKey, ModelView::JsonTagInfoConverter::modelsKey, and ModelView::JsonTagInfoConverter::nameKey.
TEST_F | ( | JsonTagInfoConverterTest | , |
tagInfoToFileAndBack | |||
) |
To file and back.
Definition at line 90 of file jsontaginfoconverter.test.cpp.
References ModelView::JsonTagInfoConverter::from_json(), TestUtils::LoadJson(), ModelView::TagInfo::max(), ModelView::TagInfo::min(), ModelView::TagInfo::modelTypes(), ModelView::TagInfo::name(), ModelView::TagInfo::propertyTag(), TestUtils::SaveJson(), TestUtils::TestFileName(), and ModelView::JsonTagInfoConverter::to_json().
TEST_F | ( | JsonTagInfoConverterTest | , |
tagInfoToJsonAndBack | |||
) |
From TagInfo to json and back.
Definition at line 73 of file jsontaginfoconverter.test.cpp.
References ModelView::JsonTagInfoConverter::from_json(), ModelView::TagInfo::max(), ModelView::TagInfo::min(), ModelView::TagInfo::modelTypes(), ModelView::TagInfo::name(), and ModelView::JsonTagInfoConverter::to_json().
TEST_F | ( | JsonTagInfoConverterTest | , |
toJson | |||
) |
Creating QJsonArray from TagInfo.
Definition at line 60 of file jsontaginfoconverter.test.cpp.
References ModelView::JsonTagInfoConverter::isTagInfo(), and ModelView::JsonTagInfoConverter::to_json().