OTest2
A C++ testing framework
|
Generic repeater for a list of values. More...
#include <repeatervalues.h>
Public Member Functions | |
RepeaterValue (const RepeaterValue &)=delete | |
RepeaterValue & | operator= (const RepeaterValue &)=delete |
RepeaterValue (std::vector< Value_ > &&values_) | |
Ctor - initial values. More... | |
RepeaterValue (std::initializer_list< Value_ > values_) | |
Ctor. More... | |
template<typename Container_ > | |
RepeaterValue (Container_ &&values_) | |
Ctor - initial values. More... | |
template<typename Iter_ > | |
RepeaterValue (Iter_ begin_, Iter_ end_) | |
Ctor - initial values. More... | |
virtual | ~RepeaterValue () |
Dtor. More... | |
Value_ | getValue () const |
Get current value. More... | |
int | getIndex () const |
Get current value index. More... | |
virtual bool | hasNextRun (const Context &context_) const noexcept |
Check whether there is a next run prepared. More... | |
template<typename Value_ > | |
std::shared_ptr< RepeaterValue< Value_ > > | createNext (const Context &context_, std::shared_ptr< RepeaterValue< Value_ >> ¤t_, std::vector< Value_ > &&values_) |
![]() | |
Repeater (const Repeater &)=delete | |
Repeater & | operator= (const Repeater &)=delete |
Repeater () | |
Ctor. More... | |
virtual | ~Repeater () |
Dtor. More... | |
Static Public Member Functions | |
static std::shared_ptr< RepeaterValue > | createNext (const Context &context_, std::shared_ptr< RepeaterValue > ¤t_, std::vector< Value_ > &&values_) |
Factory function of particular runs. More... | |
template<typename Container_ > | |
static std::shared_ptr< RepeaterValue > | createNext (const Context &context_, std::shared_ptr< RepeaterValue > ¤t_, Container_ &&values_) |
Factory function of particular runs. More... | |
template<typename Iter_ > | |
static std::shared_ptr< RepeaterValue > | createNext (const Context &context_, std::shared_ptr< RepeaterValue > ¤t_, Iter_ begin_, Iter_ end_) |
Factory function of particular runs. More... | |
Generic repeater for a list of values.
This repeater repeats the testing object once for each specified value.
Definition at line 36 of file repeatervalues.h.
|
delete |
|
explicit |
Ctor - initial values.
Definition at line 30 of file repeatervaluesimpl.h.
|
explicit |
Ctor.
values_ | The list of values |
|
explicit |
Ctor - initial values.
OTest2::RepeaterValue< Value_ >::RepeaterValue | ( | Iter_ | begin_, |
Iter_ | end_ | ||
) |
Ctor - initial values.
|
virtual |
Dtor.
Definition at line 38 of file repeatervaluesimpl.h.
|
inlinestatic |
Factory function of particular runs.
context_ | The OTest2 context |
current_ | Current repeater instance |
values_ | Initial values. Any container which can be converted to the std::vector instance. |
Definition at line 119 of file repeatervalues.h.
|
inlinestatic |
Factory function of particular runs.
context_ | The OTest2 context |
current_ | Current repeater instance |
begin_ | Begin of the range of initial values |
end_ | End of the range |
Definition at line 139 of file repeatervalues.h.
|
static |
Factory function of particular runs.
context_ | The OTest2 context |
current_ | Current repeater instance |
values_ | Initial values |
std::shared_ptr<RepeaterValue<Value_> > OTest2::RepeaterValue< Value_ >::createNext | ( | const Context & | context_, |
std::shared_ptr< RepeaterValue< Value_ >> & | current_, | ||
std::vector< Value_ > && | values_ | ||
) |
Definition at line 60 of file repeatervaluesimpl.h.
int OTest2::RepeaterValue< Value_ >::getIndex |
Get current value index.
Definition at line 49 of file repeatervaluesimpl.h.
Value_ OTest2::RepeaterValue< Value_ >::getValue |
Get current value.
Definition at line 43 of file repeatervaluesimpl.h.
|
virtualnoexcept |
Check whether there is a next run prepared.
context_ | OTest2 context |
Implements OTest2::Repeater.
Definition at line 54 of file repeatervaluesimpl.h.
|
delete |