BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Tests for ViewItem 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 | |
~ViewItemTest () | |
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 ViewItem class.
Definition at line 24 of file viewitem.test.cpp.
using ViewItemTest::children_t = std::vector<std::unique_ptr<ViewItem> > |
Definition at line 33 of file viewitem.test.cpp.
using ViewItemTest::expected_t = std::vector<ViewItem*> |
Definition at line 34 of file viewitem.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 41 of file viewitem.test.cpp.
References TestUtils::create_pointers().