|
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 | JsonVariantConverterTest |
| Test convertion of QVariant from/to QJsonObject. More... | |
Functions | |
| TEST_F (JsonVariantConverterTest, boolVariant) | |
| Bool QVariant conversion. More... | |
| TEST_F (JsonVariantConverterTest, colorVariant) | |
| QVariant(QColor) conversion. More... | |
| TEST_F (JsonVariantConverterTest, comboPropertyVariant) | |
| QVariant(ComboProperty) conversion. More... | |
| TEST_F (JsonVariantConverterTest, doubleVariant) | |
| QVariant(double) conversion. More... | |
| TEST_F (JsonVariantConverterTest, doubleVariantWhichLooksAsInt) | |
| QVariant(double) conversion. Special value 43.0 which Qt likes to cast to int based variant. More... | |
| TEST_F (JsonVariantConverterTest, extPropVariant) | |
| QVariant(ExternalProperty) conversion. More... | |
| TEST_F (JsonVariantConverterTest, intVariant) | |
| Int QVariant conversion. More... | |
| TEST_F (JsonVariantConverterTest, invalidVariant) | |
| Invalid QVariant conversion. More... | |
| TEST_F (JsonVariantConverterTest, realLimitsVariant) | |
| QVariant(RealLimits) convertion. More... | |
| TEST_F (JsonVariantConverterTest, stringVariant) | |
| QVariant(std::string) conversion. More... | |
| TEST_F (JsonVariantConverterTest, toFileAndBack) | |
| Writing variants to file and reading them back. More... | |
| TEST_F (JsonVariantConverterTest, vectorOfDoubleVariant) | |
| QVariant(std::vector<double>) conversion. More... | |
Implements class CLASS?
Definition in file jsonvariantconverter.test.cpp.
| TEST_F | ( | JsonVariantConverterTest | , |
| boolVariant | |||
| ) |
Bool QVariant conversion.
Definition at line 69 of file jsonvariantconverter.test.cpp.
References ModelView::Constants::bool_type_name, ModelView::JsonVariantConverter::get_json(), ModelView::JsonVariantConverter::get_variant(), ModelView::Utils::IsBoolVariant(), and ModelView::JsonVariantConverter::isVariant().
| TEST_F | ( | JsonVariantConverterTest | , |
| colorVariant | |||
| ) |
QVariant(QColor) conversion.
Definition at line 231 of file jsonvariantconverter.test.cpp.
References ModelView::JsonVariantConverter::get_json(), ModelView::JsonVariantConverter::get_variant(), ModelView::Utils::IsColorVariant(), and ModelView::JsonVariantConverter::isVariant().
| TEST_F | ( | JsonVariantConverterTest | , |
| comboPropertyVariant | |||
| ) |
QVariant(ComboProperty) conversion.
Definition at line 207 of file jsonvariantconverter.test.cpp.
References ModelView::ComboProperty::createFrom(), ModelView::JsonVariantConverter::get_json(), ModelView::JsonVariantConverter::get_variant(), ModelView::Utils::IsComboVariant(), ModelView::JsonVariantConverter::isVariant(), and ModelView::ComboProperty::setSelected().
| TEST_F | ( | JsonVariantConverterTest | , |
| doubleVariant | |||
| ) |
QVariant(double) conversion.
Definition at line 136 of file jsonvariantconverter.test.cpp.
References ModelView::Constants::double_type_name, ModelView::JsonVariantConverter::get_json(), ModelView::JsonVariantConverter::get_variant(), ModelView::Utils::IsDoubleVariant(), and ModelView::JsonVariantConverter::isVariant().
| TEST_F | ( | JsonVariantConverterTest | , |
| doubleVariantWhichLooksAsInt | |||
| ) |
QVariant(double) conversion. Special value 43.0 which Qt likes to cast to int based variant.
Definition at line 165 of file jsonvariantconverter.test.cpp.
References ModelView::Constants::double_type_name, ModelView::JsonVariantConverter::get_json(), ModelView::JsonVariantConverter::get_variant(), ModelView::Utils::IsDoubleVariant(), and ModelView::JsonVariantConverter::isVariant().
| TEST_F | ( | JsonVariantConverterTest | , |
| extPropVariant | |||
| ) |
QVariant(ExternalProperty) conversion.
Definition at line 251 of file jsonvariantconverter.test.cpp.
References ModelView::JsonVariantConverter::get_json(), ModelView::JsonVariantConverter::get_variant(), ModelView::Utils::IsExtPropertyVariant(), and ModelView::JsonVariantConverter::isVariant().
| TEST_F | ( | JsonVariantConverterTest | , |
| intVariant | |||
| ) |
Int QVariant conversion.
Definition at line 93 of file jsonvariantconverter.test.cpp.
References ModelView::JsonVariantConverter::get_json(), ModelView::JsonVariantConverter::get_variant(), ModelView::Constants::int_type_name, ModelView::Utils::IsIntVariant(), and ModelView::JsonVariantConverter::isVariant().
| TEST_F | ( | JsonVariantConverterTest | , |
| invalidVariant | |||
| ) |
Invalid QVariant conversion.
Definition at line 51 of file jsonvariantconverter.test.cpp.
References ModelView::JsonVariantConverter::get_json(), ModelView::JsonVariantConverter::get_variant(), and ModelView::JsonVariantConverter::isVariant().
| TEST_F | ( | JsonVariantConverterTest | , |
| realLimitsVariant | |||
| ) |
QVariant(RealLimits) convertion.
Definition at line 271 of file jsonvariantconverter.test.cpp.
References ModelView::JsonVariantConverter::get_json(), ModelView::JsonVariantConverter::get_variant(), ModelView::Utils::IsRealLimitsVariant(), ModelView::JsonVariantConverter::isVariant(), ModelView::RealLimits::limited(), ModelView::RealLimits::nonnegative(), and ModelView::RealLimits::positive().
| TEST_F | ( | JsonVariantConverterTest | , |
| stringVariant | |||
| ) |
QVariant(std::string) conversion.
Definition at line 114 of file jsonvariantconverter.test.cpp.
References ModelView::JsonVariantConverter::get_json(), ModelView::JsonVariantConverter::get_variant(), ModelView::Utils::IsStdStringVariant(), ModelView::JsonVariantConverter::isVariant(), and ModelView::Constants::string_type_name.
| TEST_F | ( | JsonVariantConverterTest | , |
| toFileAndBack | |||
| ) |
Writing variants to file and reading them back.
Definition at line 299 of file jsonvariantconverter.test.cpp.
References ModelView::ComboProperty::createFrom(), ModelView::JsonVariantConverter::get_json(), ModelView::JsonVariantConverter::get_variant(), ModelView::RealLimits::limited(), TestUtils::LoadJson(), ModelView::RealLimits::positive(), TestUtils::SaveJson(), ModelView::ComboProperty::setSelected(), and TestUtils::TestFileName().
| TEST_F | ( | JsonVariantConverterTest | , |
| vectorOfDoubleVariant | |||
| ) |
QVariant(std::vector<double>) conversion.
Definition at line 187 of file jsonvariantconverter.test.cpp.
References ModelView::JsonVariantConverter::get_json(), ModelView::JsonVariantConverter::get_variant(), ModelView::Utils::IsDoubleVectorVariant(), and ModelView::JsonVariantConverter::isVariant().