Specs
Beautiful C++ Test Framework
|
#include <API.h>
Public Types | |
using | ForEachGroupFn = IFunctionPointer< void(ISpecGroup *)> |
using | ForEachSpecFn = IFunctionPointer< void(ISpec *)> |
using | ForEachSetupFn = IFunctionPointer< void(ISpecSetup *)> |
using | ForEachTeardownFn = IFunctionPointer< void(ISpecTeardown *)> |
Public Member Functions | |
virtual | ~ISpecGroup ()=default |
virtual void | add_group (ISpecGroup *)=0 |
virtual void | add_test (ISpec *)=0 |
virtual void | add_setup (ISpecSetup *)=0 |
virtual void | add_teardown (ISpecTeardown *)=0 |
virtual void | add_one_time_setup (ISpecSetup *)=0 |
virtual void | add_one_time_teardown (ISpecTeardown *)=0 |
virtual void | foreach_group (ForEachGroupFn *) const =0 |
virtual void | foreach_test (ForEachSpecFn *) const =0 |
virtual void | foreach_setup (ForEachSetupFn *) const =0 |
virtual void | foreach_teardown (ForEachTeardownFn *) const =0 |
virtual void | foreach_one_time_setup (ForEachSetupFn *) const =0 |
virtual void | foreach_one_time_teardown (ForEachTeardownFn *) const =0 |
virtual void | merge (ISpecGroup *)=0 |
void | foreach_group (std::function< void(ISpecGroup *)> fn) const |
void | foreach_test (std::function< void(ISpec *)> fn) const |
void | foreach_setup (std::function< void(ISpecSetup *)> fn) const |
void | foreach_teardown (std::function< void(ISpecTeardown *)> fn) const |
void | foreach_one_time_setup (std::function< void(ISpecSetup *)> fn) const |
void | foreach_one_time_teardown (std::function< void(ISpecTeardown *)> fn) const |
Public Member Functions inherited from SpecsCpp::ISpecComponent | |
virtual | ~ISpecComponent ()=default |
virtual ISpecGroup * | group () const =0 |
virtual void | set_group (ISpecGroup *group)=0 |
virtual ISpecDataValueCollection * | data () const =0 |
virtual ISpecTagCollection * | tags () const =0 |
virtual SpecComponentType | type () const =0 |
virtual bool | skip () const =0 |
virtual void | mark_skipped (bool skip=true)=0 |
Public Member Functions inherited from SpecsCpp::ISpecDocumented | |
virtual | ~ISpecDocumented ()=default |
virtual const char * | description () const =0 |
virtual const char * | full_description () const =0 |
Public Member Functions inherited from SpecsCpp::ISpecHasVariables | |
virtual | ~ISpecHasVariables ()=default |
virtual ISpecVariableCollection * | variables () const =0 |
ISpecVariableCollection * | vars () const |
bool | has_var (const char *name) const |
IVoidPointer * | var (const char *name) const |
template<typename T > | |
T | var (const char *name) const |
template<typename T > | |
T * | var (const char *name, T *value, bool destructable=true) |
template<typename T > | |
void | var (const char *name, T &&value, bool destructable=true) |
template<typename T > | |
T * | managed_var (const char *name, T *value) |
template<typename T > | |
void | managed_var (const char *name, T &&value) |
template<typename T > | |
T * | unmanaged_var (const char *name, T *value) |
template<typename T > | |
void | unmanaged_var (const char *name, T &&value) |
const char * | var_text (const char *name) |
const char * | var_text (const char *name, const char *value) |
using SpecsCpp::ISpecGroup::ForEachGroupFn = IFunctionPointer<void(ISpecGroup*)> |
using SpecsCpp::ISpecGroup::ForEachSetupFn = IFunctionPointer<void(ISpecSetup*)> |
using SpecsCpp::ISpecGroup::ForEachSpecFn = IFunctionPointer<void(ISpec*)> |
using SpecsCpp::ISpecGroup::ForEachTeardownFn = IFunctionPointer<void(ISpecTeardown*)> |
|
virtualdefault |
|
pure virtual |
Implemented in SpecsCpp::SpecGroup.
Referenced by SpecsCpp::GlobalSpecGroup::declare_file_group(), and SpecsCpp::GlobalSpecGroup::declare_top_level_group().
|
pure virtual |
Implemented in SpecsCpp::SpecGroup.
|
pure virtual |
Implemented in SpecsCpp::SpecGroup.
|
pure virtual |
Implemented in SpecsCpp::SpecGroup.
|
pure virtual |
Implemented in SpecsCpp::SpecGroup.
|
pure virtual |
Implemented in SpecsCpp::SpecGroup.
|
pure virtual |
Implemented in SpecsCpp::SpecGroup.
Referenced by foreach_group(), and SpecsCpp::SpecGroup::merge().
|
inline |
Definition at line 336 of file API.h.
|
pure virtual |
Implemented in SpecsCpp::SpecGroup.
Referenced by foreach_one_time_setup(), and SpecsCpp::SpecGroup::merge().
|
inline |
Definition at line 352 of file API.h.
|
pure virtual |
Implemented in SpecsCpp::SpecGroup.
Referenced by foreach_one_time_teardown(), and SpecsCpp::SpecGroup::merge().
|
inline |
Definition at line 356 of file API.h.
|
pure virtual |
Implemented in SpecsCpp::SpecGroup.
Referenced by foreach_setup(), and SpecsCpp::SpecGroup::merge().
|
inline |
Definition at line 344 of file API.h.
|
pure virtual |
Implemented in SpecsCpp::SpecGroup.
Referenced by foreach_teardown(), and SpecsCpp::SpecGroup::merge().
|
inline |
Definition at line 348 of file API.h.
|
pure virtual |
Implemented in SpecsCpp::SpecGroup.
Referenced by foreach_test(), and SpecsCpp::SpecGroup::merge().
|
inline |
Definition at line 340 of file API.h.
|
pure virtual |
Implemented in SpecsCpp::SpecGroup.
Referenced by SpecsCpp::Entrypoint::main().