BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Tests for ViewModelBase class. More...
Classes | |
class | TestItem |
Public Types | |
using | children_t = std::vector< std::unique_ptr< ViewItem > > |
using | expected_t = std::vector< ViewItem * > |
Public Member Functions | |
~ViewModelBaseTest () | |
std::pair< children_t, expected_t > | test_data (int ncolumns) |
Helper function to get two vectors, each ncolumns length, in the form of a pair. More... | |
Tests for ViewModelBase class.
Definition at line 27 of file viewmodelbase.test.cpp.
using ViewModelBaseTest::children_t = std::vector<std::unique_ptr<ViewItem> > |
Definition at line 37 of file viewmodelbase.test.cpp.
using ViewModelBaseTest::expected_t = std::vector<ViewItem*> |
Definition at line 38 of file viewmodelbase.test.cpp.
|
default |
|
inline |
Helper function to get two vectors, each ncolumns length, in the form of a pair.
First vector contains unique_ptr objects, second vector bare pointers to same objects. First vector is intended to be moved inside a model, second vector is to validate the content of a model after the move.
Definition at line 45 of file viewmodelbase.test.cpp.
References TestUtils::create_pointers().