|
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 | ToyItemsSerializationTest |
| Testing serialization of ToyItems using json converters. More... | |
Functions | |
| TEST_F (ToyItemsSerializationTest, allItemsInAModel) | |
| Insert all supported items in a model and check that after serialization. More... | |
| TEST_F (ToyItemsSerializationTest, defaultShapeGroupItemInModel) | |
| Checking ShapeGroupItem in a model. More... | |
| TEST_F (ToyItemsSerializationTest, modifiedShapeGroupItemInModel) | |
| Checking ShapeGroupItem in a model. More... | |
Implements class CLASS?
Definition in file toyitemsserialization.test.cpp.
| TEST_F | ( | ToyItemsSerializationTest | , |
| allItemsInAModel | |||
| ) |
Insert all supported items in a model and check that after serialization.
Definition at line 80 of file toyitemsserialization.test.cpp.
References ModelView::SessionItem::childrenCount(), ModelView::Utils::CreateCopy(), ModelView::SessionModel::insertItem(), and ModelView::SessionModel::rootItem().
| TEST_F | ( | ToyItemsSerializationTest | , |
| defaultShapeGroupItemInModel | |||
| ) |
Checking ShapeGroupItem in a model.
Serialization/deserelization should give an item identical to original.
Definition at line 37 of file toyitemsserialization.test.cpp.
References ModelView::Utils::CreateCopy(), and ModelView::SessionModel::insertItem().
| TEST_F | ( | ToyItemsSerializationTest | , |
| modifiedShapeGroupItemInModel | |||
| ) |
Checking ShapeGroupItem in a model.
Serialization/deserelization should give an item identical to original.
Definition at line 55 of file toyitemsserialization.test.cpp.
References ToyItems::Constants::AnysoPyramidItemType, ModelView::Utils::CreateCopy(), ModelView::SessionModel::insertItem(), CylinderItem::P_RADIUS, and ModelView::GroupItem::setCurrentType().