|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
| NCppSpec | |
| NFormatters | |
| NJUnitNodes | |
| CResult | |
| CTestCase | |
| CTestSuite | |
| CTestSuites | |
| CBaseFormatter | |
| CJUnitXML | |
| CProgress | |
| CTAP | |
| CVerbose | |
| NMatchers | |
| CBeNullptr | |
| CContainBase | |
| CContain | |
| CContain< A, U, U > | |
| CEqual | The equal matcher |
| CFail | |
| CFailWith | |
| CHaveError | |
| CHaveErrorEqualTo | |
| CHaveValue | |
| CHaveValueEqualTo | |
| CThrow | |
| CMatcherBase | Base class for all Matcher classes and objects |
| CBeBetween | |
| CBeGreaterThan | |
| CBeLessThan | |
| CBeWithin | |
| CBeWithinHelper | |
| CSatisfy | |
| CEndWith | |
| CMatch | |
| CMatchPartial | |
| CStartWith | |
| NUtil | |
| Cverbose_assert | Helper class for static assertions that has a built-in error string |
| CClassDescription | A Description with a defined subject |
| CDescription | |
| CExpectation | Wraps the target of an expectation |
| CExpectationValue | |
| CExpectationFunc | |
| CPositiveExpectationHandler | Handles "positive" expectations (i.e. non-negated) |
| CNegativeExpectationHandler | Handles "negative" expectations (i.e. negated with '.not_() |
| CItD | An it embedded in a Description |
| CItCD | An it embedded in a ClassDescription |
| CItBase | Base class for it expressions |
| CLetBase | Base class for lets to abstract away the template arguments |
| CPretty | A helper base class that assists in pretty-printing various objects |
| CResult | |
| CRunnable | Base class for all objects in the execution tree |
| CRunner | A collection of Descriptions that are run in sequence |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
#include "matchers/matcher_base.hpp"

Go to the source code of this file.
++Classes | |
| class | CppSpec::Matchers::BeBetween< A, E > |
+Enumerations | |
| enum class | RangeMode { exclusive +, inclusive + } |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


Go to the source code of this file.
++Classes | |
| class | CppSpec::Matchers::BeGreaterThan< A, E > |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


Go to the source code of this file.
++Classes | |
| class | CppSpec::Matchers::BeLessThan< A, E > |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


Go to the source code of this file.
++Classes | |
| class | CppSpec::Matchers::BeNullptr< A > |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::ClassDescription< T >, including all inherited members.
+| after_all(VoidBlock block) (defined in CppSpec::Description) | CppSpec::Description | inline |
| after_alls (defined in CppSpec::Description) | CppSpec::Description | |
| after_each(VoidBlock block) (defined in CppSpec::Description) | CppSpec::Description | inline |
| after_eaches (defined in CppSpec::Description) | CppSpec::Description | |
| as_main() (defined in CppSpec::Description) | CppSpec::Description | inline |
| before_all(VoidBlock block) (defined in CppSpec::Description) | CppSpec::Description | inline |
| before_each(VoidBlock block) (defined in CppSpec::Description) | CppSpec::Description | inline |
| before_eaches (defined in CppSpec::Description) | CppSpec::Description | |
| ClassDescription(Block block, std::source_location location=std::source_location::current()) (defined in CppSpec::ClassDescription< T >) | CppSpec::ClassDescription< T > | inline |
| ClassDescription(const char *description, Block block, std::source_location location=std::source_location::current()) (defined in CppSpec::ClassDescription< T >) | CppSpec::ClassDescription< T > | inline |
| ClassDescription(const char *description, T &subject, Block block, std::source_location location=std::source_location::current()) (defined in CppSpec::ClassDescription< T >) | CppSpec::ClassDescription< T > | inline |
| ClassDescription(U &subject, Block block, std::source_location location=std::source_location::current()) (defined in CppSpec::ClassDescription< T >) | CppSpec::ClassDescription< T > | inline |
| ClassDescription(const char *description, T &&subject, Block block, std::source_location location=std::source_location::current()) (defined in CppSpec::ClassDescription< T >) | CppSpec::ClassDescription< T > | inline |
| ClassDescription(U &&subject, Block block, std::source_location location=std::source_location::current()) (defined in CppSpec::ClassDescription< T >) | CppSpec::ClassDescription< T > | inline |
| ClassDescription(std::initializer_list< U > init_list, Block block, std::source_location location=std::source_location::current()) (defined in CppSpec::ClassDescription< T >) | CppSpec::ClassDescription< T > | inline |
| ClassDescription(const char *description, std::initializer_list< U > init_list, Block block, std::source_location location=std::source_location::current()) (defined in CppSpec::ClassDescription< T >) | CppSpec::ClassDescription< T > | inline |
| context(const char *description, B block, std::source_location location=std::source_location::current()) (defined in CppSpec::ClassDescription< T >) | CppSpec::ClassDescription< T > | |
| context(const char *description, U &subject, B block, std::source_location location=std::source_location::current()) (defined in CppSpec::ClassDescription< T >) | CppSpec::ClassDescription< T > | |
| context(U &subject, B block, std::source_location location=std::source_location::current()) (defined in CppSpec::ClassDescription< T >) | CppSpec::ClassDescription< T > | inline |
| context(const char *description, U &&subject, B block, std::source_location location=std::source_location::current()) (defined in CppSpec::ClassDescription< T >) | CppSpec::ClassDescription< T > | |
| context(U &&subject, B block, std::source_location location=std::source_location::current()) (defined in CppSpec::ClassDescription< T >) | CppSpec::ClassDescription< T > | inline |
| context(const char *description, U &subject, B block, std::source_location location) (defined in CppSpec::ClassDescription< T >) | CppSpec::ClassDescription< T > | |
| context(const char *description, U &&subject, B block, std::source_location location) (defined in CppSpec::ClassDescription< T >) | CppSpec::ClassDescription< T > | |
| context(const char *description, B block, std::source_location location) (defined in CppSpec::ClassDescription< T >) | CppSpec::ClassDescription< T > | |
| context(const char *description, Block body, std::source_location location=std::source_location::current()) (defined in CppSpec::Description) | CppSpec::Description | |
| context(T &subject, B block, std::source_location location=std::source_location::current()) (defined in CppSpec::Description) | CppSpec::Description | |
| context(const char *description, T &subject, B block, std::source_location location=std::source_location::current()) (defined in CppSpec::Description) | CppSpec::Description | |
| context(T &&subject, B block, std::source_location location=std::source_location::current()) (defined in CppSpec::Description) | CppSpec::Description | |
| context(const char *description, T &&subject, B block, std::source_location location=std::source_location::current()) (defined in CppSpec::Description) | CppSpec::Description | |
| context(std::initializer_list< U > init_list, std::function< void(ClassDescription< T > &)> block, std::source_location location=std::source_location::current()) (defined in CppSpec::Description) | CppSpec::Description | |
| Description(const char *description, Block block, std::source_location location=std::source_location::current()) noexcept (defined in CppSpec::Description) | CppSpec::Description | inline |
| Description(std::source_location location, std::string &&description) noexcept (defined in CppSpec::Description) | CppSpec::Description | inline |
| Description(std::source_location location, const char *description, Block block) noexcept (defined in CppSpec::Description) | CppSpec::Description | inline |
| description (defined in CppSpec::Description) | CppSpec::Description | protected |
| exec_after_eaches() (defined in CppSpec::Description) | CppSpec::Description | inlineprotected |
| exec_before_eaches() (defined in CppSpec::Description) | CppSpec::Description | inlineprotected |
| get_children() noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_children() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_description() const noexcept (defined in CppSpec::Description) | CppSpec::Description | inlinevirtual |
| get_location() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_parent() noexcept | CppSpec::Runnable | inline |
| get_parent() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_parent_as() noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_parent_as() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_result() const (defined in CppSpec::Runnable) | CppSpec::Runnable | inlinevirtual |
| get_runtime() const (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_start_time() const (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_subject_type() const noexcept override (defined in CppSpec::ClassDescription< T >) | CppSpec::ClassDescription< T > | inlinevirtual |
| has_parent() noexcept | CppSpec::Runnable | inline |
| has_parent() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| it(const char *name, std::function< void(ItCD< T > &)> block, std::source_location location=std::source_location::current()) | CppSpec::ClassDescription< T > | |
| it(std::function< void(ItCD< T > &)> block, std::source_location location=std::source_location::current()) | CppSpec::ClassDescription< T > | |
| it(const char *name, ItD::Block body, std::source_location location=std::source_location::current()) (defined in CppSpec::Description) | CppSpec::Description | inline |
| it(ItD::Block body, std::source_location location=std::source_location::current()) (defined in CppSpec::Description) | CppSpec::Description | inline |
| let(F factory) (defined in CppSpec::Description) | CppSpec::Description | |
| lets (defined in CppSpec::Description) | CppSpec::Description | |
| make_child(Args &&... args) (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| num_failures() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| num_tests() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| padding() const noexcept | CppSpec::Runnable | inline |
| reset_lets() noexcept (defined in CppSpec::Description) | CppSpec::Description | inline |
| run() override (defined in CppSpec::ClassDescription< T >) | CppSpec::ClassDescription< T > | virtual |
| Runnable(std::source_location location) (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| set_location(std::source_location location) noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| subject (defined in CppSpec::ClassDescription< T >) | CppSpec::ClassDescription< T > | |
| timed_run() (defined in CppSpec::Runnable) | CppSpec::Runnable | inlinevirtual |
| ~Runnable()=default (defined in CppSpec::Runnable) | CppSpec::Runnable | virtual |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
A Description with a defined subject. + More...
+ +#include <class_description.hpp>


+Public Member Functions | |
| + | ClassDescription (Block block, std::source_location location=std::source_location::current()) |
| + | ClassDescription (const char *description, Block block, std::source_location location=std::source_location::current()) |
| + | ClassDescription (const char *description, T &subject, Block block, std::source_location location=std::source_location::current()) |
| +template<Util::not_c_string U> | |
| ClassDescription (U &subject, Block block, std::source_location location=std::source_location::current()) | |
| + | ClassDescription (const char *description, T &&subject, Block block, std::source_location location=std::source_location::current()) |
| +template<Util::not_c_string U> | |
| ClassDescription (U &&subject, Block block, std::source_location location=std::source_location::current()) | |
| +template<typename U> | |
| ClassDescription (std::initializer_list< U > init_list, Block block, std::source_location location=std::source_location::current()) | |
| +template<typename U> | |
| ClassDescription (const char *description, std::initializer_list< U > init_list, Block block, std::source_location location=std::source_location::current()) | |
| ItCD< T > & | it (const char *name, std::function< void(ItCD< T > &)> block, std::source_location location=std::source_location::current()) |
| ItCD< T > & | it (std::function< void(ItCD< T > &)> block, std::source_location location=std::source_location::current()) |
| +template<class U = std::nullptr_t, class B> | |
| ClassDescription< T > & | context (const char *description, B block, std::source_location location=std::source_location::current()) |
| +template<class U, class B> | |
| ClassDescription< U > & | context (const char *description, U &subject, B block, std::source_location location=std::source_location::current()) |
| +template<class U, class B> | |
| ClassDescription< U > & | context (U &subject, B block, std::source_location location=std::source_location::current()) |
| +template<class U, class B> | |
| ClassDescription< U > & | context (const char *description, U &&subject, B block, std::source_location location=std::source_location::current()) |
| +template<class U, class B> | |
| ClassDescription< U > & | context (U &&subject, B block, std::source_location location=std::source_location::current()) |
| void | run () override |
| std::string | get_subject_type () const noexcept override |
| +template<class U, class B> | |
| ClassContext< U > & | context (const char *description, U &subject, B block, std::source_location location) |
| +template<class U, class B> | |
| ClassContext< U > & | context (const char *description, U &&subject, B block, std::source_location location) |
| +template<class U, class B> | |
| ClassContext< T > & | context (const char *description, B block, std::source_location location) |
| Public Member Functions inherited from CppSpec::Description | |
| + | Description (const char *description, Block block, std::source_location location=std::source_location::current()) noexcept |
| + | Description (std::source_location location, std::string &&description) noexcept |
| + | Description (std::source_location location, const char *description, Block block) noexcept |
| +ItD & | it (const char *name, ItD::Block body, std::source_location location=std::source_location::current()) |
| +ItD & | it (ItD::Block body, std::source_location location=std::source_location::current()) |
| +template<class T = std::nullptr_t> | |
| Description & | context (const char *description, Block body, std::source_location location=std::source_location::current()) |
| +template<Util::not_c_string T, class B> | |
| ClassDescription< T > & | context (T &subject, B block, std::source_location location=std::source_location::current()) |
| +template<class T, class B> | |
| ClassDescription< T > & | context (const char *description, T &subject, B block, std::source_location location=std::source_location::current()) |
| +template<Util::not_c_string T, class B> | |
| ClassDescription< T > & | context (T &&subject, B block, std::source_location location=std::source_location::current()) |
| +template<class T, class B> | |
| ClassDescription< T > & | context (const char *description, T &&subject, B block, std::source_location location=std::source_location::current()) |
| +template<class T, typename U> | |
| ClassDescription< T > & | context (std::initializer_list< U > init_list, std::function< void(ClassDescription< T > &)> block, std::source_location location=std::source_location::current()) |
| +void | before_each (VoidBlock block) |
| +void | before_all (VoidBlock block) |
| +void | after_each (VoidBlock block) |
| +void | after_all (VoidBlock block) |
| +template<typename F> | |
| auto & | let (F factory) |
| +void | reset_lets () noexcept |
| +virtual std::string | get_description () const noexcept |
| void | run () override |
| +template<typename Formatter> | |
| auto | as_main () |
| +template<Util::not_c_string T, class B> | |
| ClassContext< T > & | context (T &subject, B block, std::source_location location) |
| +template<class T, class B> | |
| ClassContext< T > & | context (const char *description, T &subject, B block, std::source_location location) |
| +template<Util::not_c_string T, class B> | |
| ClassContext< T > & | context (T &&subject, B block, std::source_location location) |
| +template<class T, class B> | |
| ClassContext< T > & | context (const char *description, T &&subject, B block, std::source_location location) |
| +template<class T, typename U> | |
| ClassContext< T > & | context (std::initializer_list< U > init_list, std::function< void(ClassDescription< T > &)> block, std::source_location location) |
| +template<class T> | |
| Context & | context (const char *description, Block body, std::source_location location) |
| Public Member Functions inherited from CppSpec::Runnable | |
| + | Runnable (std::source_location location) |
| +bool | has_parent () noexcept |
| Check to see if the Runnable has a parent. | |
| +bool | has_parent () const noexcept |
| +Runnable * | get_parent () noexcept |
| Get the Runnable's parent. | |
| +const Runnable * | get_parent () const noexcept |
| +std::list< std::shared_ptr< Runnable > > & | get_children () noexcept |
| +const std::list< std::shared_ptr< Runnable > > & | get_children () const noexcept |
| +template<class C> | |
| C * | get_parent_as () noexcept |
| +template<class C> | |
| const C * | get_parent_as () const noexcept |
| +template<typename T, typename... Args> | |
| T * | make_child (Args &&... args) |
| std::string | padding () const noexcept |
| Generate padding (indentation) fore the current object. | |
| +std::source_location | get_location () const noexcept |
| +void | set_location (std::source_location location) noexcept |
| +virtual void | timed_run () |
| +std::chrono::duration< double > | get_runtime () const |
| +std::chrono::time_point< std::chrono::system_clock > | get_start_time () const |
| +virtual Result | get_result () const |
| +size_t | num_tests () const noexcept |
| +size_t | num_failures () const noexcept |
+Public Attributes | |
| +T | subject |
| Public Attributes inherited from CppSpec::Description | |
| +std::forward_list< LetBase * > | lets |
| +std::deque< VoidBlock > | after_alls |
| +std::deque< VoidBlock > | before_eaches |
| +std::deque< VoidBlock > | after_eaches |
+Additional Inherited Members | |
| Public Types inherited from CppSpec::Description | |
| +using | Block = std::function<void(Description&)> |
| Protected Member Functions inherited from CppSpec::Description | |
| +void | exec_before_eaches () |
| +void | exec_after_eaches () |
| Protected Attributes inherited from CppSpec::Description | |
| +std::string | description |
A Description with a defined subject.
+A ClassDescription is a subclass of Description that allows for templating and specification of the subject of the tests prior to any it objects.
+It is also aliased to the context keyword through Description whenever it is templated, allowing the implicit subject in any child it blocks
+
+
|
+ +inlinenodiscardoverridevirtualnoexcept | +
Reimplemented from CppSpec::Description.
+ +| ItCD< T > & CppSpec::ClassDescription< T >::it | +( | +const char * | name, | +
| + | + | std::function< void(ItCD< T > &)> | block, | +
| + | + | std::source_location | location = std::source_location::current() ) | +
Jasmine-style it declaration, with an explicit docstring provided for verbose printing.
+As this is an ItCD, it passes along associated type information about the implicit subject from the containing ClassDescription / ClassContext.
+| name | the name of the test |
| block | the contents of test |
| ItCD< T > & CppSpec::ClassDescription< T >::it | +( | +std::function< void(ItCD< T > &)> | block, | +
| + | + | std::source_location | location = std::source_location::current() ) | +
Rspec-style it declaration, with an implicit docstring generated by the contained expects. Particularly handy if testing multiple facets of a single behavior and there is a desire to be verbose, as each expectation prints its own docstring.
+As this is an ItCD, it passes along associated type information about the implicit subject from the containing ClassDescription / ClassContext.
+| block | the contents of the test |
+
|
+ +overridevirtual | +
Implements CppSpec::Runnable.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Description, including all inherited members.
+| after_all(VoidBlock block) (defined in CppSpec::Description) | CppSpec::Description | inline |
| after_alls (defined in CppSpec::Description) | CppSpec::Description | |
| after_each(VoidBlock block) (defined in CppSpec::Description) | CppSpec::Description | inline |
| after_eaches (defined in CppSpec::Description) | CppSpec::Description | |
| as_main() (defined in CppSpec::Description) | CppSpec::Description | inline |
| before_all(VoidBlock block) (defined in CppSpec::Description) | CppSpec::Description | inline |
| before_each(VoidBlock block) (defined in CppSpec::Description) | CppSpec::Description | inline |
| before_eaches (defined in CppSpec::Description) | CppSpec::Description | |
| Block typedef (defined in CppSpec::Description) | CppSpec::Description | |
| context(const char *description, Block body, std::source_location location=std::source_location::current()) (defined in CppSpec::Description) | CppSpec::Description | |
| context(T &subject, B block, std::source_location location=std::source_location::current()) (defined in CppSpec::Description) | CppSpec::Description | |
| context(const char *description, T &subject, B block, std::source_location location=std::source_location::current()) (defined in CppSpec::Description) | CppSpec::Description | |
| context(T &&subject, B block, std::source_location location=std::source_location::current()) (defined in CppSpec::Description) | CppSpec::Description | |
| context(const char *description, T &&subject, B block, std::source_location location=std::source_location::current()) (defined in CppSpec::Description) | CppSpec::Description | |
| context(std::initializer_list< U > init_list, std::function< void(ClassDescription< T > &)> block, std::source_location location=std::source_location::current()) (defined in CppSpec::Description) | CppSpec::Description | |
| context(T &subject, B block, std::source_location location) (defined in CppSpec::Description) | CppSpec::Description | |
| context(const char *description, T &subject, B block, std::source_location location) (defined in CppSpec::Description) | CppSpec::Description | |
| context(T &&subject, B block, std::source_location location) (defined in CppSpec::Description) | CppSpec::Description | |
| context(const char *description, T &&subject, B block, std::source_location location) (defined in CppSpec::Description) | CppSpec::Description | |
| context(std::initializer_list< U > init_list, std::function< void(ClassDescription< T > &)> block, std::source_location location) (defined in CppSpec::Description) | CppSpec::Description | |
| context(const char *description, Block body, std::source_location location) (defined in CppSpec::Description) | CppSpec::Description | inline |
| Description(const char *description, Block block, std::source_location location=std::source_location::current()) noexcept (defined in CppSpec::Description) | CppSpec::Description | inline |
| Description(std::source_location location, std::string &&description) noexcept (defined in CppSpec::Description) | CppSpec::Description | inline |
| Description(std::source_location location, const char *description, Block block) noexcept (defined in CppSpec::Description) | CppSpec::Description | inline |
| description (defined in CppSpec::Description) | CppSpec::Description | protected |
| exec_after_eaches() (defined in CppSpec::Description) | CppSpec::Description | inlineprotected |
| exec_before_eaches() (defined in CppSpec::Description) | CppSpec::Description | inlineprotected |
| get_children() noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_children() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_description() const noexcept (defined in CppSpec::Description) | CppSpec::Description | inlinevirtual |
| get_location() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_parent() noexcept | CppSpec::Runnable | inline |
| get_parent() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_parent_as() noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_parent_as() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_result() const (defined in CppSpec::Runnable) | CppSpec::Runnable | inlinevirtual |
| get_runtime() const (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_start_time() const (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_subject_type() const noexcept (defined in CppSpec::Description) | CppSpec::Description | inlinevirtual |
| has_parent() noexcept | CppSpec::Runnable | inline |
| has_parent() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| it(const char *name, ItD::Block body, std::source_location location=std::source_location::current()) (defined in CppSpec::Description) | CppSpec::Description | inline |
| it(ItD::Block body, std::source_location location=std::source_location::current()) (defined in CppSpec::Description) | CppSpec::Description | inline |
| let(F factory) (defined in CppSpec::Description) | CppSpec::Description | |
| lets (defined in CppSpec::Description) | CppSpec::Description | |
| make_child(Args &&... args) (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| num_failures() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| num_tests() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| padding() const noexcept | CppSpec::Runnable | inline |
| reset_lets() noexcept (defined in CppSpec::Description) | CppSpec::Description | inline |
| run() override (defined in CppSpec::Description) | CppSpec::Description | inlinevirtual |
| Runnable(std::source_location location) (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| set_location(std::source_location location) noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| timed_run() (defined in CppSpec::Runnable) | CppSpec::Runnable | inlinevirtual |
| ~Runnable()=default (defined in CppSpec::Runnable) | CppSpec::Runnable | virtual |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


+Public Types | |
| +using | Block = std::function<void(Description&)> |
+Public Member Functions | |
| + | Description (const char *description, Block block, std::source_location location=std::source_location::current()) noexcept |
| + | Description (std::source_location location, std::string &&description) noexcept |
| + | Description (std::source_location location, const char *description, Block block) noexcept |
| +ItD & | it (const char *name, ItD::Block body, std::source_location location=std::source_location::current()) |
| +ItD & | it (ItD::Block body, std::source_location location=std::source_location::current()) |
| +template<class T = std::nullptr_t> | |
| Description & | context (const char *description, Block body, std::source_location location=std::source_location::current()) |
| +template<Util::not_c_string T, class B> | |
| ClassDescription< T > & | context (T &subject, B block, std::source_location location=std::source_location::current()) |
| +template<class T, class B> | |
| ClassDescription< T > & | context (const char *description, T &subject, B block, std::source_location location=std::source_location::current()) |
| +template<Util::not_c_string T, class B> | |
| ClassDescription< T > & | context (T &&subject, B block, std::source_location location=std::source_location::current()) |
| +template<class T, class B> | |
| ClassDescription< T > & | context (const char *description, T &&subject, B block, std::source_location location=std::source_location::current()) |
| +template<class T, typename U> | |
| ClassDescription< T > & | context (std::initializer_list< U > init_list, std::function< void(ClassDescription< T > &)> block, std::source_location location=std::source_location::current()) |
| +void | before_each (VoidBlock block) |
| +void | before_all (VoidBlock block) |
| +void | after_each (VoidBlock block) |
| +void | after_all (VoidBlock block) |
| +template<typename F> | |
| auto & | let (F factory) |
| +void | reset_lets () noexcept |
| +virtual std::string | get_description () const noexcept |
| +virtual std::string | get_subject_type () const noexcept |
| void | run () override |
| +template<typename Formatter> | |
| auto | as_main () |
| +template<Util::not_c_string T, class B> | |
| ClassContext< T > & | context (T &subject, B block, std::source_location location) |
| +template<class T, class B> | |
| ClassContext< T > & | context (const char *description, T &subject, B block, std::source_location location) |
| +template<Util::not_c_string T, class B> | |
| ClassContext< T > & | context (T &&subject, B block, std::source_location location) |
| +template<class T, class B> | |
| ClassContext< T > & | context (const char *description, T &&subject, B block, std::source_location location) |
| +template<class T, typename U> | |
| ClassContext< T > & | context (std::initializer_list< U > init_list, std::function< void(ClassDescription< T > &)> block, std::source_location location) |
| +template<class T> | |
| Context & | context (const char *description, Block body, std::source_location location) |
| Public Member Functions inherited from CppSpec::Runnable | |
| + | Runnable (std::source_location location) |
| +bool | has_parent () noexcept |
| Check to see if the Runnable has a parent. | |
| +bool | has_parent () const noexcept |
| +Runnable * | get_parent () noexcept |
| Get the Runnable's parent. | |
| +const Runnable * | get_parent () const noexcept |
| +std::list< std::shared_ptr< Runnable > > & | get_children () noexcept |
| +const std::list< std::shared_ptr< Runnable > > & | get_children () const noexcept |
| +template<class C> | |
| C * | get_parent_as () noexcept |
| +template<class C> | |
| const C * | get_parent_as () const noexcept |
| +template<typename T, typename... Args> | |
| T * | make_child (Args &&... args) |
| std::string | padding () const noexcept |
| Generate padding (indentation) fore the current object. | |
| +std::source_location | get_location () const noexcept |
| +void | set_location (std::source_location location) noexcept |
| +virtual void | timed_run () |
| +std::chrono::duration< double > | get_runtime () const |
| +std::chrono::time_point< std::chrono::system_clock > | get_start_time () const |
| +virtual Result | get_result () const |
| +size_t | num_tests () const noexcept |
| +size_t | num_failures () const noexcept |
+Public Attributes | |
| +std::forward_list< LetBase * > | lets |
| +std::deque< VoidBlock > | after_alls |
| +std::deque< VoidBlock > | before_eaches |
| +std::deque< VoidBlock > | after_eaches |
+Protected Member Functions | |
| +void | exec_before_eaches () |
| +void | exec_after_eaches () |
+Protected Attributes | |
| +std::string | description |
+
|
+ +inlineoverridevirtual | +
Implements CppSpec::Runnable.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Expectation< A >, including all inherited members.
+| Expectation()=default (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | |
| Expectation(std::source_location location) (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | inlineexplicit |
| Expectation(ItBase &it, std::source_location location) | CppSpec::Expectation< A > | inlineexplicit |
| get_it() const (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | inline |
| get_location() const (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | inline |
| get_target() &=0 | CppSpec::Expectation< A > | pure virtual |
| ignore()=0 (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | pure virtual |
| ignore_ (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | protected |
| ignored() const (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | inline |
| is_positive_ (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | protected |
| not_()=0 (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | pure virtual |
| positive() const | CppSpec::Expectation< A > | inline |
| to(M matcher, std::string msg="") | CppSpec::Expectation< A > | |
| to_be_between(E min, E max, Matchers::RangeMode mode=Matchers::RangeMode::inclusive, std::string msg="") | CppSpec::Expectation< A > | |
| to_be_false(std::string msg="") | CppSpec::Expectation< A > | |
| to_be_falsy(std::string msg="") | CppSpec::Expectation< A > | |
| to_be_greater_than(E rhs, std::string msg="") (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | |
| to_be_less_than(E rhs, std::string msg="") (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | |
| to_be_null(std::string msg="") | CppSpec::Expectation< A > | |
| to_be_true(std::string msg="") | CppSpec::Expectation< A > | |
| to_be_truthy(std::string msg="") | CppSpec::Expectation< A > | |
| to_be_within(E expected, std::string msg="") | CppSpec::Expectation< A > | |
| to_contain(std::initializer_list< U > expected, std::string msg="") | CppSpec::Expectation< A > | |
| to_contain(E expected, std::string msg="") | CppSpec::Expectation< A > | |
| to_end_with(std::string ending, std::string msg="") (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | |
| to_end_with(std::initializer_list< U > start, std::string msg="") (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | |
| to_equal(E expected, std::string msg="") | CppSpec::Expectation< A > | |
| to_fail(std::string msg="") (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | |
| to_fail_with(std::string failure_message, std::string msg="") (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | |
| to_have_value(std::string msg="") (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | |
| to_match(std::regex regex, std::string msg="") (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | |
| to_match(std::string str, std::string msg="") (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | |
| to_partially_match(std::regex regex, std::string msg="") (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | |
| to_partially_match(std::string str, std::string msg="") (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | |
| to_satisfy(F test, std::string msg="") | CppSpec::Expectation< A > | |
| to_start_with(std::string start, std::string msg="") (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | |
| to_start_with(std::initializer_list< U > start, std::string msg="") (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
Wraps the target of an expectation. + More...
+ +#include <expectation.hpp>

+Public Member Functions | |
| + | Expectation (std::source_location location) |
| Expectation (ItBase &it, std::source_location location) | |
| Create an Expectation using a value. | |
| virtual A & | get_target () &=0 |
| Get the target of the expectation. | |
| +ItBase * | get_it () const |
| +std::source_location | get_location () const |
| +constexpr bool | positive () const |
| Get whether the expectation is normal or negated. | |
| +constexpr bool | ignored () const |
| +virtual Expectation & | not_ ()=0 |
| +virtual Expectation & | ignore ()=0 |
| template<class M> | |
| void | to (M matcher, std::string msg="") |
| void | to_be_false (std::string msg="") |
| Match using the Matchers::Be matcher, testing for falsy-ness. | |
| void | to_be_falsy (std::string msg="") |
| void | to_be_null (std::string msg="") |
| Match using the Matchers::BeNullptr matcher. | |
| void | to_be_true (std::string msg="") |
| Match using the Matchers::Be matcher, testing for truthy-ness. | |
| void | to_be_truthy (std::string msg="") |
| template<typename E> | |
| void | to_be_between (E min, E max, Matchers::RangeMode mode=Matchers::RangeMode::inclusive, std::string msg="") |
| Match using the Matchers::BeBetween matcher, with an explicit range mode. | |
| +template<typename E> | |
| void | to_be_greater_than (E rhs, std::string msg="") |
| +template<typename E> | |
| void | to_be_less_than (E rhs, std::string msg="") |
| template<typename E> | |
| Matchers::BeWithinHelper< A, E > | to_be_within (E expected, std::string msg="") |
| Match using the Matchers::BeWithin matcher. | |
| +void | to_end_with (std::string ending, std::string msg="") |
| +void | to_fail (std::string msg="") |
| +void | to_fail_with (std::string failure_message, std::string msg="") |
| +void | to_match (std::regex regex, std::string msg="") |
| +void | to_match (std::string str, std::string msg="") |
| +void | to_partially_match (std::regex regex, std::string msg="") |
| +void | to_partially_match (std::string str, std::string msg="") |
| template<typename F> | |
| void | to_satisfy (F test, std::string msg="") |
| Match using the Matchers::Satisfy matcher. | |
| +void | to_start_with (std::string start, std::string msg="") |
| template<typename U> | |
| void | to_contain (std::initializer_list< U > expected, std::string msg="") |
| Match using the Matchers::Include matcher, given an initializer list. | |
| template<typename E> | |
| void | to_contain (E expected, std::string msg="") |
| Match using the Matchers::Include matcher. | |
| +template<typename U> | |
| void | to_end_with (std::initializer_list< U > start, std::string msg="") |
| template<typename E> | |
| void | to_equal (E expected, std::string msg="") |
| Match using the Matchers::Equal matcher. | |
| +template<typename U> | |
| void | to_start_with (std::initializer_list< U > start, std::string msg="") |
| +void | to_have_value (std::string msg="") |
+Protected Attributes | |
| +bool | is_positive_ = true |
| +bool | ignore_ = false |
Wraps the target of an expectation.
+Static typing forces us to either give the type of the expected result to the Matcher object, or chain in a builder-like fashion.
+
+
|
+ +inlineexplicit | +
Create an Expectation using a value.
+| value | The target to test, an explicit value. |
+
|
+ +pure virtual | +
Get the target of the expectation.
+ +Implemented in CppSpec::ExpectationFunc< F >, and CppSpec::ExpectationValue< A >.
+ +| void CppSpec::Expectation< A >::to | +( | +M | matcher, | +
| + | + | std::string | msg = "" ) | +
| matcher | |
| msg |
| A | |
| M |
| void CppSpec::Expectation< A >::to_be_between | +( | +E | min, | +
| + | + | E | max, | +
| + | + | Matchers::RangeMode | mode = Matchers::RangeMode::inclusive, | +
| + | + | std::string | msg = "" ) | +
Match using the Matchers::BeBetween matcher, with an explicit range mode.
+| min | |
| max | |
| msg | Optional message to give on failure. |
| void CppSpec::Expectation< A >::to_be_false | +( | +std::string | msg = "" | ) | ++ |
Match using the Matchers::Be matcher, testing for falsy-ness.
+| msg | Optional message to give on failure. |
| A |
| void CppSpec::Expectation< A >::to_be_falsy | +( | +std::string | msg = "" | ) | ++ |
| msg |
| void CppSpec::Expectation< A >::to_be_null | +( | +std::string | msg = "" | ) | ++ |
Match using the Matchers::BeNullptr matcher.
+| msg | Optional message to give on failure. |
| void CppSpec::Expectation< A >::to_be_true | +( | +std::string | msg = "" | ) | ++ |
Match using the Matchers::Be matcher, testing for truthy-ness.
+| msg | Optional message to give on failure. |
| void CppSpec::Expectation< A >::to_be_truthy | +( | +std::string | msg = "" | ) | ++ |
| msg |
| A |
| Matchers::BeWithinHelper< A, E > CppSpec::Expectation< A >::to_be_within | +( | +E | expected, | +
| + | + | std::string | msg = "" ) | +
Match using the Matchers::BeWithin matcher.
+| expected | |
| msg | Optional message to give on failure. |
| void CppSpec::Expectation< A >::to_contain | +( | +E | expected, | +
| + | + | std::string | msg = "" ) | +
Match using the Matchers::Include matcher.
+| expected | |
| msg | Optional message to give on failure. |
| void CppSpec::Expectation< A >::to_contain | +( | +std::initializer_list< U > | expected, | +
| + | + | std::string | msg = "" ) | +
Match using the Matchers::Include matcher, given an initializer list.
+| expected | |
| msg | Optional message to give on failure. |
| void CppSpec::Expectation< A >::to_equal | +( | +E | expected, | +
| + | + | std::string | msg = "" ) | +
Match using the Matchers::Equal matcher.
+| expected | |
| msg | Optional message to give on failure. |
| void CppSpec::Expectation< A >::to_satisfy | +( | +F | test, | +
| + | + | std::string | msg = "" ) | +
Match using the Matchers::Satisfy matcher.
+| test | The function to use to test the output of the expectation expression. |
| msg | Optional message to give on failure. |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::ExpectationFunc< F >, including all inherited members.
+|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


+Public Member Functions | |
| + | ExpectationFunc (ExpectationFunc< F > const ©, std::source_location location) |
| ExpectationFunc (ItBase &it, F block, std::source_location location) | |
| Create an ExpectationValue using a value. | |
| block_ret_t & | get_target () &override |
| Create an Expectation using a function. | |
| ExpectationFunc & | not_ () override |
| ExpectationFunc & | ignore () override |
| +Expectation< decltype(block())> & | casted () |
| +template<typename Ex = std::exception> | |
| void | to_throw (std::string msg="") |
| Public Member Functions inherited from CppSpec::Expectation< decltype(std::declval< F >()())> | |
| +ItBase * | get_it () const |
| +std::source_location | get_location () const |
| +constexpr bool | positive () const |
| Get whether the expectation is normal or negated. | |
| +constexpr bool | ignored () const |
| void | to (M matcher, std::string msg="") |
| void | to_be_false (std::string msg="") |
| Match using the Matchers::Be matcher, testing for falsy-ness. | |
| void | to_be_falsy (std::string msg="") |
| void | to_be_null (std::string msg="") |
| Match using the Matchers::BeNullptr matcher. | |
| void | to_be_true (std::string msg="") |
| Match using the Matchers::Be matcher, testing for truthy-ness. | |
| void | to_be_truthy (std::string msg="") |
| void | to_be_between (E min, E max, Matchers::RangeMode mode=Matchers::RangeMode::inclusive, std::string msg="") |
| Match using the Matchers::BeBetween matcher, with an explicit range mode. | |
| +void | to_be_greater_than (E rhs, std::string msg="") |
| +void | to_be_less_than (E rhs, std::string msg="") |
| Matchers::BeWithinHelper< decltype(std::declval< F >()()), E > | to_be_within (E expected, std::string msg="") |
| Match using the Matchers::BeWithin matcher. | |
| +void | to_end_with (std::string ending, std::string msg="") |
| +void | to_fail (std::string msg="") |
| +void | to_fail_with (std::string failure_message, std::string msg="") |
| +void | to_match (std::regex regex, std::string msg="") |
| +void | to_partially_match (std::regex regex, std::string msg="") |
| void | to_satisfy (F test, std::string msg="") |
| Match using the Matchers::Satisfy matcher. | |
| +void | to_start_with (std::string start, std::string msg="") |
| void | to_contain (std::initializer_list< U > expected, std::string msg="") |
| Match using the Matchers::Include matcher, given an initializer list. | |
| void | to_equal (E expected, std::string msg="") |
| Match using the Matchers::Equal matcher. | |
| +void | to_have_value (std::string msg="") |
+Additional Inherited Members | |
| Protected Attributes inherited from CppSpec::Expectation< decltype(std::declval< F >()())> | |
| +bool | is_positive_ |
| +bool | ignore_ |
+
|
+ +inline | +
Create an ExpectationValue using a value.
+| value | The target to test, an explicit value. |
+
|
+ +inlineoverridevirtual | +
Create an Expectation using a function.
+This does not simply contain the return value of the given lambda, but instead wraps the thunk, delaying execution until it is time to perform the match.
+| block | A function that returns some value to test against. |
Get the target of the expectation.
+ +Implements CppSpec::Expectation< decltype(std::declval< F >()())>.
+ +
+
|
+ +inlineoverridevirtual | +
Implements CppSpec::Expectation< decltype(std::declval< F >()())>.
+ +
+
|
+ +inlineoverridevirtual | +
Implements CppSpec::Expectation< decltype(std::declval< F >()())>.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::ExpectationValue< A >, including all inherited members.
+| Expectation()=default (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | |
| Expectation(std::source_location location) (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | inlineexplicit |
| Expectation(ItBase &it, std::source_location location) | CppSpec::Expectation< A > | inlineexplicit |
| ExpectationValue(ItBase &it, A value, std::source_location location) | CppSpec::ExpectationValue< A > | inline |
| ExpectationValue(A value, std::source_location location=std::source_location::current()) (defined in CppSpec::ExpectationValue< A >) | CppSpec::ExpectationValue< A > | inlineexplicit |
| ExpectationValue(ItBase &it, std::initializer_list< U > init_list, std::source_location location) | CppSpec::ExpectationValue< A > | inline |
| get_it() const (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | inline |
| get_location() const (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | inline |
| get_target() &override | CppSpec::ExpectationValue< A > | inlinevirtual |
| ignore() override (defined in CppSpec::ExpectationValue< A >) | CppSpec::ExpectationValue< A > | inlinevirtual |
| ignore_ (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | protected |
| ignored() const (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | inline |
| is_positive_ (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | protected |
| not_() override (defined in CppSpec::ExpectationValue< A >) | CppSpec::ExpectationValue< A > | inlinevirtual |
| positive() const | CppSpec::Expectation< A > | inline |
| to(M matcher, std::string msg="") | CppSpec::Expectation< A > | |
| to_be_between(E min, E max, Matchers::RangeMode mode=Matchers::RangeMode::inclusive, std::string msg="") | CppSpec::Expectation< A > | |
| to_be_false(std::string msg="") | CppSpec::Expectation< A > | |
| to_be_falsy(std::string msg="") | CppSpec::Expectation< A > | |
| to_be_greater_than(E rhs, std::string msg="") (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | |
| to_be_less_than(E rhs, std::string msg="") (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | |
| to_be_null(std::string msg="") | CppSpec::Expectation< A > | |
| to_be_true(std::string msg="") | CppSpec::Expectation< A > | |
| to_be_truthy(std::string msg="") | CppSpec::Expectation< A > | |
| to_be_within(E expected, std::string msg="") | CppSpec::Expectation< A > | |
| to_contain(std::initializer_list< U > expected, std::string msg="") | CppSpec::Expectation< A > | |
| to_contain(E expected, std::string msg="") | CppSpec::Expectation< A > | |
| to_end_with(std::string ending, std::string msg="") (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | |
| to_end_with(std::initializer_list< U > start, std::string msg="") (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | |
| to_equal(E expected, std::string msg="") | CppSpec::Expectation< A > | |
| to_fail(std::string msg="") (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | |
| to_fail_with(std::string failure_message, std::string msg="") (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | |
| to_have_value(std::string msg="") (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | |
| to_match(std::regex regex, std::string msg="") (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | |
| to_match(std::string str, std::string msg="") (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | |
| to_partially_match(std::regex regex, std::string msg="") (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | |
| to_partially_match(std::string str, std::string msg="") (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | |
| to_satisfy(F test, std::string msg="") | CppSpec::Expectation< A > | |
| to_start_with(std::string start, std::string msg="") (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > | |
| to_start_with(std::initializer_list< U > start, std::string msg="") (defined in CppSpec::Expectation< A >) | CppSpec::Expectation< A > |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


+Public Member Functions | |
| ExpectationValue (ItBase &it, A value, std::source_location location) | |
| Create an ExpectationValue using a value. | |
| + | ExpectationValue (A value, std::source_location location=std::source_location::current()) |
| template<typename U> | |
| ExpectationValue (ItBase &it, std::initializer_list< U > init_list, std::source_location location) | |
| Create an Expectation using an initializer list. | |
| A & | get_target () &override |
| Get the target of the expectation. | |
| ExpectationValue & | not_ () override |
| ExpectationValue & | ignore () override |
| Public Member Functions inherited from CppSpec::Expectation< A > | |
| + | Expectation (std::source_location location) |
| Expectation (ItBase &it, std::source_location location) | |
| Create an Expectation using a value. | |
| +ItBase * | get_it () const |
| +std::source_location | get_location () const |
| +constexpr bool | positive () const |
| Get whether the expectation is normal or negated. | |
| +constexpr bool | ignored () const |
| template<class M> | |
| void | to (M matcher, std::string msg="") |
| void | to_be_false (std::string msg="") |
| Match using the Matchers::Be matcher, testing for falsy-ness. | |
| void | to_be_falsy (std::string msg="") |
| void | to_be_null (std::string msg="") |
| Match using the Matchers::BeNullptr matcher. | |
| void | to_be_true (std::string msg="") |
| Match using the Matchers::Be matcher, testing for truthy-ness. | |
| void | to_be_truthy (std::string msg="") |
| template<typename E> | |
| void | to_be_between (E min, E max, Matchers::RangeMode mode=Matchers::RangeMode::inclusive, std::string msg="") |
| Match using the Matchers::BeBetween matcher, with an explicit range mode. | |
| +template<typename E> | |
| void | to_be_greater_than (E rhs, std::string msg="") |
| +template<typename E> | |
| void | to_be_less_than (E rhs, std::string msg="") |
| template<typename E> | |
| Matchers::BeWithinHelper< A, E > | to_be_within (E expected, std::string msg="") |
| Match using the Matchers::BeWithin matcher. | |
| +void | to_end_with (std::string ending, std::string msg="") |
| +void | to_fail (std::string msg="") |
| +void | to_fail_with (std::string failure_message, std::string msg="") |
| +void | to_match (std::regex regex, std::string msg="") |
| +void | to_match (std::string str, std::string msg="") |
| +void | to_partially_match (std::regex regex, std::string msg="") |
| +void | to_partially_match (std::string str, std::string msg="") |
| template<typename F> | |
| void | to_satisfy (F test, std::string msg="") |
| Match using the Matchers::Satisfy matcher. | |
| +void | to_start_with (std::string start, std::string msg="") |
| template<typename U> | |
| void | to_contain (std::initializer_list< U > expected, std::string msg="") |
| Match using the Matchers::Include matcher, given an initializer list. | |
| template<typename E> | |
| void | to_contain (E expected, std::string msg="") |
| Match using the Matchers::Include matcher. | |
| +template<typename U> | |
| void | to_end_with (std::initializer_list< U > start, std::string msg="") |
| template<typename E> | |
| void | to_equal (E expected, std::string msg="") |
| Match using the Matchers::Equal matcher. | |
| +template<typename U> | |
| void | to_start_with (std::initializer_list< U > start, std::string msg="") |
| +void | to_have_value (std::string msg="") |
+Additional Inherited Members | |
| Protected Attributes inherited from CppSpec::Expectation< A > | |
| +bool | is_positive_ = true |
| +bool | ignore_ = false |
+
|
+ +inline | +
Create an ExpectationValue using a value.
+| value | The target to test, an explicit value. |
+
|
+ +inline | +
Create an Expectation using an initializer list.
+| init_list | The initializer list to match against. |
+
|
+ +inlineoverridevirtual | +
Get the target of the expectation.
+ +Implements CppSpec::Expectation< A >.
+ +
+
|
+ +inlineoverridevirtual | +
Implements CppSpec::Expectation< A >.
+ +
+
|
+ +inlineoverridevirtual | +
Implements CppSpec::Expectation< A >.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Formatters::BaseFormatter, including all inherited members.
+|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+

+Public Member Functions | |
| + | BaseFormatter (std::ostream &out_stream=std::cout, bool color=is_terminal()) |
| + | BaseFormatter (const BaseFormatter &)=default |
| + | BaseFormatter (const BaseFormatter ©, std::ostream &out_stream) |
| +void | format (const Runnable &runnable) |
| +void | format_children (const Runnable &runnable) |
| +virtual void | format (const Description &) |
| +virtual void | format (const ItBase &) |
| +virtual void | cleanup () |
| +BaseFormatter & | set_color_output (bool value) |
| +int | get_and_increment_test_counter () |
| +void | reset_test_counter () |
| +const char * | set_color (const char *color) |
| +const char * | status_color (Result::Status status) |
| +const char * | reset_color () |
+Protected Attributes | |
| +std::ostream & | out_stream |
| +int | test_counter = 1 |
| +bool | color_output |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Formatters::JUnitXML, including all inherited members.
+|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


+Public Member Functions | |
| + | JUnitXML (std::ostream &out_stream=std::cout, bool color=is_terminal()) |
| void | format (const Description &description) override |
| void | format (const ItBase &it) override |
| Public Member Functions inherited from CppSpec::Formatters::BaseFormatter | |
| + | BaseFormatter (std::ostream &out_stream=std::cout, bool color=is_terminal()) |
| + | BaseFormatter (const BaseFormatter &)=default |
| + | BaseFormatter (const BaseFormatter ©, std::ostream &out_stream) |
| +void | format (const Runnable &runnable) |
| +void | format_children (const Runnable &runnable) |
| +virtual void | cleanup () |
| +BaseFormatter & | set_color_output (bool value) |
| +int | get_and_increment_test_counter () |
| +void | reset_test_counter () |
| +const char * | set_color (const char *color) |
| +const char * | status_color (Result::Status status) |
| +const char * | reset_color () |
+Additional Inherited Members | |
| Protected Attributes inherited from CppSpec::Formatters::BaseFormatter | |
| +std::ostream & | out_stream |
| +int | test_counter = 1 |
| +bool | color_output |
+
|
+ +inlineoverridevirtual | +
Reimplemented from CppSpec::Formatters::BaseFormatter.
+ +
+
|
+ +inlineoverridevirtual | +
Reimplemented from CppSpec::Formatters::BaseFormatter.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Formatters::Progress, including all inherited members.
+|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


+Public Member Functions | |
| void | format (const ItBase &it) override |
| +void | format_failure_messages () |
| +void | prep_failure (const ItBase &it) |
| Public Member Functions inherited from CppSpec::Formatters::BaseFormatter | |
| + | BaseFormatter (std::ostream &out_stream=std::cout, bool color=is_terminal()) |
| + | BaseFormatter (const BaseFormatter &)=default |
| + | BaseFormatter (const BaseFormatter ©, std::ostream &out_stream) |
| +void | format (const Runnable &runnable) |
| +void | format_children (const Runnable &runnable) |
| +virtual void | format (const Description &) |
| +virtual void | cleanup () |
| +BaseFormatter & | set_color_output (bool value) |
| +int | get_and_increment_test_counter () |
| +void | reset_test_counter () |
| +const char * | set_color (const char *color) |
| +const char * | status_color (Result::Status status) |
| +const char * | reset_color () |
+Static Public Member Functions | |
| +static char | status_char (Result::Status status) |
+Additional Inherited Members | |
| Protected Attributes inherited from CppSpec::Formatters::BaseFormatter | |
| +std::ostream & | out_stream |
| +int | test_counter = 1 |
| +bool | color_output |
+
|
+ +inlineoverridevirtual | +
Reimplemented from CppSpec::Formatters::BaseFormatter.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Formatters::Verbose, including all inherited members.
+|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


+Public Member Functions | |
| + | Verbose (std::ostream &out_stream) |
| + | Verbose (const BaseFormatter &base, std::ostream &out_stream) |
| + | Verbose (const BaseFormatter &base) |
| void | format (const Description &description) override |
| void | format (const ItBase &it) override |
| Public Member Functions inherited from CppSpec::Formatters::BaseFormatter | |
| + | BaseFormatter (std::ostream &out_stream=std::cout, bool color=is_terminal()) |
| + | BaseFormatter (const BaseFormatter &)=default |
| + | BaseFormatter (const BaseFormatter ©, std::ostream &out_stream) |
| +void | format (const Runnable &runnable) |
| +void | format_children (const Runnable &runnable) |
| +virtual void | cleanup () |
| +BaseFormatter & | set_color_output (bool value) |
| +int | get_and_increment_test_counter () |
| +void | reset_test_counter () |
| +const char * | set_color (const char *color) |
| +const char * | status_color (Result::Status status) |
| +const char * | reset_color () |
+Additional Inherited Members | |
| Protected Attributes inherited from CppSpec::Formatters::BaseFormatter | |
| +std::ostream & | out_stream |
| +int | test_counter = 1 |
| +bool | color_output |
+
|
+ +inlineoverridevirtual | +
Reimplemented from CppSpec::Formatters::BaseFormatter.
+ +
+
|
+ +inlineoverridevirtual | +
Reimplemented from CppSpec::Formatters::BaseFormatter.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::ItBase, including all inherited members.
+| add_result(const Result &result) (defined in CppSpec::ItBase) | CppSpec::ItBase | inline |
| clear_results() noexcept (defined in CppSpec::ItBase) | CppSpec::ItBase | inline |
| expect(T value, std::source_location location=std::source_location::current()) | CppSpec::ItBase | |
| expect(T block, std::source_location location=std::source_location::current()) | CppSpec::ItBase | |
| expect(std::initializer_list< T > init_list, std::source_location location=std::source_location::current()) | CppSpec::ItBase | |
| expect(Let< T > &let, std::source_location location=std::source_location::current()) | CppSpec::ItBase | |
| expect(const char *string, std::source_location location=std::source_location::current()) | CppSpec::ItBase | inline |
| get_children() noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_children() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_description() const noexcept | CppSpec::ItBase | inline |
| get_location() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_parent() noexcept | CppSpec::Runnable | inline |
| get_parent() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_parent_as() noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_parent_as() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_result() const override (defined in CppSpec::ItBase) | CppSpec::ItBase | inlinevirtual |
| get_results() noexcept (defined in CppSpec::ItBase) | CppSpec::ItBase | inline |
| get_results() const noexcept (defined in CppSpec::ItBase) | CppSpec::ItBase | inline |
| get_runtime() const (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_start_time() const (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| has_parent() noexcept | CppSpec::Runnable | inline |
| has_parent() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| ItBase()=delete (defined in CppSpec::ItBase) | CppSpec::ItBase | |
| ItBase(std::source_location location) noexcept | CppSpec::ItBase | inlineexplicit |
| ItBase(std::source_location location, const char *description) noexcept | CppSpec::ItBase | inlineexplicit |
| make_child(Args &&... args) (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| needs_description() noexcept | CppSpec::ItBase | inline |
| num_failures() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| num_tests() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| padding() const noexcept | CppSpec::Runnable | inline |
| run()=0 (defined in CppSpec::Runnable) | CppSpec::Runnable | pure virtual |
| Runnable(std::source_location location) (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| set_description(std::string_view description) noexcept | CppSpec::ItBase | inline |
| set_location(std::source_location location) noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| timed_run() (defined in CppSpec::Runnable) | CppSpec::Runnable | inlinevirtual |
| ~Runnable()=default (defined in CppSpec::Runnable) | CppSpec::Runnable | virtual |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
Base class for it expressions. + More...
+ +#include <it_base.hpp>


+Public Member Functions | |
| ItBase (std::source_location location) noexcept | |
| Create an BaseIt without an explicit description. | |
| ItBase (std::source_location location, const char *description) noexcept | |
| Create an BaseIt with an explicit description. | |
| bool | needs_description () noexcept |
| Get whether the object needs a description string. | |
| std::string | get_description () const noexcept |
| Get the description string for the it statement. | |
| ItBase & | set_description (std::string_view description) noexcept |
| Set the description string. | |
| template<Util::is_not_functional T> | |
| ExpectationValue< T > | expect (T value, std::source_location location=std::source_location::current()) |
| The expect object generator for objects and LiteralTypes. | |
| template<Util::is_functional T> | |
| ExpectationFunc< T > | expect (T block, std::source_location location=std::source_location::current()) |
| The expect object generator for lambdas. | |
| template<typename T> | |
| ExpectationValue< std::initializer_list< T > > | expect (std::initializer_list< T > init_list, std::source_location location=std::source_location::current()) |
| The expect object generator for initializer lists. | |
| template<typename T> | |
| ExpectationValue< T > | expect (Let< T > &let, std::source_location location=std::source_location::current()) |
| The expect object generator for Let. | |
| ExpectationValue< std::string > | expect (const char *string, std::source_location location=std::source_location::current()) |
| The expect object generator for const char*. | |
| +void | add_result (const Result &result) |
| +std::list< Result > & | get_results () noexcept |
| +const std::list< Result > & | get_results () const noexcept |
| +void | clear_results () noexcept |
| Result | get_result () const override |
| Public Member Functions inherited from CppSpec::Runnable | |
| + | Runnable (std::source_location location) |
| +bool | has_parent () noexcept |
| Check to see if the Runnable has a parent. | |
| +bool | has_parent () const noexcept |
| +Runnable * | get_parent () noexcept |
| Get the Runnable's parent. | |
| +const Runnable * | get_parent () const noexcept |
| +std::list< std::shared_ptr< Runnable > > & | get_children () noexcept |
| +const std::list< std::shared_ptr< Runnable > > & | get_children () const noexcept |
| +template<class C> | |
| C * | get_parent_as () noexcept |
| +template<class C> | |
| const C * | get_parent_as () const noexcept |
| +template<typename T, typename... Args> | |
| T * | make_child (Args &&... args) |
| std::string | padding () const noexcept |
| Generate padding (indentation) fore the current object. | |
| +std::source_location | get_location () const noexcept |
| +void | set_location (std::source_location location) noexcept |
| +virtual void | run ()=0 |
| +virtual void | timed_run () |
| +std::chrono::duration< double > | get_runtime () const |
| +std::chrono::time_point< std::chrono::system_clock > | get_start_time () const |
| +size_t | num_tests () const noexcept |
| +size_t | num_failures () const noexcept |
Base class for it expressions.
+This class is needed to prevent a circular dependency between it.hpp and basematcher.hpp. Matchers need to know whether or not an it has an explicit description string or whether the description should be generated. its need to be able to refer to Expectations, and Expectations need to know about Matchers and execute them. This class is the least common denominator of the it classes, and thus is used to resolve the dependency cycle.
+
+
|
+ +inlineexplicitnoexcept | +
Create an BaseIt without an explicit description.
+
+
|
+ +inlineexplicitnoexcept | +
Create an BaseIt with an explicit description.
+| description | the documentation string of the it statement |
+
|
+ +inline | +
The expect object generator for const char*.
+| string | the string to wrap |
| ExpectationValue< T > CppSpec::ItBase::expect | +( | +Let< T > & | let, | +
| + | + | std::source_location | location = std::source_location::current() ) | +
The expect object generator for Let.
+| block | the let variable |
| T | the type of the value contained in the ExpectationFunc |
| ExpectationValue< std::initializer_list< T > > CppSpec::ItBase::expect | +( | +std::initializer_list< T > | init_list, | +
| + | + | std::source_location | location = std::source_location::current() ) | +
The expect object generator for initializer lists.
+An expect for initializer_list subjects.
+| init_list | the list to wrap |
| T | the type of the items inside the initializer list |
| ExpectationFunc< T > CppSpec::ItBase::expect | +( | +T | block, | +
| + | + | std::source_location | location = std::source_location::current() ) | +
The expect object generator for lambdas.
+| block | the lambda to wrap. |
| T | the type of the lambda/function contained in the ExpectationFunc |
| ExpectationValue< T > CppSpec::ItBase::expect | +( | +T | value, | +
| + | + | std::source_location | location = std::source_location::current() ) | +
The expect object generator for objects and LiteralTypes.
+A simple expect statement.
+| value | the item to wrap. This parameter is passed by value so that statements like expect(2) or expect(SomeClass()) can be passed in |
| T | the type of the object contained in the ExpectationValue |
+
|
+ +inlinenodiscardnoexcept | +
Get the description string for the it statement.
+
+
|
+ +inlinenodiscardoverridevirtual | +
Reimplemented from CppSpec::Runnable.
+ +
+
|
+ +inlinenoexcept | +
Get whether the object needs a description string.
+
+
|
+ +inlinenoexcept | +
Set the description string.
+|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::ItCD< T >, including all inherited members.
+| add_result(const Result &result) (defined in CppSpec::ItBase) | CppSpec::ItBase | inline |
| Block typedef (defined in CppSpec::ItCD< T >) | CppSpec::ItCD< T > | |
| clear_results() noexcept (defined in CppSpec::ItBase) | CppSpec::ItBase | inline |
| expect(T value, std::source_location location=std::source_location::current()) | CppSpec::ItBase | |
| expect(T block, std::source_location location=std::source_location::current()) | CppSpec::ItBase | |
| expect(std::initializer_list< T > init_list, std::source_location location=std::source_location::current()) | CppSpec::ItBase | |
| expect(Let< T > &let, std::source_location location=std::source_location::current()) | CppSpec::ItBase | |
| expect(const char *string, std::source_location location=std::source_location::current()) | CppSpec::ItBase | inline |
| get_children() noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_children() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_description() const noexcept | CppSpec::ItBase | inline |
| get_location() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_parent() noexcept | CppSpec::Runnable | inline |
| get_parent() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_parent_as() noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_parent_as() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_result() const override (defined in CppSpec::ItBase) | CppSpec::ItBase | inlinevirtual |
| get_results() noexcept (defined in CppSpec::ItBase) | CppSpec::ItBase | inline |
| get_results() const noexcept (defined in CppSpec::ItBase) | CppSpec::ItBase | inline |
| get_runtime() const (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_start_time() const (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| has_parent() noexcept | CppSpec::Runnable | inline |
| has_parent() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| is_expected(std::source_location location=std::source_location::current()) (defined in CppSpec::ItCD< T >) | CppSpec::ItCD< T > | inline |
| ItBase()=delete (defined in CppSpec::ItBase) | CppSpec::ItBase | |
| ItBase(std::source_location location) noexcept | CppSpec::ItBase | inlineexplicit |
| ItBase(std::source_location location, const char *description) noexcept | CppSpec::ItBase | inlineexplicit |
| ItCD(std::source_location location, T &subject, const char *description, Block block) (defined in CppSpec::ItCD< T >) | CppSpec::ItCD< T > | inline |
| ItCD(std::source_location location, T &subject, Block block) (defined in CppSpec::ItCD< T >) | CppSpec::ItCD< T > | inline |
| make_child(Args &&... args) (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| needs_description() noexcept | CppSpec::ItBase | inline |
| num_failures() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| num_tests() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| padding() const noexcept | CppSpec::Runnable | inline |
| run() override (defined in CppSpec::ItCD< T >) | CppSpec::ItCD< T > | virtual |
| Runnable(std::source_location location) (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| set_description(std::string_view description) noexcept | CppSpec::ItBase | inline |
| set_location(std::source_location location) noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| subject | CppSpec::ItCD< T > | |
| timed_run() (defined in CppSpec::Runnable) | CppSpec::Runnable | inlinevirtual |
| ~Runnable()=default (defined in CppSpec::Runnable) | CppSpec::Runnable | virtual |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
An it embedded in a ClassDescription. + More...
+ +#include <it.hpp>


+Public Types | |
| +using | Block = std::function<void(ItCD<T>&)> |
+Public Member Functions | |
| + | ItCD (std::source_location location, T &subject, const char *description, Block block) |
| + | ItCD (std::source_location location, T &subject, Block block) |
| +ExpectationValue< T > | is_expected (std::source_location location=std::source_location::current()) |
| void | run () override |
| Public Member Functions inherited from CppSpec::ItBase | |
| ItBase (std::source_location location) noexcept | |
| Create an BaseIt without an explicit description. | |
| ItBase (std::source_location location, const char *description) noexcept | |
| Create an BaseIt with an explicit description. | |
| bool | needs_description () noexcept |
| Get whether the object needs a description string. | |
| std::string | get_description () const noexcept |
| Get the description string for the it statement. | |
| ItBase & | set_description (std::string_view description) noexcept |
| Set the description string. | |
| template<Util::is_not_functional T> | |
| ExpectationValue< T > | expect (T value, std::source_location location=std::source_location::current()) |
| The expect object generator for objects and LiteralTypes. | |
| template<Util::is_functional T> | |
| ExpectationFunc< T > | expect (T block, std::source_location location=std::source_location::current()) |
| The expect object generator for lambdas. | |
| template<typename T> | |
| ExpectationValue< std::initializer_list< T > > | expect (std::initializer_list< T > init_list, std::source_location location=std::source_location::current()) |
| The expect object generator for initializer lists. | |
| template<typename T> | |
| ExpectationValue< T > | expect (Let< T > &let, std::source_location location=std::source_location::current()) |
| The expect object generator for Let. | |
| ExpectationValue< std::string > | expect (const char *string, std::source_location location=std::source_location::current()) |
| The expect object generator for const char*. | |
| +void | add_result (const Result &result) |
| +std::list< Result > & | get_results () noexcept |
| +const std::list< Result > & | get_results () const noexcept |
| +void | clear_results () noexcept |
| Result | get_result () const override |
| Public Member Functions inherited from CppSpec::Runnable | |
| + | Runnable (std::source_location location) |
| +bool | has_parent () noexcept |
| Check to see if the Runnable has a parent. | |
| +bool | has_parent () const noexcept |
| +Runnable * | get_parent () noexcept |
| Get the Runnable's parent. | |
| +const Runnable * | get_parent () const noexcept |
| +std::list< std::shared_ptr< Runnable > > & | get_children () noexcept |
| +const std::list< std::shared_ptr< Runnable > > & | get_children () const noexcept |
| +template<class C> | |
| C * | get_parent_as () noexcept |
| +template<class C> | |
| const C * | get_parent_as () const noexcept |
| +template<typename T, typename... Args> | |
| T * | make_child (Args &&... args) |
| std::string | padding () const noexcept |
| Generate padding (indentation) fore the current object. | |
| +std::source_location | get_location () const noexcept |
| +void | set_location (std::source_location location) noexcept |
| +virtual void | timed_run () |
| +std::chrono::duration< double > | get_runtime () const |
| +std::chrono::time_point< std::chrono::system_clock > | get_start_time () const |
| +size_t | num_tests () const noexcept |
| +size_t | num_failures () const noexcept |
+Public Attributes | |
| T & | subject |
| A reference to the parent ClassDescription's subject. | |
An it embedded in a ClassDescription.
+ItCD objects are the representation of an it in a describe_a block. They contain both the function that represents the block of the it, and a reference to the parent ClassDescription::subject
+| T | the type of the subject of the parent ClassDescription (ClassDescription<T>) |
+
|
+ +overridevirtual | +
Implements CppSpec::Runnable.
+ +| T& CppSpec::ItCD< T >::subject | +
A reference to the parent ClassDescription's subject.
+Public so that we can easily do expect(subject) without needing to have a dedicated macro for accessing the subject via getter, or needing to introduce parenthesis for call syntax (like subject())
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::ItD, including all inherited members.
+| add_result(const Result &result) (defined in CppSpec::ItBase) | CppSpec::ItBase | inline |
| Block typedef (defined in CppSpec::ItD) | CppSpec::ItD | |
| clear_results() noexcept (defined in CppSpec::ItBase) | CppSpec::ItBase | inline |
| expect(T value, std::source_location location=std::source_location::current()) | CppSpec::ItBase | |
| expect(T block, std::source_location location=std::source_location::current()) | CppSpec::ItBase | |
| expect(std::initializer_list< T > init_list, std::source_location location=std::source_location::current()) | CppSpec::ItBase | |
| expect(Let< T > &let, std::source_location location=std::source_location::current()) | CppSpec::ItBase | |
| expect(const char *string, std::source_location location=std::source_location::current()) | CppSpec::ItBase | inline |
| get_children() noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_children() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_description() const noexcept | CppSpec::ItBase | inline |
| get_location() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_parent() noexcept | CppSpec::Runnable | inline |
| get_parent() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_parent_as() noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_parent_as() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_result() const override (defined in CppSpec::ItBase) | CppSpec::ItBase | inlinevirtual |
| get_results() noexcept (defined in CppSpec::ItBase) | CppSpec::ItBase | inline |
| get_results() const noexcept (defined in CppSpec::ItBase) | CppSpec::ItBase | inline |
| get_runtime() const (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_start_time() const (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| has_parent() noexcept | CppSpec::Runnable | inline |
| has_parent() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| ItBase()=delete (defined in CppSpec::ItBase) | CppSpec::ItBase | |
| ItBase(std::source_location location) noexcept | CppSpec::ItBase | inlineexplicit |
| ItBase(std::source_location location, const char *description) noexcept | CppSpec::ItBase | inlineexplicit |
| ItD(std::source_location location, const char *description, Block block) | CppSpec::ItD | inline |
| ItD(std::source_location location, Block block) | CppSpec::ItD | inline |
| make_child(Args &&... args) (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| needs_description() noexcept | CppSpec::ItBase | inline |
| num_failures() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| num_tests() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| padding() const noexcept | CppSpec::Runnable | inline |
| run() override (defined in CppSpec::ItD) | CppSpec::ItD | inlinevirtual |
| Runnable(std::source_location location) (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| set_description(std::string_view description) noexcept | CppSpec::ItBase | inline |
| set_location(std::source_location location) noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| timed_run() (defined in CppSpec::Runnable) | CppSpec::Runnable | inlinevirtual |
| ~Runnable()=default (defined in CppSpec::Runnable) | CppSpec::Runnable | virtual |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
An it embedded in a Description. + More...
+ +#include <it.hpp>


+Public Types | |
| +using | Block = std::function<void(ItD&)> |
+Public Member Functions | |
| ItD (std::source_location location, const char *description, Block block) | |
| The primary ItD constructor. | |
| ItD (std::source_location location, Block block) | |
| The anonymous ItD constructor. | |
| void | run () override |
| Public Member Functions inherited from CppSpec::ItBase | |
| ItBase (std::source_location location) noexcept | |
| Create an BaseIt without an explicit description. | |
| ItBase (std::source_location location, const char *description) noexcept | |
| Create an BaseIt with an explicit description. | |
| bool | needs_description () noexcept |
| Get whether the object needs a description string. | |
| std::string | get_description () const noexcept |
| Get the description string for the it statement. | |
| ItBase & | set_description (std::string_view description) noexcept |
| Set the description string. | |
| template<Util::is_not_functional T> | |
| ExpectationValue< T > | expect (T value, std::source_location location=std::source_location::current()) |
| The expect object generator for objects and LiteralTypes. | |
| template<Util::is_functional T> | |
| ExpectationFunc< T > | expect (T block, std::source_location location=std::source_location::current()) |
| The expect object generator for lambdas. | |
| template<typename T> | |
| ExpectationValue< std::initializer_list< T > > | expect (std::initializer_list< T > init_list, std::source_location location=std::source_location::current()) |
| The expect object generator for initializer lists. | |
| template<typename T> | |
| ExpectationValue< T > | expect (Let< T > &let, std::source_location location=std::source_location::current()) |
| The expect object generator for Let. | |
| ExpectationValue< std::string > | expect (const char *string, std::source_location location=std::source_location::current()) |
| The expect object generator for const char*. | |
| +void | add_result (const Result &result) |
| +std::list< Result > & | get_results () noexcept |
| +const std::list< Result > & | get_results () const noexcept |
| +void | clear_results () noexcept |
| Result | get_result () const override |
| Public Member Functions inherited from CppSpec::Runnable | |
| + | Runnable (std::source_location location) |
| +bool | has_parent () noexcept |
| Check to see if the Runnable has a parent. | |
| +bool | has_parent () const noexcept |
| +Runnable * | get_parent () noexcept |
| Get the Runnable's parent. | |
| +const Runnable * | get_parent () const noexcept |
| +std::list< std::shared_ptr< Runnable > > & | get_children () noexcept |
| +const std::list< std::shared_ptr< Runnable > > & | get_children () const noexcept |
| +template<class C> | |
| C * | get_parent_as () noexcept |
| +template<class C> | |
| const C * | get_parent_as () const noexcept |
| +template<typename T, typename... Args> | |
| T * | make_child (Args &&... args) |
| std::string | padding () const noexcept |
| Generate padding (indentation) fore the current object. | |
| +std::source_location | get_location () const noexcept |
| +void | set_location (std::source_location location) noexcept |
| +virtual void | timed_run () |
| +std::chrono::duration< double > | get_runtime () const |
| +std::chrono::time_point< std::chrono::system_clock > | get_start_time () const |
| +size_t | num_tests () const noexcept |
| +size_t | num_failures () const noexcept |
An it embedded in a Description.
+ItD objects are the representation of an it in a describe block (not a describe_a) the sole item they contain is the function that represents the block of the it. ItD is derived from ItBase.
+
+
|
+ +inline | +
The primary ItD constructor.
+This constructor is used for creating ItDs that are given a documentation string.
+| parent | the parent of the it (i.e. the Description object) |
| description | the documentation string of the it |
| block | the lambda/function passed to the it |
+
|
+ +inline | +
The anonymous ItD constructor.
+Not used frequently, as most anonymous its will be ItCD objects, since the syntax lends itself to this. However, the possibility of not giving a documentation string to the it still exists, both to be consistent and for cases it might want to be used.
+| parent | the parent of the it (i.e. the Description object) |
| block | the lambda function passed to the it |
+
|
+ +inlineoverridevirtual | +
Implements CppSpec::Runnable.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::LetBase, including all inherited members.
+| delivered (defined in CppSpec::LetBase) | CppSpec::LetBase | protected |
| has_result() const noexcept (defined in CppSpec::LetBase) | CppSpec::LetBase | inline |
| LetBase() noexcept=default (defined in CppSpec::LetBase) | CppSpec::LetBase | |
| LetBase(const LetBase ©)=default (defined in CppSpec::LetBase) | CppSpec::LetBase | |
| reset() noexcept (defined in CppSpec::LetBase) | CppSpec::LetBase | inline |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
Base class for lets to abstract away the template arguments. + More...
+ +#include <let.hpp>
+Public Member Functions | |
| + | LetBase (const LetBase ©)=default |
| +void | reset () noexcept |
| +constexpr bool | has_result () const noexcept |
+Protected Attributes | |
| +bool | delivered {false} |
Base class for lets to abstract away the template arguments.
+Expectation needs to know whether the calculated value of a Let has been delivered or not, but doesn't need to know the value itself or its type.
+|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Matchers::BeBetween< A, E >, including all inherited members.
+| _name (defined in CppSpec::Pretty) | CppSpec::Pretty | |
| BeBetween(Expectation< A > &expectation, E min, E max, RangeMode mode=RangeMode::inclusive) (defined in CppSpec::Matchers::BeBetween< A, E >) | CppSpec::Matchers::BeBetween< A, E > | inline |
| description() override | CppSpec::Matchers::BeBetween< A, E > | virtual |
| failure_message() | CppSpec::Matchers::MatcherBase< A, E > | virtual |
| failure_message_when_negated() | CppSpec::Matchers::MatcherBase< A, E > | virtual |
| improve_hash_formatting(const std::string &inspect_string) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| inspect_object(const T &object) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| inspect_object(const O &o) | CppSpec::Pretty | inline |
| inspect_object(const char *const &o) | CppSpec::Pretty | inlinestatic |
| last(const std::string &s, char delim) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| match() override (defined in CppSpec::Matchers::BeBetween< A, E >) | CppSpec::Matchers::BeBetween< A, E > | virtual |
| name(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| name_to_sentence(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| run() | CppSpec::Matchers::MatcherBase< A, E > | |
| set_message(std::string message) | CppSpec::Matchers::MatcherBase< A, E > | virtual |
| split_words(const std::string &sym) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_sentence(const T &item) | CppSpec::Pretty | inlinestatic |
| to_sentence(const std::vector< T > &words) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| to_word(const Matchers::MatcherBase< A, E > &matcher) | CppSpec::Pretty | inlinestatic |
| to_word(const bool &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_word_type(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| underscore(const std::string &camel_cased_word) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| verb() override (defined in CppSpec::Matchers::BeBetween< A, E >) | CppSpec::Matchers::BeBetween< A, E > | inlinevirtual |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


+Public Member Functions | |
| + | BeBetween (Expectation< A > &expectation, E min, E max, RangeMode mode=RangeMode::inclusive) |
| bool | match () override |
| std::string | verb () override |
| std::string | description () override |
| Get the description of the Matcher. | |
| Public Member Functions inherited from CppSpec::Matchers::MatcherBase< A, E > | |
| + | MatcherBase (MatcherBase< A, E > const ©)=default |
| virtual std::string | failure_message () |
| Get message to give on match failure. | |
| virtual std::string | failure_message_when_negated () |
| Get message to give on match failure when negated. | |
| +constexpr A & | actual () |
| +E & | expected () |
| +Expectation< A > & | expectation () |
| virtual MatcherBase & | set_message (std::string message) |
| Set a custom failure message. | |
| +std::source_location | get_location () const |
| Result | run () |
| Run the Matcher object. | |
| +virtual bool | negated_match () |
| Public Member Functions inherited from CppSpec::Pretty | |
| +std::string | name (const std::string &name) const |
| +std::string | name_to_sentence (const std::string &name) const |
| template<typename O> | |
| std::string | inspect_object (const O &o) |
| Generate a string of the class and data of an object. | |
+Additional Inherited Members | |
| Public Types inherited from CppSpec::Matchers::MatcherBase< A, E > | |
| +using | expected_t |
| Static Public Member Functions inherited from CppSpec::Pretty | |
| +static std::string | split_words (const std::string &sym) |
| +static std::string | underscore (const std::string &camel_cased_word) |
| +static std::string | last (const std::string &s, char delim) |
| +static std::string | improve_hash_formatting (const std::string &inspect_string) |
| template<Util::is_streamable T> | |
| static std::string | to_word (const T &item) |
| Formats an object as a string when operator<< is available. | |
| +template<typename T> | |
| static std::string | to_word (const T &item) |
| +template<typename T> | |
| static std::string | to_word_type (const T &item) |
| template<typename A, typename E> | |
| static std::string | to_word (const Matchers::MatcherBase< A, E > &matcher) |
| template<class T> | |
| static std::string | to_sentence (const T &item) |
| Take a single object and format it as a sentance. | |
| template<class T> | |
| static std::string | to_sentence (const std::vector< T > &words) |
| +template<typename T> | |
| static std::string | inspect_object (const T &object) |
| +template<> | |
| std::string | to_word (const bool &item) |
| template<> | |
| std::string | inspect_object (const char *const &o) |
| Specialization for C-style strings. | |
| Public Attributes inherited from CppSpec::Pretty | |
| +std::string | _name |
| Protected Attributes inherited from CppSpec::Matchers::MatcherBase< A, E > | |
| +E | expected_ |
| +Expectation< A > & | expectation_ |
+
|
+ +overridevirtual | +
Get the description of the Matcher.
+Reimplemented from CppSpec::Matchers::MatcherBase< A, E >.
+ +
+
|
+ +overridevirtual | +
Implements CppSpec::Matchers::MatcherBase< A, E >.
+ +
+
|
+ +inlineoverridevirtual | +
Reimplemented from CppSpec::Matchers::MatcherBase< A, E >.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Matchers::BeGreaterThan< A, E >, including all inherited members.
+| _name (defined in CppSpec::Pretty) | CppSpec::Pretty | |
| BeGreaterThan(Expectation< A > &expectation, E expected) (defined in CppSpec::Matchers::BeGreaterThan< A, E >) | CppSpec::Matchers::BeGreaterThan< A, E > | inline |
| description() | CppSpec::Matchers::MatcherBase< A, E > | virtual |
| failure_message() | CppSpec::Matchers::MatcherBase< A, E > | virtual |
| failure_message_when_negated() | CppSpec::Matchers::MatcherBase< A, E > | virtual |
| improve_hash_formatting(const std::string &inspect_string) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| inspect_object(const T &object) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| inspect_object(const O &o) | CppSpec::Pretty | inline |
| inspect_object(const char *const &o) | CppSpec::Pretty | inlinestatic |
| last(const std::string &s, char delim) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| match() override (defined in CppSpec::Matchers::BeGreaterThan< A, E >) | CppSpec::Matchers::BeGreaterThan< A, E > | inlinevirtual |
| name(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| name_to_sentence(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| run() | CppSpec::Matchers::MatcherBase< A, E > | |
| set_message(std::string message) | CppSpec::Matchers::MatcherBase< A, E > | virtual |
| split_words(const std::string &sym) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_sentence(const T &item) | CppSpec::Pretty | inlinestatic |
| to_sentence(const std::vector< T > &words) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| to_word(const Matchers::MatcherBase< A, E > &matcher) | CppSpec::Pretty | inlinestatic |
| to_word(const bool &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_word_type(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| underscore(const std::string &camel_cased_word) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| verb() override (defined in CppSpec::Matchers::BeGreaterThan< A, E >) | CppSpec::Matchers::BeGreaterThan< A, E > | inlinevirtual |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


+Public Member Functions | |
| + | BeGreaterThan (Expectation< A > &expectation, E expected) |
| bool | match () override |
| std::string | verb () override |
| Public Member Functions inherited from CppSpec::Matchers::MatcherBase< A, E > | |
| + | MatcherBase (MatcherBase< A, E > const ©)=default |
| virtual std::string | failure_message () |
| Get message to give on match failure. | |
| virtual std::string | failure_message_when_negated () |
| Get message to give on match failure when negated. | |
| virtual std::string | description () |
| Get the description of the Matcher. | |
| +constexpr A & | actual () |
| +E & | expected () |
| +Expectation< A > & | expectation () |
| virtual MatcherBase & | set_message (std::string message) |
| Set a custom failure message. | |
| +std::source_location | get_location () const |
| Result | run () |
| Run the Matcher object. | |
| +virtual bool | negated_match () |
| Public Member Functions inherited from CppSpec::Pretty | |
| +std::string | name (const std::string &name) const |
| +std::string | name_to_sentence (const std::string &name) const |
| template<typename O> | |
| std::string | inspect_object (const O &o) |
| Generate a string of the class and data of an object. | |
+Additional Inherited Members | |
| Public Types inherited from CppSpec::Matchers::MatcherBase< A, E > | |
| +using | expected_t |
| Static Public Member Functions inherited from CppSpec::Pretty | |
| +static std::string | split_words (const std::string &sym) |
| +static std::string | underscore (const std::string &camel_cased_word) |
| +static std::string | last (const std::string &s, char delim) |
| +static std::string | improve_hash_formatting (const std::string &inspect_string) |
| template<Util::is_streamable T> | |
| static std::string | to_word (const T &item) |
| Formats an object as a string when operator<< is available. | |
| +template<typename T> | |
| static std::string | to_word (const T &item) |
| +template<typename T> | |
| static std::string | to_word_type (const T &item) |
| template<typename A, typename E> | |
| static std::string | to_word (const Matchers::MatcherBase< A, E > &matcher) |
| template<class T> | |
| static std::string | to_sentence (const T &item) |
| Take a single object and format it as a sentance. | |
| template<class T> | |
| static std::string | to_sentence (const std::vector< T > &words) |
| +template<typename T> | |
| static std::string | inspect_object (const T &object) |
| +template<> | |
| std::string | to_word (const bool &item) |
| template<> | |
| std::string | inspect_object (const char *const &o) |
| Specialization for C-style strings. | |
| Public Attributes inherited from CppSpec::Pretty | |
| +std::string | _name |
| Protected Attributes inherited from CppSpec::Matchers::MatcherBase< A, E > | |
| +E | expected_ |
| +Expectation< A > & | expectation_ |
+
|
+ +inlineoverridevirtual | +
Implements CppSpec::Matchers::MatcherBase< A, E >.
+ +
+
|
+ +inlineoverridevirtual | +
Reimplemented from CppSpec::Matchers::MatcherBase< A, E >.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Matchers::BeLessThan< A, E >, including all inherited members.
+| _name (defined in CppSpec::Pretty) | CppSpec::Pretty | |
| BeLessThan(Expectation< A > &expectation, E expected) (defined in CppSpec::Matchers::BeLessThan< A, E >) | CppSpec::Matchers::BeLessThan< A, E > | inline |
| description() | CppSpec::Matchers::MatcherBase< A, E > | virtual |
| failure_message() | CppSpec::Matchers::MatcherBase< A, E > | virtual |
| failure_message_when_negated() | CppSpec::Matchers::MatcherBase< A, E > | virtual |
| improve_hash_formatting(const std::string &inspect_string) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| inspect_object(const T &object) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| inspect_object(const O &o) | CppSpec::Pretty | inline |
| inspect_object(const char *const &o) | CppSpec::Pretty | inlinestatic |
| last(const std::string &s, char delim) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| match() override (defined in CppSpec::Matchers::BeLessThan< A, E >) | CppSpec::Matchers::BeLessThan< A, E > | inlinevirtual |
| name(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| name_to_sentence(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| run() | CppSpec::Matchers::MatcherBase< A, E > | |
| set_message(std::string message) | CppSpec::Matchers::MatcherBase< A, E > | virtual |
| split_words(const std::string &sym) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_sentence(const T &item) | CppSpec::Pretty | inlinestatic |
| to_sentence(const std::vector< T > &words) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| to_word(const Matchers::MatcherBase< A, E > &matcher) | CppSpec::Pretty | inlinestatic |
| to_word(const bool &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_word_type(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| underscore(const std::string &camel_cased_word) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| verb() override (defined in CppSpec::Matchers::BeLessThan< A, E >) | CppSpec::Matchers::BeLessThan< A, E > | inlinevirtual |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


+Public Member Functions | |
| + | BeLessThan (Expectation< A > &expectation, E expected) |
| bool | match () override |
| std::string | verb () override |
| Public Member Functions inherited from CppSpec::Matchers::MatcherBase< A, E > | |
| + | MatcherBase (MatcherBase< A, E > const ©)=default |
| virtual std::string | failure_message () |
| Get message to give on match failure. | |
| virtual std::string | failure_message_when_negated () |
| Get message to give on match failure when negated. | |
| virtual std::string | description () |
| Get the description of the Matcher. | |
| +constexpr A & | actual () |
| +E & | expected () |
| +Expectation< A > & | expectation () |
| virtual MatcherBase & | set_message (std::string message) |
| Set a custom failure message. | |
| +std::source_location | get_location () const |
| Result | run () |
| Run the Matcher object. | |
| +virtual bool | negated_match () |
| Public Member Functions inherited from CppSpec::Pretty | |
| +std::string | name (const std::string &name) const |
| +std::string | name_to_sentence (const std::string &name) const |
| template<typename O> | |
| std::string | inspect_object (const O &o) |
| Generate a string of the class and data of an object. | |
+Additional Inherited Members | |
| Public Types inherited from CppSpec::Matchers::MatcherBase< A, E > | |
| +using | expected_t |
| Static Public Member Functions inherited from CppSpec::Pretty | |
| +static std::string | split_words (const std::string &sym) |
| +static std::string | underscore (const std::string &camel_cased_word) |
| +static std::string | last (const std::string &s, char delim) |
| +static std::string | improve_hash_formatting (const std::string &inspect_string) |
| template<Util::is_streamable T> | |
| static std::string | to_word (const T &item) |
| Formats an object as a string when operator<< is available. | |
| +template<typename T> | |
| static std::string | to_word (const T &item) |
| +template<typename T> | |
| static std::string | to_word_type (const T &item) |
| template<typename A, typename E> | |
| static std::string | to_word (const Matchers::MatcherBase< A, E > &matcher) |
| template<class T> | |
| static std::string | to_sentence (const T &item) |
| Take a single object and format it as a sentance. | |
| template<class T> | |
| static std::string | to_sentence (const std::vector< T > &words) |
| +template<typename T> | |
| static std::string | inspect_object (const T &object) |
| +template<> | |
| std::string | to_word (const bool &item) |
| template<> | |
| std::string | inspect_object (const char *const &o) |
| Specialization for C-style strings. | |
| Public Attributes inherited from CppSpec::Pretty | |
| +std::string | _name |
| Protected Attributes inherited from CppSpec::Matchers::MatcherBase< A, E > | |
| +E | expected_ |
| +Expectation< A > & | expectation_ |
+
|
+ +inlineoverridevirtual | +
Implements CppSpec::Matchers::MatcherBase< A, E >.
+ +
+
|
+ +inlineoverridevirtual | +
Reimplemented from CppSpec::Matchers::MatcherBase< A, E >.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Matchers::BeNullptr< A >, including all inherited members.
+| _name (defined in CppSpec::Pretty) | CppSpec::Pretty | |
| BeNullptr(Expectation< A > &expectation) (defined in CppSpec::Matchers::BeNullptr< A >) | CppSpec::Matchers::BeNullptr< A > | inlineexplicit |
| description() override | CppSpec::Matchers::BeNullptr< A > | inlinevirtual |
| failure_message() | CppSpec::Matchers::MatcherBase< A, std::nullptr_t > | virtual |
| failure_message_when_negated() | CppSpec::Matchers::MatcherBase< A, std::nullptr_t > | virtual |
| improve_hash_formatting(const std::string &inspect_string) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| inspect_object(const T &object) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| inspect_object(const O &o) | CppSpec::Pretty | inline |
| inspect_object(const char *const &o) | CppSpec::Pretty | inlinestatic |
| last(const std::string &s, char delim) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| match() override (defined in CppSpec::Matchers::BeNullptr< A >) | CppSpec::Matchers::BeNullptr< A > | inlinevirtual |
| name(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| name_to_sentence(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| run() | CppSpec::Matchers::MatcherBase< A, std::nullptr_t > | |
| set_message(std::string message) | CppSpec::Matchers::MatcherBase< A, std::nullptr_t > | virtual |
| split_words(const std::string &sym) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_sentence(const T &item) | CppSpec::Pretty | inlinestatic |
| to_sentence(const std::vector< T > &words) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| to_word(const Matchers::MatcherBase< A, E > &matcher) | CppSpec::Pretty | inlinestatic |
| to_word(const bool &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_word_type(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| underscore(const std::string &camel_cased_word) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| verb() override (defined in CppSpec::Matchers::BeNullptr< A >) | CppSpec::Matchers::BeNullptr< A > | inlinevirtual |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


+Public Member Functions | |
| + | BeNullptr (Expectation< A > &expectation) |
| std::string | verb () override |
| std::string | description () override |
| Get the description of the Matcher. | |
| bool | match () override |
| Public Member Functions inherited from CppSpec::Matchers::MatcherBase< A, std::nullptr_t > | |
| + | MatcherBase (MatcherBase< A, std::nullptr_t > const ©)=default |
| virtual std::string | failure_message () |
| Get message to give on match failure. | |
| virtual std::string | failure_message_when_negated () |
| Get message to give on match failure when negated. | |
| +constexpr A & | actual () |
| +std::nullptr_t & | expected () |
| +Expectation< A > & | expectation () |
| virtual MatcherBase & | set_message (std::string message) |
| Set a custom failure message. | |
| +std::source_location | get_location () const |
| Result | run () |
| Run the Matcher object. | |
| +virtual bool | negated_match () |
| Public Member Functions inherited from CppSpec::Pretty | |
| +std::string | name (const std::string &name) const |
| +std::string | name_to_sentence (const std::string &name) const |
| template<typename O> | |
| std::string | inspect_object (const O &o) |
| Generate a string of the class and data of an object. | |
+Additional Inherited Members | |
| Public Types inherited from CppSpec::Matchers::MatcherBase< A, std::nullptr_t > | |
| +using | expected_t |
| Static Public Member Functions inherited from CppSpec::Pretty | |
| +static std::string | split_words (const std::string &sym) |
| +static std::string | underscore (const std::string &camel_cased_word) |
| +static std::string | last (const std::string &s, char delim) |
| +static std::string | improve_hash_formatting (const std::string &inspect_string) |
| template<Util::is_streamable T> | |
| static std::string | to_word (const T &item) |
| Formats an object as a string when operator<< is available. | |
| +template<typename T> | |
| static std::string | to_word (const T &item) |
| +template<typename T> | |
| static std::string | to_word_type (const T &item) |
| template<typename A, typename E> | |
| static std::string | to_word (const Matchers::MatcherBase< A, E > &matcher) |
| template<class T> | |
| static std::string | to_sentence (const T &item) |
| Take a single object and format it as a sentance. | |
| template<class T> | |
| static std::string | to_sentence (const std::vector< T > &words) |
| +template<typename T> | |
| static std::string | inspect_object (const T &object) |
| +template<> | |
| std::string | to_word (const bool &item) |
| template<> | |
| std::string | inspect_object (const char *const &o) |
| Specialization for C-style strings. | |
| Public Attributes inherited from CppSpec::Pretty | |
| +std::string | _name |
| Protected Attributes inherited from CppSpec::Matchers::MatcherBase< A, std::nullptr_t > | |
| +std::nullptr_t | expected_ |
| +Expectation< A > & | expectation_ |
+
|
+ +inlineoverridevirtual | +
Get the description of the Matcher.
+Reimplemented from CppSpec::Matchers::MatcherBase< A, std::nullptr_t >.
+ +
+
|
+ +inlineoverridevirtual | +
Implements CppSpec::Matchers::MatcherBase< A, std::nullptr_t >.
+ +
+
|
+ +inlineoverridevirtual | +
Reimplemented from CppSpec::Matchers::MatcherBase< A, std::nullptr_t >.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Matchers::BeWithin< A, E >, including all inherited members.
+| _name (defined in CppSpec::Pretty) | CppSpec::Pretty | |
| BeWithin(Expectation< A > &expectation, E tolerance, E value, std::string_view unit) (defined in CppSpec::Matchers::BeWithin< A, E >) | CppSpec::Matchers::BeWithin< A, E > | inline |
| description() override | CppSpec::Matchers::BeWithin< A, E > | virtual |
| failure_message() override | CppSpec::Matchers::BeWithin< A, E > | virtual |
| failure_message_when_negated() override | CppSpec::Matchers::BeWithin< A, E > | virtual |
| improve_hash_formatting(const std::string &inspect_string) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| inspect_object(const T &object) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| inspect_object(const O &o) | CppSpec::Pretty | inline |
| inspect_object(const char *const &o) | CppSpec::Pretty | inlinestatic |
| last(const std::string &s, char delim) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| match() override (defined in CppSpec::Matchers::BeWithin< A, E >) | CppSpec::Matchers::BeWithin< A, E > | virtual |
| name(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| name_to_sentence(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| run() | CppSpec::Matchers::MatcherBase< A, E > | |
| set_message(std::string message) | CppSpec::Matchers::MatcherBase< A, E > | virtual |
| split_words(const std::string &sym) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_sentence(const T &item) | CppSpec::Pretty | inlinestatic |
| to_sentence(const std::vector< T > &words) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| to_word(const Matchers::MatcherBase< A, E > &matcher) | CppSpec::Pretty | inlinestatic |
| to_word(const bool &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_word_type(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| underscore(const std::string &camel_cased_word) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| verb() override (defined in CppSpec::Matchers::BeWithin< A, E >) | CppSpec::Matchers::BeWithin< A, E > | inlinevirtual |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


+Public Member Functions | |
| + | BeWithin (Expectation< A > &expectation, E tolerance, E value, std::string_view unit) |
| bool | match () override |
| std::string | failure_message () override |
| Get message to give on match failure. | |
| std::string | failure_message_when_negated () override |
| Get message to give on match failure when negated. | |
| std::string | description () override |
| Get the description of the Matcher. | |
| std::string | verb () override |
| Public Member Functions inherited from CppSpec::Matchers::MatcherBase< A, E > | |
| + | MatcherBase (MatcherBase< A, E > const ©)=default |
| +constexpr A & | actual () |
| +E & | expected () |
| +Expectation< A > & | expectation () |
| virtual MatcherBase & | set_message (std::string message) |
| Set a custom failure message. | |
| +std::source_location | get_location () const |
| Result | run () |
| Run the Matcher object. | |
| +virtual bool | negated_match () |
| Public Member Functions inherited from CppSpec::Pretty | |
| +std::string | name (const std::string &name) const |
| +std::string | name_to_sentence (const std::string &name) const |
| template<typename O> | |
| std::string | inspect_object (const O &o) |
| Generate a string of the class and data of an object. | |
+Additional Inherited Members | |
| Public Types inherited from CppSpec::Matchers::MatcherBase< A, E > | |
| +using | expected_t |
| Static Public Member Functions inherited from CppSpec::Pretty | |
| +static std::string | split_words (const std::string &sym) |
| +static std::string | underscore (const std::string &camel_cased_word) |
| +static std::string | last (const std::string &s, char delim) |
| +static std::string | improve_hash_formatting (const std::string &inspect_string) |
| template<Util::is_streamable T> | |
| static std::string | to_word (const T &item) |
| Formats an object as a string when operator<< is available. | |
| +template<typename T> | |
| static std::string | to_word (const T &item) |
| +template<typename T> | |
| static std::string | to_word_type (const T &item) |
| template<typename A, typename E> | |
| static std::string | to_word (const Matchers::MatcherBase< A, E > &matcher) |
| template<class T> | |
| static std::string | to_sentence (const T &item) |
| Take a single object and format it as a sentance. | |
| template<class T> | |
| static std::string | to_sentence (const std::vector< T > &words) |
| +template<typename T> | |
| static std::string | inspect_object (const T &object) |
| +template<> | |
| std::string | to_word (const bool &item) |
| template<> | |
| std::string | inspect_object (const char *const &o) |
| Specialization for C-style strings. | |
| Public Attributes inherited from CppSpec::Pretty | |
| +std::string | _name |
| Protected Attributes inherited from CppSpec::Matchers::MatcherBase< A, E > | |
| +E | expected_ |
| +Expectation< A > & | expectation_ |
+
|
+ +overridevirtual | +
Get the description of the Matcher.
+Reimplemented from CppSpec::Matchers::MatcherBase< A, E >.
+ +
+
|
+ +overridevirtual | +
Get message to give on match failure.
+Reimplemented from CppSpec::Matchers::MatcherBase< A, E >.
+ +
+
|
+ +overridevirtual | +
Get message to give on match failure when negated.
+Reimplemented from CppSpec::Matchers::MatcherBase< A, E >.
+ +
+
|
+ +overridevirtual | +
Implements CppSpec::Matchers::MatcherBase< A, E >.
+ +
+
|
+ +inlineoverridevirtual | +
Reimplemented from CppSpec::Matchers::MatcherBase< A, E >.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Matchers::BeWithinHelper< A, E >, including all inherited members.
+| BeWithinHelper(Expectation< A > &expectation, E tolerance) (defined in CppSpec::Matchers::BeWithinHelper< A, E >) | CppSpec::Matchers::BeWithinHelper< A, E > | inline |
| get_message() (defined in CppSpec::Matchers::BeWithinHelper< A, E >) | CppSpec::Matchers::BeWithinHelper< A, E > | inline |
| of(E expected) (defined in CppSpec::Matchers::BeWithinHelper< A, E >) | CppSpec::Matchers::BeWithinHelper< A, E > | |
| percent_of(E expected) (defined in CppSpec::Matchers::BeWithinHelper< A, E >) | CppSpec::Matchers::BeWithinHelper< A, E > | |
| set_message(const std::string &msg) (defined in CppSpec::Matchers::BeWithinHelper< A, E >) | CppSpec::Matchers::BeWithinHelper< A, E > | inline |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
+Public Member Functions | |
| + | BeWithinHelper (Expectation< A > &expectation, E tolerance) |
| +BeWithin< A, E > | of (E expected) |
| +BeWithin< A, E > | percent_of (E expected) |
| +void | set_message (const std::string &msg) |
| +std::string | get_message () |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Matchers::Contain< A, E, U >, including all inherited members.
+| _name (defined in CppSpec::Pretty) | CppSpec::Pretty | |
| actual_collection_includes(U expected_item) (defined in CppSpec::Matchers::ContainBase< A, E, U >) | CppSpec::Matchers::ContainBase< A, E, U > | protected |
| ContainBase(Expectation< A > &expectation, std::initializer_list< U > expected) (defined in CppSpec::Matchers::ContainBase< A, E, U >) | CppSpec::Matchers::ContainBase< A, E, U > | inline |
| ContainBase(Expectation< A > &expectation, U expected) (defined in CppSpec::Matchers::ContainBase< A, E, U >) | CppSpec::Matchers::ContainBase< A, E, U > | inline |
| description() override | CppSpec::Matchers::ContainBase< A, E, U > | virtual |
| diffable() (defined in CppSpec::Matchers::ContainBase< A, E, U >) | CppSpec::Matchers::ContainBase< A, E, U > | inlinevirtual |
| failure_message() override | CppSpec::Matchers::ContainBase< A, E, U > | virtual |
| failure_message_when_negated() override | CppSpec::Matchers::ContainBase< A, E, U > | virtual |
| improve_hash_formatting(const std::string &inspect_string) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| inspect_object(const T &object) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| inspect_object(const O &o) | CppSpec::Pretty | inline |
| inspect_object(const char *const &o) | CppSpec::Pretty | inlinestatic |
| last(const std::string &s, char delim) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| match() override (defined in CppSpec::Matchers::Contain< A, E, U >) | CppSpec::Matchers::Contain< A, E, U > | virtual |
| name(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| name_to_sentence(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| negated_match() override (defined in CppSpec::Matchers::Contain< A, E, U >) | CppSpec::Matchers::Contain< A, E, U > | virtual |
| perform_match(Predicate predicate, Predicate hash_subset_predicate) (defined in CppSpec::Matchers::Contain< A, E, U >) | CppSpec::Matchers::Contain< A, E, U > | protected |
| run() | CppSpec::Matchers::MatcherBase< A, E > | |
| set_message(std::string message) | CppSpec::Matchers::MatcherBase< A, E > | virtual |
| split_words(const std::string &sym) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_sentence(const T &item) | CppSpec::Pretty | inlinestatic |
| to_sentence(const std::vector< T > &words) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| to_word(const Matchers::MatcherBase< A, E > &matcher) | CppSpec::Pretty | inlinestatic |
| to_word(const bool &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_word_type(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| underscore(const std::string &camel_cased_word) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| verb() override (defined in CppSpec::Matchers::ContainBase< A, E, U >) | CppSpec::Matchers::ContainBase< A, E, U > | inlinevirtual |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
#include <contain.hpp>


+Public Member Functions | |
| bool | match () override |
| bool | negated_match () override |
| Public Member Functions inherited from CppSpec::Matchers::ContainBase< A, E, U > | |
| std::string | verb () override |
| std::string | description () override |
| Get the description of the Matcher. | |
| std::string | failure_message () override |
| Get message to give on match failure. | |
| std::string | failure_message_when_negated () override |
| Get message to give on match failure when negated. | |
| +virtual bool | diffable () |
| + | ContainBase (Expectation< A > &expectation, std::initializer_list< U > expected) |
| + | ContainBase (Expectation< A > &expectation, U expected) |
| Public Member Functions inherited from CppSpec::Matchers::MatcherBase< A, E > | |
| + | MatcherBase (MatcherBase< A, E > const ©)=default |
| +constexpr A & | actual () |
| +E & | expected () |
| +Expectation< A > & | expectation () |
| virtual MatcherBase & | set_message (std::string message) |
| Set a custom failure message. | |
| +std::source_location | get_location () const |
| Result | run () |
| Run the Matcher object. | |
| Public Member Functions inherited from CppSpec::Pretty | |
| +std::string | name (const std::string &name) const |
| +std::string | name_to_sentence (const std::string &name) const |
| template<typename O> | |
| std::string | inspect_object (const O &o) |
| Generate a string of the class and data of an object. | |
+Protected Member Functions | |
| +bool | perform_match (Predicate predicate, Predicate hash_subset_predicate) |
| Protected Member Functions inherited from CppSpec::Matchers::ContainBase< A, E, U > | |
| +bool | actual_collection_includes (U expected_item) |
+Additional Inherited Members | |
| Public Types inherited from CppSpec::Matchers::MatcherBase< A, E > | |
| +using | expected_t |
| Static Public Member Functions inherited from CppSpec::Pretty | |
| +static std::string | split_words (const std::string &sym) |
| +static std::string | underscore (const std::string &camel_cased_word) |
| +static std::string | last (const std::string &s, char delim) |
| +static std::string | improve_hash_formatting (const std::string &inspect_string) |
| template<Util::is_streamable T> | |
| static std::string | to_word (const T &item) |
| Formats an object as a string when operator<< is available. | |
| +template<typename T> | |
| static std::string | to_word (const T &item) |
| +template<typename T> | |
| static std::string | to_word_type (const T &item) |
| template<typename A, typename E> | |
| static std::string | to_word (const Matchers::MatcherBase< A, E > &matcher) |
| template<class T> | |
| static std::string | to_sentence (const T &item) |
| Take a single object and format it as a sentance. | |
| template<class T> | |
| static std::string | to_sentence (const std::vector< T > &words) |
| +template<typename T> | |
| static std::string | inspect_object (const T &object) |
| +template<> | |
| std::string | to_word (const bool &item) |
| template<> | |
| std::string | inspect_object (const char *const &o) |
| Specialization for C-style strings. | |
| Public Attributes inherited from CppSpec::Pretty | |
| +std::string | _name |
| Protected Attributes inherited from CppSpec::Matchers::MatcherBase< A, E > | |
| +E | expected_ |
| +Expectation< A > & | expectation_ |
The template specialization of Include that permits matching against a list of elements (i.e. expected({1,2,3,4}).to_include({1,4}) )
+
+
|
+ +overridevirtual | +
Implements CppSpec::Matchers::MatcherBase< A, E >.
+ +
+
|
+ +overridevirtual | +
Reimplemented from CppSpec::Matchers::MatcherBase< A, E >.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Matchers::ContainBase< A, E, U >, including all inherited members.
+| _name (defined in CppSpec::Pretty) | CppSpec::Pretty | |
| actual_collection_includes(U expected_item) (defined in CppSpec::Matchers::ContainBase< A, E, U >) | CppSpec::Matchers::ContainBase< A, E, U > | protected |
| ContainBase(Expectation< A > &expectation, std::initializer_list< U > expected) (defined in CppSpec::Matchers::ContainBase< A, E, U >) | CppSpec::Matchers::ContainBase< A, E, U > | inline |
| ContainBase(Expectation< A > &expectation, U expected) (defined in CppSpec::Matchers::ContainBase< A, E, U >) | CppSpec::Matchers::ContainBase< A, E, U > | inline |
| description() override | CppSpec::Matchers::ContainBase< A, E, U > | virtual |
| diffable() (defined in CppSpec::Matchers::ContainBase< A, E, U >) | CppSpec::Matchers::ContainBase< A, E, U > | inlinevirtual |
| failure_message() override | CppSpec::Matchers::ContainBase< A, E, U > | virtual |
| failure_message_when_negated() override | CppSpec::Matchers::ContainBase< A, E, U > | virtual |
| improve_hash_formatting(const std::string &inspect_string) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| inspect_object(const T &object) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| inspect_object(const O &o) | CppSpec::Pretty | inline |
| inspect_object(const char *const &o) | CppSpec::Pretty | inlinestatic |
| last(const std::string &s, char delim) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| name(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| name_to_sentence(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| run() | CppSpec::Matchers::MatcherBase< A, E > | |
| set_message(std::string message) | CppSpec::Matchers::MatcherBase< A, E > | virtual |
| split_words(const std::string &sym) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_sentence(const T &item) | CppSpec::Pretty | inlinestatic |
| to_sentence(const std::vector< T > &words) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| to_word(const Matchers::MatcherBase< A, E > &matcher) | CppSpec::Pretty | inlinestatic |
| to_word(const bool &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_word_type(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| underscore(const std::string &camel_cased_word) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| verb() override (defined in CppSpec::Matchers::ContainBase< A, E, U >) | CppSpec::Matchers::ContainBase< A, E, U > | inlinevirtual |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
#include <contain.hpp>


+Public Member Functions | |
| std::string | verb () override |
| std::string | description () override |
| Get the description of the Matcher. | |
| std::string | failure_message () override |
| Get message to give on match failure. | |
| std::string | failure_message_when_negated () override |
| Get message to give on match failure when negated. | |
| +virtual bool | diffable () |
| + | ContainBase (Expectation< A > &expectation, std::initializer_list< U > expected) |
| + | ContainBase (Expectation< A > &expectation, U expected) |
| Public Member Functions inherited from CppSpec::Matchers::MatcherBase< A, E > | |
| + | MatcherBase (MatcherBase< A, E > const ©)=default |
| +constexpr A & | actual () |
| +E & | expected () |
| +Expectation< A > & | expectation () |
| virtual MatcherBase & | set_message (std::string message) |
| Set a custom failure message. | |
| +std::source_location | get_location () const |
| Result | run () |
| Run the Matcher object. | |
| +virtual bool | match ()=0 |
| +virtual bool | negated_match () |
| Public Member Functions inherited from CppSpec::Pretty | |
| +std::string | name (const std::string &name) const |
| +std::string | name_to_sentence (const std::string &name) const |
| template<typename O> | |
| std::string | inspect_object (const O &o) |
| Generate a string of the class and data of an object. | |
+Protected Member Functions | |
| +bool | actual_collection_includes (U expected_item) |
+Additional Inherited Members | |
| Public Types inherited from CppSpec::Matchers::MatcherBase< A, E > | |
| +using | expected_t |
| Static Public Member Functions inherited from CppSpec::Pretty | |
| +static std::string | split_words (const std::string &sym) |
| +static std::string | underscore (const std::string &camel_cased_word) |
| +static std::string | last (const std::string &s, char delim) |
| +static std::string | improve_hash_formatting (const std::string &inspect_string) |
| template<Util::is_streamable T> | |
| static std::string | to_word (const T &item) |
| Formats an object as a string when operator<< is available. | |
| +template<typename T> | |
| static std::string | to_word (const T &item) |
| +template<typename T> | |
| static std::string | to_word_type (const T &item) |
| template<typename A, typename E> | |
| static std::string | to_word (const Matchers::MatcherBase< A, E > &matcher) |
| template<class T> | |
| static std::string | to_sentence (const T &item) |
| Take a single object and format it as a sentance. | |
| template<class T> | |
| static std::string | to_sentence (const std::vector< T > &words) |
| +template<typename T> | |
| static std::string | inspect_object (const T &object) |
| +template<> | |
| std::string | to_word (const bool &item) |
| template<> | |
| std::string | inspect_object (const char *const &o) |
| Specialization for C-style strings. | |
| Public Attributes inherited from CppSpec::Pretty | |
| +std::string | _name |
| Protected Attributes inherited from CppSpec::Matchers::MatcherBase< A, E > | |
| +E | expected_ |
| +Expectation< A > & | expectation_ |
The abstract base class for the Include matcher. See template specializations below.
+
+
|
+ +overridevirtual | +
Get the description of the Matcher.
+Reimplemented from CppSpec::Matchers::MatcherBase< A, E >.
+ +
+
|
+ +overridevirtual | +
Get message to give on match failure.
+Reimplemented from CppSpec::Matchers::MatcherBase< A, E >.
+ +
+
|
+ +overridevirtual | +
Get message to give on match failure when negated.
+Reimplemented from CppSpec::Matchers::MatcherBase< A, E >.
+ +
+
|
+ +inlineoverridevirtual | +
Reimplemented from CppSpec::Matchers::MatcherBase< A, E >.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Matchers::Contain< A, U, U >, including all inherited members.
+| _name (defined in CppSpec::Pretty) | CppSpec::Pretty | |
| Contain(Expectation< A > &expectation, U expected) (defined in CppSpec::Matchers::Contain< A, U, U >) | CppSpec::Matchers::Contain< A, U, U > | inline |
| description() override | CppSpec::Matchers::ContainBase< A, U, U > | virtual |
| failure_message() override | CppSpec::Matchers::ContainBase< A, U, U > | virtual |
| failure_message_when_negated() override | CppSpec::Matchers::ContainBase< A, U, U > | virtual |
| improve_hash_formatting(const std::string &inspect_string) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| inspect_object(const T &object) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| inspect_object(const O &o) | CppSpec::Pretty | inline |
| inspect_object(const char *const &o) | CppSpec::Pretty | inlinestatic |
| last(const std::string &s, char delim) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| match() override (defined in CppSpec::Matchers::Contain< A, U, U >) | CppSpec::Matchers::Contain< A, U, U > | virtual |
| name(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| name_to_sentence(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| negated_match() override (defined in CppSpec::Matchers::Contain< A, U, U >) | CppSpec::Matchers::Contain< A, U, U > | virtual |
| perform_match(Predicate predicate, Predicate hash_subset_predicate) (defined in CppSpec::Matchers::Contain< A, U, U >) | CppSpec::Matchers::Contain< A, U, U > | protected |
| run() | CppSpec::Matchers::MatcherBase< A, U > | |
| set_message(std::string message) | CppSpec::Matchers::MatcherBase< A, U > | virtual |
| split_words(const std::string &sym) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_sentence(const T &item) | CppSpec::Pretty | inlinestatic |
| to_sentence(const std::vector< T > &words) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| to_word(const Matchers::MatcherBase< A, E > &matcher) | CppSpec::Pretty | inlinestatic |
| to_word(const bool &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_word_type(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| underscore(const std::string &camel_cased_word) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
#include <contain.hpp>


+Public Member Functions | |
| + | Contain (Expectation< A > &expectation, U expected) |
| bool | match () override |
| bool | negated_match () override |
| Public Member Functions inherited from CppSpec::Matchers::ContainBase< A, U, U > | |
| std::string | verb () override |
| std::string | description () override |
| Get the description of the Matcher. | |
| std::string | failure_message () override |
| Get message to give on match failure. | |
| std::string | failure_message_when_negated () override |
| Get message to give on match failure when negated. | |
| +virtual bool | diffable () |
| + | ContainBase (Expectation< A > &expectation, std::initializer_list< U > expected) |
| Public Member Functions inherited from CppSpec::Matchers::MatcherBase< A, U > | |
| + | MatcherBase (MatcherBase< A, U > const ©)=default |
| +constexpr A & | actual () |
| +U & | expected () |
| +Expectation< A > & | expectation () |
| virtual MatcherBase & | set_message (std::string message) |
| Set a custom failure message. | |
| +std::source_location | get_location () const |
| Result | run () |
| Run the Matcher object. | |
| Public Member Functions inherited from CppSpec::Pretty | |
| +std::string | name (const std::string &name) const |
| +std::string | name_to_sentence (const std::string &name) const |
| template<typename O> | |
| std::string | inspect_object (const O &o) |
| Generate a string of the class and data of an object. | |
+Protected Member Functions | |
| +bool | perform_match (Predicate predicate, Predicate hash_subset_predicate) |
| Protected Member Functions inherited from CppSpec::Matchers::ContainBase< A, U, U > | |
| +bool | actual_collection_includes (U expected_item) |
+Additional Inherited Members | |
| Public Types inherited from CppSpec::Matchers::MatcherBase< A, U > | |
| +using | expected_t |
| Static Public Member Functions inherited from CppSpec::Pretty | |
| +static std::string | split_words (const std::string &sym) |
| +static std::string | underscore (const std::string &camel_cased_word) |
| +static std::string | last (const std::string &s, char delim) |
| +static std::string | improve_hash_formatting (const std::string &inspect_string) |
| template<Util::is_streamable T> | |
| static std::string | to_word (const T &item) |
| Formats an object as a string when operator<< is available. | |
| +template<typename T> | |
| static std::string | to_word (const T &item) |
| +template<typename T> | |
| static std::string | to_word_type (const T &item) |
| template<typename A, typename E> | |
| static std::string | to_word (const Matchers::MatcherBase< A, E > &matcher) |
| template<class T> | |
| static std::string | to_sentence (const T &item) |
| Take a single object and format it as a sentance. | |
| template<class T> | |
| static std::string | to_sentence (const std::vector< T > &words) |
| +template<typename T> | |
| static std::string | inspect_object (const T &object) |
| +template<> | |
| std::string | to_word (const bool &item) |
| template<> | |
| std::string | inspect_object (const char *const &o) |
| Specialization for C-style strings. | |
| Public Attributes inherited from CppSpec::Pretty | |
| +std::string | _name |
| Protected Attributes inherited from CppSpec::Matchers::MatcherBase< A, U > | |
| +U | expected_ |
| +Expectation< A > & | expectation_ |
The template specialization of Include that permits matching of a single element (i.e. expected({1,2,3,4}).to_include(4) )
+
+
|
+ +overridevirtual | +
Implements CppSpec::Matchers::MatcherBase< A, U >.
+ +
+
|
+ +overridevirtual | +
Reimplemented from CppSpec::Matchers::MatcherBase< A, U >.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Matchers::EndWith< A, E >, including all inherited members.
+| _name (defined in CppSpec::Pretty) | CppSpec::Pretty | |
| description() | CppSpec::Matchers::MatcherBase< A, E > | virtual |
| EndWith(Expectation< A > &expectation, E start) (defined in CppSpec::Matchers::EndWith< A, E >) | CppSpec::Matchers::EndWith< A, E > | inline |
| failure_message() | CppSpec::Matchers::MatcherBase< A, E > | virtual |
| failure_message_when_negated() | CppSpec::Matchers::MatcherBase< A, E > | virtual |
| improve_hash_formatting(const std::string &inspect_string) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| inspect_object(const T &object) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| inspect_object(const O &o) | CppSpec::Pretty | inline |
| inspect_object(const char *const &o) | CppSpec::Pretty | inlinestatic |
| last(const std::string &s, char delim) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| match() override (defined in CppSpec::Matchers::EndWith< A, E >) | CppSpec::Matchers::EndWith< A, E > | inlinevirtual |
| name(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| name_to_sentence(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| run() | CppSpec::Matchers::MatcherBase< A, E > | |
| set_message(std::string message) | CppSpec::Matchers::MatcherBase< A, E > | virtual |
| split_words(const std::string &sym) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_sentence(const T &item) | CppSpec::Pretty | inlinestatic |
| to_sentence(const std::vector< T > &words) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| to_word(const Matchers::MatcherBase< A, E > &matcher) | CppSpec::Pretty | inlinestatic |
| to_word(const bool &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_word_type(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| underscore(const std::string &camel_cased_word) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| verb() override (defined in CppSpec::Matchers::EndWith< A, E >) | CppSpec::Matchers::EndWith< A, E > | inlinevirtual |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


+Public Member Functions | |
| + | EndWith (Expectation< A > &expectation, E start) |
| std::string | verb () override |
| bool | match () override |
| Public Member Functions inherited from CppSpec::Matchers::MatcherBase< A, E > | |
| + | MatcherBase (MatcherBase< A, E > const ©)=default |
| virtual std::string | failure_message () |
| Get message to give on match failure. | |
| virtual std::string | failure_message_when_negated () |
| Get message to give on match failure when negated. | |
| virtual std::string | description () |
| Get the description of the Matcher. | |
| +constexpr A & | actual () |
| +E & | expected () |
| +Expectation< A > & | expectation () |
| virtual MatcherBase & | set_message (std::string message) |
| Set a custom failure message. | |
| +std::source_location | get_location () const |
| Result | run () |
| Run the Matcher object. | |
| +virtual bool | negated_match () |
| Public Member Functions inherited from CppSpec::Pretty | |
| +std::string | name (const std::string &name) const |
| +std::string | name_to_sentence (const std::string &name) const |
| template<typename O> | |
| std::string | inspect_object (const O &o) |
| Generate a string of the class and data of an object. | |
+Additional Inherited Members | |
| Public Types inherited from CppSpec::Matchers::MatcherBase< A, E > | |
| +using | expected_t |
| Static Public Member Functions inherited from CppSpec::Pretty | |
| +static std::string | split_words (const std::string &sym) |
| +static std::string | underscore (const std::string &camel_cased_word) |
| +static std::string | last (const std::string &s, char delim) |
| +static std::string | improve_hash_formatting (const std::string &inspect_string) |
| template<Util::is_streamable T> | |
| static std::string | to_word (const T &item) |
| Formats an object as a string when operator<< is available. | |
| +template<typename T> | |
| static std::string | to_word (const T &item) |
| +template<typename T> | |
| static std::string | to_word_type (const T &item) |
| template<typename A, typename E> | |
| static std::string | to_word (const Matchers::MatcherBase< A, E > &matcher) |
| template<class T> | |
| static std::string | to_sentence (const T &item) |
| Take a single object and format it as a sentance. | |
| template<class T> | |
| static std::string | to_sentence (const std::vector< T > &words) |
| +template<typename T> | |
| static std::string | inspect_object (const T &object) |
| +template<> | |
| std::string | to_word (const bool &item) |
| template<> | |
| std::string | inspect_object (const char *const &o) |
| Specialization for C-style strings. | |
| Public Attributes inherited from CppSpec::Pretty | |
| +std::string | _name |
| Protected Attributes inherited from CppSpec::Matchers::MatcherBase< A, E > | |
| +E | expected_ |
| +Expectation< A > & | expectation_ |
+
|
+ +inlineoverridevirtual | +
Implements CppSpec::Matchers::MatcherBase< A, E >.
+ +
+
|
+ +inlineoverridevirtual | +
Reimplemented from CppSpec::Matchers::MatcherBase< A, E >.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Matchers::Equal< A, E >, including all inherited members.
+| _name (defined in CppSpec::Pretty) | CppSpec::Pretty | |
| actual_inspected() (defined in CppSpec::Matchers::Equal< A, E >) | CppSpec::Matchers::Equal< A, E > | protected |
| description() | CppSpec::Matchers::MatcherBase< A, E > | virtual |
| diffable() (defined in CppSpec::Matchers::Equal< A, E >) | CppSpec::Matchers::Equal< A, E > | |
| Equal(Expectation< A > &expectation, E expected) (defined in CppSpec::Matchers::Equal< A, E >) | CppSpec::Matchers::Equal< A, E > | inline |
| expected_is_a_literal() (defined in CppSpec::Matchers::Equal< A, E >) | CppSpec::Matchers::Equal< A, E > | protected |
| failure_message() override | CppSpec::Matchers::Equal< A, E > | virtual |
| failure_message_when_negated() override | CppSpec::Matchers::Equal< A, E > | virtual |
| improve_hash_formatting(const std::string &inspect_string) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| inspect_object(const T &object) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| inspect_object(const O &o) | CppSpec::Pretty | inline |
| inspect_object(const char *const &o) | CppSpec::Pretty | inlinestatic |
| last(const std::string &s, char delim) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| match() override (defined in CppSpec::Matchers::Equal< A, E >) | CppSpec::Matchers::Equal< A, E > | protectedvirtual |
| name(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| name_to_sentence(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| run() | CppSpec::Matchers::MatcherBase< A, E > | |
| set_message(std::string message) | CppSpec::Matchers::MatcherBase< A, E > | virtual |
| simple_failure_message() (defined in CppSpec::Matchers::Equal< A, E >) | CppSpec::Matchers::Equal< A, E > | protected |
| split_words(const std::string &sym) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_sentence(const T &item) | CppSpec::Pretty | inlinestatic |
| to_sentence(const std::vector< T > &words) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| to_word(const Matchers::MatcherBase< A, E > &matcher) | CppSpec::Pretty | inlinestatic |
| to_word(const bool &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_word_type(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| underscore(const std::string &camel_cased_word) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| verb() override (defined in CppSpec::Matchers::Equal< A, E >) | CppSpec::Matchers::Equal< A, E > | inlinevirtual |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
The equal matcher. + More...
+ +#include <equal.hpp>


+Public Member Functions | |
| + | Equal (Expectation< A > &expectation, E expected) |
| std::string | verb () override |
| std::string | failure_message () override |
| Get message to give on match failure. | |
| std::string | failure_message_when_negated () override |
| Get message to give on match failure when negated. | |
| +bool | diffable () |
| Public Member Functions inherited from CppSpec::Matchers::MatcherBase< A, E > | |
| + | MatcherBase (MatcherBase< A, E > const ©)=default |
| virtual std::string | description () |
| Get the description of the Matcher. | |
| +constexpr A & | actual () |
| +E & | expected () |
| +Expectation< A > & | expectation () |
| virtual MatcherBase & | set_message (std::string message) |
| Set a custom failure message. | |
| +std::source_location | get_location () const |
| Result | run () |
| Run the Matcher object. | |
| +virtual bool | negated_match () |
| Public Member Functions inherited from CppSpec::Pretty | |
| +std::string | name (const std::string &name) const |
| +std::string | name_to_sentence (const std::string &name) const |
| template<typename O> | |
| std::string | inspect_object (const O &o) |
| Generate a string of the class and data of an object. | |
+Protected Member Functions | |
| bool | match () override |
| +bool | expected_is_a_literal () |
| +std::string | actual_inspected () |
| +std::string | simple_failure_message () |
+Additional Inherited Members | |
| Public Types inherited from CppSpec::Matchers::MatcherBase< A, E > | |
| +using | expected_t |
| Static Public Member Functions inherited from CppSpec::Pretty | |
| +static std::string | split_words (const std::string &sym) |
| +static std::string | underscore (const std::string &camel_cased_word) |
| +static std::string | last (const std::string &s, char delim) |
| +static std::string | improve_hash_formatting (const std::string &inspect_string) |
| template<Util::is_streamable T> | |
| static std::string | to_word (const T &item) |
| Formats an object as a string when operator<< is available. | |
| +template<typename T> | |
| static std::string | to_word (const T &item) |
| +template<typename T> | |
| static std::string | to_word_type (const T &item) |
| template<typename A, typename E> | |
| static std::string | to_word (const Matchers::MatcherBase< A, E > &matcher) |
| template<class T> | |
| static std::string | to_sentence (const T &item) |
| Take a single object and format it as a sentance. | |
| template<class T> | |
| static std::string | to_sentence (const std::vector< T > &words) |
| +template<typename T> | |
| static std::string | inspect_object (const T &object) |
| +template<> | |
| std::string | to_word (const bool &item) |
| template<> | |
| std::string | inspect_object (const char *const &o) |
| Specialization for C-style strings. | |
| Public Attributes inherited from CppSpec::Pretty | |
| +std::string | _name |
| Protected Attributes inherited from CppSpec::Matchers::MatcherBase< A, E > | |
| +E | expected_ |
| +Expectation< A > & | expectation_ |
The equal matcher.
+| A | the type of the actual value |
| E | the type of the expected value |
+
|
+ +overridevirtual | +
Get message to give on match failure.
+Reimplemented from CppSpec::Matchers::MatcherBase< A, E >.
+ +
+
|
+ +overridevirtual | +
Get message to give on match failure when negated.
+Reimplemented from CppSpec::Matchers::MatcherBase< A, E >.
+ +
+
|
+ +overrideprotectedvirtual | +
Implements CppSpec::Matchers::MatcherBase< A, E >.
+ +
+
|
+ +inlineoverridevirtual | +
Reimplemented from CppSpec::Matchers::MatcherBase< A, E >.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Matchers::Fail< A >, including all inherited members.
+| _name (defined in CppSpec::Pretty) | CppSpec::Pretty | |
| description() | CppSpec::Matchers::MatcherBase< A, void * > | virtual |
| Fail(Expectation< A > &expectation) (defined in CppSpec::Matchers::Fail< A >) | CppSpec::Matchers::Fail< A > | inlineexplicit |
| failure_message() | CppSpec::Matchers::MatcherBase< A, void * > | virtual |
| failure_message_when_negated() | CppSpec::Matchers::MatcherBase< A, void * > | virtual |
| improve_hash_formatting(const std::string &inspect_string) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| inspect_object(const T &object) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| inspect_object(const O &o) | CppSpec::Pretty | inline |
| inspect_object(const char *const &o) | CppSpec::Pretty | inlinestatic |
| last(const std::string &s, char delim) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| match() override (defined in CppSpec::Matchers::Fail< A >) | CppSpec::Matchers::Fail< A > | inlinevirtual |
| name(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| name_to_sentence(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| run() | CppSpec::Matchers::MatcherBase< A, void * > | |
| set_message(std::string message) | CppSpec::Matchers::MatcherBase< A, void * > | virtual |
| split_words(const std::string &sym) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_sentence(const T &item) | CppSpec::Pretty | inlinestatic |
| to_sentence(const std::vector< T > &words) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| to_word(const Matchers::MatcherBase< A, E > &matcher) | CppSpec::Pretty | inlinestatic |
| to_word(const bool &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_word_type(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| underscore(const std::string &camel_cased_word) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| verb() override (defined in CppSpec::Matchers::Fail< A >) | CppSpec::Matchers::Fail< A > | inlinevirtual |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


+Public Member Functions | |
| + | Fail (Expectation< A > &expectation) |
| std::string | verb () override |
| bool | match () override |
| Public Member Functions inherited from CppSpec::Matchers::MatcherBase< A, void * > | |
| + | MatcherBase (MatcherBase< A, void * > const ©)=default |
| virtual std::string | failure_message () |
| Get message to give on match failure. | |
| virtual std::string | failure_message_when_negated () |
| Get message to give on match failure when negated. | |
| virtual std::string | description () |
| Get the description of the Matcher. | |
| +constexpr A & | actual () |
| +void *& | expected () |
| +Expectation< A > & | expectation () |
| virtual MatcherBase & | set_message (std::string message) |
| Set a custom failure message. | |
| +std::source_location | get_location () const |
| Result | run () |
| Run the Matcher object. | |
| +virtual bool | negated_match () |
| Public Member Functions inherited from CppSpec::Pretty | |
| +std::string | name (const std::string &name) const |
| +std::string | name_to_sentence (const std::string &name) const |
| template<typename O> | |
| std::string | inspect_object (const O &o) |
| Generate a string of the class and data of an object. | |
+Additional Inherited Members | |
| Public Types inherited from CppSpec::Matchers::MatcherBase< A, void * > | |
| +using | expected_t |
| Static Public Member Functions inherited from CppSpec::Pretty | |
| +static std::string | split_words (const std::string &sym) |
| +static std::string | underscore (const std::string &camel_cased_word) |
| +static std::string | last (const std::string &s, char delim) |
| +static std::string | improve_hash_formatting (const std::string &inspect_string) |
| template<Util::is_streamable T> | |
| static std::string | to_word (const T &item) |
| Formats an object as a string when operator<< is available. | |
| +template<typename T> | |
| static std::string | to_word (const T &item) |
| +template<typename T> | |
| static std::string | to_word_type (const T &item) |
| template<typename A, typename E> | |
| static std::string | to_word (const Matchers::MatcherBase< A, E > &matcher) |
| template<class T> | |
| static std::string | to_sentence (const T &item) |
| Take a single object and format it as a sentance. | |
| template<class T> | |
| static std::string | to_sentence (const std::vector< T > &words) |
| +template<typename T> | |
| static std::string | inspect_object (const T &object) |
| +template<> | |
| std::string | to_word (const bool &item) |
| template<> | |
| std::string | inspect_object (const char *const &o) |
| Specialization for C-style strings. | |
| Public Attributes inherited from CppSpec::Pretty | |
| +std::string | _name |
| Protected Attributes inherited from CppSpec::Matchers::MatcherBase< A, void * > | |
| +void * | expected_ |
| +Expectation< A > & | expectation_ |
+
|
+ +inlineoverridevirtual | +
Implements CppSpec::Matchers::MatcherBase< A, void * >.
+ +
+
|
+ +inlineoverridevirtual | +
Reimplemented from CppSpec::Matchers::MatcherBase< A, void * >.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Matchers::FailWith< A >, including all inherited members.
+| _name (defined in CppSpec::Pretty) | CppSpec::Pretty | |
| description() override | CppSpec::Matchers::FailWith< A > | inlinevirtual |
| failure_message() | CppSpec::Matchers::MatcherBase< A, std::string > | virtual |
| failure_message_when_negated() | CppSpec::Matchers::MatcherBase< A, std::string > | virtual |
| FailWith(Expectation< A > &expectation, std::string expected) (defined in CppSpec::Matchers::FailWith< A >) | CppSpec::Matchers::FailWith< A > | inline |
| improve_hash_formatting(const std::string &inspect_string) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| inspect_object(const T &object) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| inspect_object(const O &o) | CppSpec::Pretty | inline |
| inspect_object(const char *const &o) | CppSpec::Pretty | inlinestatic |
| last(const std::string &s, char delim) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| match() override (defined in CppSpec::Matchers::FailWith< A >) | CppSpec::Matchers::FailWith< A > | inlinevirtual |
| name(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| name_to_sentence(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| run() | CppSpec::Matchers::MatcherBase< A, std::string > | |
| set_message(std::string message) | CppSpec::Matchers::MatcherBase< A, std::string > | virtual |
| split_words(const std::string &sym) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_sentence(const T &item) | CppSpec::Pretty | inlinestatic |
| to_sentence(const std::vector< T > &words) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| to_word(const Matchers::MatcherBase< A, E > &matcher) | CppSpec::Pretty | inlinestatic |
| to_word(const bool &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_word_type(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| underscore(const std::string &camel_cased_word) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| verb() override (defined in CppSpec::Matchers::FailWith< A >) | CppSpec::Matchers::FailWith< A > | inlinevirtual |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


+Public Member Functions | |
| + | FailWith (Expectation< A > &expectation, std::string expected) |
| std::string | verb () override |
| std::string | description () override |
| Get the description of the Matcher. | |
| bool | match () override |
| Public Member Functions inherited from CppSpec::Matchers::MatcherBase< A, std::string > | |
| + | MatcherBase (MatcherBase< A, std::string > const ©)=default |
| virtual std::string | failure_message () |
| Get message to give on match failure. | |
| virtual std::string | failure_message_when_negated () |
| Get message to give on match failure when negated. | |
| +constexpr A & | actual () |
| +std::string & | expected () |
| +Expectation< A > & | expectation () |
| virtual MatcherBase & | set_message (std::string message) |
| Set a custom failure message. | |
| +std::source_location | get_location () const |
| Result | run () |
| Run the Matcher object. | |
| +virtual bool | negated_match () |
| Public Member Functions inherited from CppSpec::Pretty | |
| +std::string | name (const std::string &name) const |
| +std::string | name_to_sentence (const std::string &name) const |
| template<typename O> | |
| std::string | inspect_object (const O &o) |
| Generate a string of the class and data of an object. | |
+Additional Inherited Members | |
| Public Types inherited from CppSpec::Matchers::MatcherBase< A, std::string > | |
| +using | expected_t |
| Static Public Member Functions inherited from CppSpec::Pretty | |
| +static std::string | split_words (const std::string &sym) |
| +static std::string | underscore (const std::string &camel_cased_word) |
| +static std::string | last (const std::string &s, char delim) |
| +static std::string | improve_hash_formatting (const std::string &inspect_string) |
| template<Util::is_streamable T> | |
| static std::string | to_word (const T &item) |
| Formats an object as a string when operator<< is available. | |
| +template<typename T> | |
| static std::string | to_word (const T &item) |
| +template<typename T> | |
| static std::string | to_word_type (const T &item) |
| template<typename A, typename E> | |
| static std::string | to_word (const Matchers::MatcherBase< A, E > &matcher) |
| template<class T> | |
| static std::string | to_sentence (const T &item) |
| Take a single object and format it as a sentance. | |
| template<class T> | |
| static std::string | to_sentence (const std::vector< T > &words) |
| +template<typename T> | |
| static std::string | inspect_object (const T &object) |
| +template<> | |
| std::string | to_word (const bool &item) |
| template<> | |
| std::string | inspect_object (const char *const &o) |
| Specialization for C-style strings. | |
| Public Attributes inherited from CppSpec::Pretty | |
| +std::string | _name |
| Protected Attributes inherited from CppSpec::Matchers::MatcherBase< A, std::string > | |
| +std::string | expected_ |
| +Expectation< A > & | expectation_ |
+
|
+ +inlineoverridevirtual | +
Get the description of the Matcher.
+Reimplemented from CppSpec::Matchers::MatcherBase< A, std::string >.
+ +
+
|
+ +inlineoverridevirtual | +
Implements CppSpec::Matchers::MatcherBase< A, std::string >.
+ +
+
|
+ +inlineoverridevirtual | +
Reimplemented from CppSpec::Matchers::MatcherBase< A, std::string >.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Matchers::HaveError< T >, including all inherited members.
+| _name (defined in CppSpec::Pretty) | CppSpec::Pretty | |
| description() override | CppSpec::Matchers::HaveError< T > | inlinevirtual |
| failure_message() | CppSpec::Matchers::MatcherBase< T, void * > | virtual |
| failure_message_when_negated() | CppSpec::Matchers::MatcherBase< T, void * > | virtual |
| HaveError(Expectation< T > &expectation) (defined in CppSpec::Matchers::HaveError< T >) | CppSpec::Matchers::HaveError< T > | inline |
| improve_hash_formatting(const std::string &inspect_string) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| inspect_object(const T &object) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| inspect_object(const O &o) | CppSpec::Pretty | inline |
| inspect_object(const char *const &o) | CppSpec::Pretty | inlinestatic |
| last(const std::string &s, char delim) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| match() override (defined in CppSpec::Matchers::HaveError< T >) | CppSpec::Matchers::HaveError< T > | inlinevirtual |
| name(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| name_to_sentence(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| run() | CppSpec::Matchers::MatcherBase< T, void * > | |
| set_message(std::string message) | CppSpec::Matchers::MatcherBase< T, void * > | virtual |
| split_words(const std::string &sym) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_sentence(const T &item) | CppSpec::Pretty | inlinestatic |
| to_sentence(const std::vector< T > &words) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| to_word(const Matchers::MatcherBase< A, E > &matcher) | CppSpec::Pretty | inlinestatic |
| to_word(const bool &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_word_type(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| underscore(const std::string &camel_cased_word) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| verb() override (defined in CppSpec::Matchers::HaveError< T >) | CppSpec::Matchers::HaveError< T > | inlinevirtual |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


+Public Member Functions | |
| + | HaveError (Expectation< T > &expectation) |
| std::string | verb () override |
| std::string | description () override |
| Get the description of the Matcher. | |
| bool | match () override |
| Public Member Functions inherited from CppSpec::Matchers::MatcherBase< T, void * > | |
| + | MatcherBase (MatcherBase< T, void * > const ©)=default |
| virtual std::string | failure_message () |
| Get message to give on match failure. | |
| virtual std::string | failure_message_when_negated () |
| Get message to give on match failure when negated. | |
| +constexpr T & | actual () |
| +void *& | expected () |
| +Expectation< T > & | expectation () |
| virtual MatcherBase & | set_message (std::string message) |
| Set a custom failure message. | |
| +std::source_location | get_location () const |
| Result | run () |
| Run the Matcher object. | |
| +virtual bool | negated_match () |
| Public Member Functions inherited from CppSpec::Pretty | |
| +std::string | name (const std::string &name) const |
| +std::string | name_to_sentence (const std::string &name) const |
| template<typename O> | |
| std::string | inspect_object (const O &o) |
| Generate a string of the class and data of an object. | |
+Additional Inherited Members | |
| Public Types inherited from CppSpec::Matchers::MatcherBase< T, void * > | |
| +using | expected_t |
| Static Public Member Functions inherited from CppSpec::Pretty | |
| +static std::string | split_words (const std::string &sym) |
| +static std::string | underscore (const std::string &camel_cased_word) |
| +static std::string | last (const std::string &s, char delim) |
| +static std::string | improve_hash_formatting (const std::string &inspect_string) |
| template<Util::is_streamable T> | |
| static std::string | to_word (const T &item) |
| Formats an object as a string when operator<< is available. | |
| +template<typename T> | |
| static std::string | to_word (const T &item) |
| +template<typename T> | |
| static std::string | to_word_type (const T &item) |
| template<typename A, typename E> | |
| static std::string | to_word (const Matchers::MatcherBase< A, E > &matcher) |
| template<class T> | |
| static std::string | to_sentence (const T &item) |
| Take a single object and format it as a sentance. | |
| template<class T> | |
| static std::string | to_sentence (const std::vector< T > &words) |
| +template<typename T> | |
| static std::string | inspect_object (const T &object) |
| +template<> | |
| std::string | to_word (const bool &item) |
| template<> | |
| std::string | inspect_object (const char *const &o) |
| Specialization for C-style strings. | |
| Public Attributes inherited from CppSpec::Pretty | |
| +std::string | _name |
| Protected Attributes inherited from CppSpec::Matchers::MatcherBase< T, void * > | |
| +void * | expected_ |
| +Expectation< T > & | expectation_ |
+
|
+ +inlineoverridevirtual | +
Get the description of the Matcher.
+Reimplemented from CppSpec::Matchers::MatcherBase< T, void * >.
+ +
+
|
+ +inlineoverridevirtual | +
Implements CppSpec::Matchers::MatcherBase< T, void * >.
+ +
+
|
+ +inlineoverridevirtual | +
Reimplemented from CppSpec::Matchers::MatcherBase< T, void * >.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Matchers::HaveErrorEqualTo< T, E >, including all inherited members.
+| _name (defined in CppSpec::Pretty) | CppSpec::Pretty | |
| description() | CppSpec::Matchers::MatcherBase< T, E > | virtual |
| failure_message() | CppSpec::Matchers::MatcherBase< T, E > | virtual |
| failure_message_when_negated() | CppSpec::Matchers::MatcherBase< T, E > | virtual |
| HaveErrorEqualTo(Expectation< T > &expectation, E expected) (defined in CppSpec::Matchers::HaveErrorEqualTo< T, E >) | CppSpec::Matchers::HaveErrorEqualTo< T, E > | inline |
| improve_hash_formatting(const std::string &inspect_string) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| inspect_object(const T &object) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| inspect_object(const O &o) | CppSpec::Pretty | inline |
| inspect_object(const char *const &o) | CppSpec::Pretty | inlinestatic |
| last(const std::string &s, char delim) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| match() (defined in CppSpec::Matchers::HaveErrorEqualTo< T, E >) | CppSpec::Matchers::HaveErrorEqualTo< T, E > | inlinevirtual |
| name(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| name_to_sentence(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| run() | CppSpec::Matchers::MatcherBase< T, E > | |
| set_message(std::string message) | CppSpec::Matchers::MatcherBase< T, E > | virtual |
| split_words(const std::string &sym) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_sentence(const T &item) | CppSpec::Pretty | inlinestatic |
| to_sentence(const std::vector< T > &words) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| to_word(const Matchers::MatcherBase< A, E > &matcher) | CppSpec::Pretty | inlinestatic |
| to_word(const bool &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_word_type(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| underscore(const std::string &camel_cased_word) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


+Public Member Functions | |
| + | HaveErrorEqualTo (Expectation< T > &expectation, E expected) |
| bool | match () |
| Public Member Functions inherited from CppSpec::Matchers::MatcherBase< T, E > | |
| + | MatcherBase (MatcherBase< T, E > const ©)=default |
| virtual std::string | failure_message () |
| Get message to give on match failure. | |
| virtual std::string | failure_message_when_negated () |
| Get message to give on match failure when negated. | |
| virtual std::string | description () |
| Get the description of the Matcher. | |
| +virtual std::string | verb () |
| +constexpr T & | actual () |
| +E & | expected () |
| +Expectation< T > & | expectation () |
| virtual MatcherBase & | set_message (std::string message) |
| Set a custom failure message. | |
| +std::source_location | get_location () const |
| Result | run () |
| Run the Matcher object. | |
| +virtual bool | negated_match () |
| Public Member Functions inherited from CppSpec::Pretty | |
| +std::string | name (const std::string &name) const |
| +std::string | name_to_sentence (const std::string &name) const |
| template<typename O> | |
| std::string | inspect_object (const O &o) |
| Generate a string of the class and data of an object. | |
+Additional Inherited Members | |
| Public Types inherited from CppSpec::Matchers::MatcherBase< T, E > | |
| +using | expected_t |
| Static Public Member Functions inherited from CppSpec::Pretty | |
| +static std::string | split_words (const std::string &sym) |
| +static std::string | underscore (const std::string &camel_cased_word) |
| +static std::string | last (const std::string &s, char delim) |
| +static std::string | improve_hash_formatting (const std::string &inspect_string) |
| template<Util::is_streamable T> | |
| static std::string | to_word (const T &item) |
| Formats an object as a string when operator<< is available. | |
| +template<typename T> | |
| static std::string | to_word (const T &item) |
| +template<typename T> | |
| static std::string | to_word_type (const T &item) |
| template<typename A, typename E> | |
| static std::string | to_word (const Matchers::MatcherBase< A, E > &matcher) |
| template<class T> | |
| static std::string | to_sentence (const T &item) |
| Take a single object and format it as a sentance. | |
| template<class T> | |
| static std::string | to_sentence (const std::vector< T > &words) |
| +template<typename T> | |
| static std::string | inspect_object (const T &object) |
| +template<> | |
| std::string | to_word (const bool &item) |
| template<> | |
| std::string | inspect_object (const char *const &o) |
| Specialization for C-style strings. | |
| Public Attributes inherited from CppSpec::Pretty | |
| +std::string | _name |
| Protected Attributes inherited from CppSpec::Matchers::MatcherBase< T, E > | |
| +E | expected_ |
| +Expectation< T > & | expectation_ |
+
|
+ +inlinevirtual | +
Implements CppSpec::Matchers::MatcherBase< T, E >.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Matchers::HaveValue< T >, including all inherited members.
+| _name (defined in CppSpec::Pretty) | CppSpec::Pretty | |
| description() override | CppSpec::Matchers::HaveValue< T > | inlinevirtual |
| failure_message() | CppSpec::Matchers::MatcherBase< T, void * > | virtual |
| failure_message_when_negated() | CppSpec::Matchers::MatcherBase< T, void * > | virtual |
| HaveValue(Expectation< T > &expectation) (defined in CppSpec::Matchers::HaveValue< T >) | CppSpec::Matchers::HaveValue< T > | inline |
| improve_hash_formatting(const std::string &inspect_string) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| inspect_object(const T &object) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| inspect_object(const O &o) | CppSpec::Pretty | inline |
| inspect_object(const char *const &o) | CppSpec::Pretty | inlinestatic |
| last(const std::string &s, char delim) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| match() override (defined in CppSpec::Matchers::HaveValue< T >) | CppSpec::Matchers::HaveValue< T > | inlinevirtual |
| name(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| name_to_sentence(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| run() | CppSpec::Matchers::MatcherBase< T, void * > | |
| set_message(std::string message) | CppSpec::Matchers::MatcherBase< T, void * > | virtual |
| split_words(const std::string &sym) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_sentence(const T &item) | CppSpec::Pretty | inlinestatic |
| to_sentence(const std::vector< T > &words) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| to_word(const Matchers::MatcherBase< A, E > &matcher) | CppSpec::Pretty | inlinestatic |
| to_word(const bool &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_word_type(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| underscore(const std::string &camel_cased_word) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| verb() override (defined in CppSpec::Matchers::HaveValue< T >) | CppSpec::Matchers::HaveValue< T > | inlinevirtual |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


+Public Member Functions | |
| + | HaveValue (Expectation< T > &expectation) |
| std::string | verb () override |
| std::string | description () override |
| Get the description of the Matcher. | |
| bool | match () override |
| Public Member Functions inherited from CppSpec::Matchers::MatcherBase< T, void * > | |
| + | MatcherBase (MatcherBase< T, void * > const ©)=default |
| virtual std::string | failure_message () |
| Get message to give on match failure. | |
| virtual std::string | failure_message_when_negated () |
| Get message to give on match failure when negated. | |
| +constexpr T & | actual () |
| +void *& | expected () |
| +Expectation< T > & | expectation () |
| virtual MatcherBase & | set_message (std::string message) |
| Set a custom failure message. | |
| +std::source_location | get_location () const |
| Result | run () |
| Run the Matcher object. | |
| +virtual bool | negated_match () |
| Public Member Functions inherited from CppSpec::Pretty | |
| +std::string | name (const std::string &name) const |
| +std::string | name_to_sentence (const std::string &name) const |
| template<typename O> | |
| std::string | inspect_object (const O &o) |
| Generate a string of the class and data of an object. | |
+Additional Inherited Members | |
| Public Types inherited from CppSpec::Matchers::MatcherBase< T, void * > | |
| +using | expected_t |
| Static Public Member Functions inherited from CppSpec::Pretty | |
| +static std::string | split_words (const std::string &sym) |
| +static std::string | underscore (const std::string &camel_cased_word) |
| +static std::string | last (const std::string &s, char delim) |
| +static std::string | improve_hash_formatting (const std::string &inspect_string) |
| template<Util::is_streamable T> | |
| static std::string | to_word (const T &item) |
| Formats an object as a string when operator<< is available. | |
| +template<typename T> | |
| static std::string | to_word (const T &item) |
| +template<typename T> | |
| static std::string | to_word_type (const T &item) |
| template<typename A, typename E> | |
| static std::string | to_word (const Matchers::MatcherBase< A, E > &matcher) |
| template<class T> | |
| static std::string | to_sentence (const T &item) |
| Take a single object and format it as a sentance. | |
| template<class T> | |
| static std::string | to_sentence (const std::vector< T > &words) |
| +template<typename T> | |
| static std::string | inspect_object (const T &object) |
| +template<> | |
| std::string | to_word (const bool &item) |
| template<> | |
| std::string | inspect_object (const char *const &o) |
| Specialization for C-style strings. | |
| Public Attributes inherited from CppSpec::Pretty | |
| +std::string | _name |
| Protected Attributes inherited from CppSpec::Matchers::MatcherBase< T, void * > | |
| +void * | expected_ |
| +Expectation< T > & | expectation_ |
+
|
+ +inlineoverridevirtual | +
Get the description of the Matcher.
+Reimplemented from CppSpec::Matchers::MatcherBase< T, void * >.
+ +
+
|
+ +inlineoverridevirtual | +
Implements CppSpec::Matchers::MatcherBase< T, void * >.
+ +
+
|
+ +inlineoverridevirtual | +
Reimplemented from CppSpec::Matchers::MatcherBase< T, void * >.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Matchers::HaveValueEqualTo< T, E >, including all inherited members.
+| _name (defined in CppSpec::Pretty) | CppSpec::Pretty | |
| description() | CppSpec::Matchers::MatcherBase< T, E > | virtual |
| failure_message() override | CppSpec::Matchers::Equal< T, E > | virtual |
| failure_message_when_negated() override | CppSpec::Matchers::Equal< T, E > | virtual |
| HaveValueEqualTo(Expectation< T > &expectation, E expected) (defined in CppSpec::Matchers::HaveValueEqualTo< T, E >) | CppSpec::Matchers::HaveValueEqualTo< T, E > | inline |
| improve_hash_formatting(const std::string &inspect_string) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| inspect_object(const T &object) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| inspect_object(const O &o) | CppSpec::Pretty | inline |
| inspect_object(const char *const &o) | CppSpec::Pretty | inlinestatic |
| last(const std::string &s, char delim) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| match() (defined in CppSpec::Matchers::HaveValueEqualTo< T, E >) | CppSpec::Matchers::HaveValueEqualTo< T, E > | inlinevirtual |
| name(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| name_to_sentence(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| run() | CppSpec::Matchers::MatcherBase< T, E > | |
| set_message(std::string message) | CppSpec::Matchers::MatcherBase< T, E > | virtual |
| split_words(const std::string &sym) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_sentence(const T &item) | CppSpec::Pretty | inlinestatic |
| to_sentence(const std::vector< T > &words) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| to_word(const Matchers::MatcherBase< A, E > &matcher) | CppSpec::Pretty | inlinestatic |
| to_word(const bool &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_word_type(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| underscore(const std::string &camel_cased_word) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


+Public Member Functions | |
| + | HaveValueEqualTo (Expectation< T > &expectation, E expected) |
| bool | match () |
| Public Member Functions inherited from CppSpec::Matchers::Equal< T, E > | |
| + | Equal (Expectation< T > &expectation, E expected) |
| std::string | verb () override |
| std::string | failure_message () override |
| Get message to give on match failure. | |
| std::string | failure_message_when_negated () override |
| Get message to give on match failure when negated. | |
| +bool | diffable () |
| Public Member Functions inherited from CppSpec::Matchers::MatcherBase< T, E > | |
| + | MatcherBase (MatcherBase< T, E > const ©)=default |
| virtual std::string | description () |
| Get the description of the Matcher. | |
| +constexpr T & | actual () |
| +E & | expected () |
| +Expectation< T > & | expectation () |
| virtual MatcherBase & | set_message (std::string message) |
| Set a custom failure message. | |
| +std::source_location | get_location () const |
| Result | run () |
| Run the Matcher object. | |
| +virtual bool | negated_match () |
| Public Member Functions inherited from CppSpec::Pretty | |
| +std::string | name (const std::string &name) const |
| +std::string | name_to_sentence (const std::string &name) const |
| template<typename O> | |
| std::string | inspect_object (const O &o) |
| Generate a string of the class and data of an object. | |
+Additional Inherited Members | |
| Public Types inherited from CppSpec::Matchers::MatcherBase< T, E > | |
| +using | expected_t |
| Static Public Member Functions inherited from CppSpec::Pretty | |
| +static std::string | split_words (const std::string &sym) |
| +static std::string | underscore (const std::string &camel_cased_word) |
| +static std::string | last (const std::string &s, char delim) |
| +static std::string | improve_hash_formatting (const std::string &inspect_string) |
| template<Util::is_streamable T> | |
| static std::string | to_word (const T &item) |
| Formats an object as a string when operator<< is available. | |
| +template<typename T> | |
| static std::string | to_word (const T &item) |
| +template<typename T> | |
| static std::string | to_word_type (const T &item) |
| template<typename A, typename E> | |
| static std::string | to_word (const Matchers::MatcherBase< A, E > &matcher) |
| template<class T> | |
| static std::string | to_sentence (const T &item) |
| Take a single object and format it as a sentance. | |
| template<class T> | |
| static std::string | to_sentence (const std::vector< T > &words) |
| +template<typename T> | |
| static std::string | inspect_object (const T &object) |
| +template<> | |
| std::string | to_word (const bool &item) |
| template<> | |
| std::string | inspect_object (const char *const &o) |
| Specialization for C-style strings. | |
| Public Attributes inherited from CppSpec::Pretty | |
| +std::string | _name |
| Protected Member Functions inherited from CppSpec::Matchers::Equal< T, E > | |
| +bool | expected_is_a_literal () |
| +std::string | actual_inspected () |
| +std::string | simple_failure_message () |
| Protected Attributes inherited from CppSpec::Matchers::MatcherBase< T, E > | |
| +E | expected_ |
| +Expectation< T > & | expectation_ |
+
|
+ +inlinevirtual | +
Reimplemented from CppSpec::Matchers::Equal< T, E >.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Matchers::Match< A >, including all inherited members.
+| _name (defined in CppSpec::Pretty) | CppSpec::Pretty | |
| description() | CppSpec::Matchers::MatcherBase< A, std::regex > | virtual |
| failure_message() | CppSpec::Matchers::MatcherBase< A, std::regex > | virtual |
| failure_message_when_negated() | CppSpec::Matchers::MatcherBase< A, std::regex > | virtual |
| improve_hash_formatting(const std::string &inspect_string) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| inspect_object(const T &object) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| inspect_object(const O &o) | CppSpec::Pretty | inline |
| inspect_object(const char *const &o) | CppSpec::Pretty | inlinestatic |
| last(const std::string &s, char delim) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| Match(Expectation< A > &expectation, std::string expected) (defined in CppSpec::Matchers::Match< A >) | CppSpec::Matchers::Match< A > | inlineexplicit |
| Match(Expectation< A > &expectation, std::regex expected) (defined in CppSpec::Matchers::Match< A >) | CppSpec::Matchers::Match< A > | inlineexplicit |
| match() override (defined in CppSpec::Matchers::Match< A >) | CppSpec::Matchers::Match< A > | inlinevirtual |
| name(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| name_to_sentence(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| run() | CppSpec::Matchers::MatcherBase< A, std::regex > | |
| set_message(std::string message) | CppSpec::Matchers::MatcherBase< A, std::regex > | virtual |
| split_words(const std::string &sym) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_sentence(const T &item) | CppSpec::Pretty | inlinestatic |
| to_sentence(const std::vector< T > &words) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| to_word(const Matchers::MatcherBase< A, E > &matcher) | CppSpec::Pretty | inlinestatic |
| to_word(const bool &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_word_type(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| underscore(const std::string &camel_cased_word) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| verb() override (defined in CppSpec::Matchers::Match< A >) | CppSpec::Matchers::Match< A > | inlinevirtual |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


+Public Member Functions | |
| + | Match (Expectation< A > &expectation, std::string expected) |
| + | Match (Expectation< A > &expectation, std::regex expected) |
| std::string | verb () override |
| bool | match () override |
| Public Member Functions inherited from CppSpec::Matchers::MatcherBase< A, std::regex > | |
| + | MatcherBase (MatcherBase< A, std::regex > const ©)=default |
| virtual std::string | failure_message () |
| Get message to give on match failure. | |
| virtual std::string | failure_message_when_negated () |
| Get message to give on match failure when negated. | |
| virtual std::string | description () |
| Get the description of the Matcher. | |
| +constexpr A & | actual () |
| +std::regex & | expected () |
| +Expectation< A > & | expectation () |
| virtual MatcherBase & | set_message (std::string message) |
| Set a custom failure message. | |
| +std::source_location | get_location () const |
| Result | run () |
| Run the Matcher object. | |
| +virtual bool | negated_match () |
| Public Member Functions inherited from CppSpec::Pretty | |
| +std::string | name (const std::string &name) const |
| +std::string | name_to_sentence (const std::string &name) const |
| template<typename O> | |
| std::string | inspect_object (const O &o) |
| Generate a string of the class and data of an object. | |
+Additional Inherited Members | |
| Public Types inherited from CppSpec::Matchers::MatcherBase< A, std::regex > | |
| +using | expected_t |
| Static Public Member Functions inherited from CppSpec::Pretty | |
| +static std::string | split_words (const std::string &sym) |
| +static std::string | underscore (const std::string &camel_cased_word) |
| +static std::string | last (const std::string &s, char delim) |
| +static std::string | improve_hash_formatting (const std::string &inspect_string) |
| template<Util::is_streamable T> | |
| static std::string | to_word (const T &item) |
| Formats an object as a string when operator<< is available. | |
| +template<typename T> | |
| static std::string | to_word (const T &item) |
| +template<typename T> | |
| static std::string | to_word_type (const T &item) |
| template<typename A, typename E> | |
| static std::string | to_word (const Matchers::MatcherBase< A, E > &matcher) |
| template<class T> | |
| static std::string | to_sentence (const T &item) |
| Take a single object and format it as a sentance. | |
| template<class T> | |
| static std::string | to_sentence (const std::vector< T > &words) |
| +template<typename T> | |
| static std::string | inspect_object (const T &object) |
| +template<> | |
| std::string | to_word (const bool &item) |
| template<> | |
| std::string | inspect_object (const char *const &o) |
| Specialization for C-style strings. | |
| Public Attributes inherited from CppSpec::Pretty | |
| +std::string | _name |
| Protected Attributes inherited from CppSpec::Matchers::MatcherBase< A, std::regex > | |
| +std::regex | expected_ |
| +Expectation< A > & | expectation_ |
+
|
+ +inlineoverridevirtual | +
Implements CppSpec::Matchers::MatcherBase< A, std::regex >.
+ +
+
|
+ +inlineoverridevirtual | +
Reimplemented from CppSpec::Matchers::MatcherBase< A, std::regex >.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Matchers::MatchPartial< A >, including all inherited members.
+| _name (defined in CppSpec::Pretty) | CppSpec::Pretty | |
| description() override | CppSpec::Matchers::MatchPartial< A > | inlinevirtual |
| failure_message() | CppSpec::Matchers::MatcherBase< A, std::regex > | virtual |
| failure_message_when_negated() | CppSpec::Matchers::MatcherBase< A, std::regex > | virtual |
| improve_hash_formatting(const std::string &inspect_string) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| inspect_object(const T &object) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| inspect_object(const O &o) | CppSpec::Pretty | inline |
| inspect_object(const char *const &o) | CppSpec::Pretty | inlinestatic |
| last(const std::string &s, char delim) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| match() override (defined in CppSpec::Matchers::MatchPartial< A >) | CppSpec::Matchers::MatchPartial< A > | inlinevirtual |
| MatchPartial(Expectation< A > &expectation, std::string expected) (defined in CppSpec::Matchers::MatchPartial< A >) | CppSpec::Matchers::MatchPartial< A > | inlineexplicit |
| MatchPartial(Expectation< A > &expectation, std::regex expected) (defined in CppSpec::Matchers::MatchPartial< A >) | CppSpec::Matchers::MatchPartial< A > | inlineexplicit |
| name(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| name_to_sentence(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| run() | CppSpec::Matchers::MatcherBase< A, std::regex > | |
| set_message(std::string message) | CppSpec::Matchers::MatcherBase< A, std::regex > | virtual |
| split_words(const std::string &sym) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_sentence(const T &item) | CppSpec::Pretty | inlinestatic |
| to_sentence(const std::vector< T > &words) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| to_word(const Matchers::MatcherBase< A, E > &matcher) | CppSpec::Pretty | inlinestatic |
| to_word(const bool &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_word_type(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| underscore(const std::string &camel_cased_word) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


+Public Member Functions | |
| + | MatchPartial (Expectation< A > &expectation, std::string expected) |
| + | MatchPartial (Expectation< A > &expectation, std::regex expected) |
| std::string | description () override |
| Get the description of the Matcher. | |
| bool | match () override |
| Public Member Functions inherited from CppSpec::Matchers::MatcherBase< A, std::regex > | |
| + | MatcherBase (MatcherBase< A, std::regex > const ©)=default |
| virtual std::string | failure_message () |
| Get message to give on match failure. | |
| virtual std::string | failure_message_when_negated () |
| Get message to give on match failure when negated. | |
| +virtual std::string | verb () |
| +constexpr A & | actual () |
| +std::regex & | expected () |
| +Expectation< A > & | expectation () |
| virtual MatcherBase & | set_message (std::string message) |
| Set a custom failure message. | |
| +std::source_location | get_location () const |
| Result | run () |
| Run the Matcher object. | |
| +virtual bool | negated_match () |
| Public Member Functions inherited from CppSpec::Pretty | |
| +std::string | name (const std::string &name) const |
| +std::string | name_to_sentence (const std::string &name) const |
| template<typename O> | |
| std::string | inspect_object (const O &o) |
| Generate a string of the class and data of an object. | |
+Additional Inherited Members | |
| Public Types inherited from CppSpec::Matchers::MatcherBase< A, std::regex > | |
| +using | expected_t |
| Static Public Member Functions inherited from CppSpec::Pretty | |
| +static std::string | split_words (const std::string &sym) |
| +static std::string | underscore (const std::string &camel_cased_word) |
| +static std::string | last (const std::string &s, char delim) |
| +static std::string | improve_hash_formatting (const std::string &inspect_string) |
| template<Util::is_streamable T> | |
| static std::string | to_word (const T &item) |
| Formats an object as a string when operator<< is available. | |
| +template<typename T> | |
| static std::string | to_word (const T &item) |
| +template<typename T> | |
| static std::string | to_word_type (const T &item) |
| template<typename A, typename E> | |
| static std::string | to_word (const Matchers::MatcherBase< A, E > &matcher) |
| template<class T> | |
| static std::string | to_sentence (const T &item) |
| Take a single object and format it as a sentance. | |
| template<class T> | |
| static std::string | to_sentence (const std::vector< T > &words) |
| +template<typename T> | |
| static std::string | inspect_object (const T &object) |
| +template<> | |
| std::string | to_word (const bool &item) |
| template<> | |
| std::string | inspect_object (const char *const &o) |
| Specialization for C-style strings. | |
| Public Attributes inherited from CppSpec::Pretty | |
| +std::string | _name |
| Protected Attributes inherited from CppSpec::Matchers::MatcherBase< A, std::regex > | |
| +std::regex | expected_ |
| +Expectation< A > & | expectation_ |
+
|
+ +inlineoverridevirtual | +
Get the description of the Matcher.
+Reimplemented from CppSpec::Matchers::MatcherBase< A, std::regex >.
+ +
+
|
+ +inlineoverridevirtual | +
Implements CppSpec::Matchers::MatcherBase< A, std::regex >.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Matchers::MatcherBase< Actual, Expected >, including all inherited members.
+|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
the base class for all Matcher classes and objects + More...
+ +#include <matcher_base.hpp>


+Public Types | |
| +using | expected_t = Expected |
+Public Member Functions | |
| + | MatcherBase (MatcherBase< Actual, Expected > const ©)=default |
| + | MatcherBase (Expectation< Actual > &expectation) |
| + | MatcherBase (Expectation< Actual > &expectation, Expected expected) |
| virtual std::string | failure_message () |
| Get message to give on match failure. | |
| virtual std::string | failure_message_when_negated () |
| Get message to give on match failure when negated. | |
| virtual std::string | description () |
| Get the description of the Matcher. | |
| +virtual std::string | verb () |
| +constexpr Actual & | actual () |
| +Expected & | expected () |
| +Expectation< Actual > & | expectation () |
| virtual MatcherBase & | set_message (std::string message) |
| Set a custom failure message. | |
| +std::source_location | get_location () const |
| Result | run () |
| Run the Matcher object. | |
| +virtual bool | match ()=0 |
| +virtual bool | negated_match () |
| Public Member Functions inherited from CppSpec::Pretty | |
| +std::string | name (const std::string &name) const |
| +std::string | name_to_sentence (const std::string &name) const |
| template<typename O> | |
| std::string | inspect_object (const O &o) |
| Generate a string of the class and data of an object. | |
+Protected Attributes | |
| +Expected | expected_ |
| +Expectation< Actual > & | expectation_ |
+Additional Inherited Members | |
| Static Public Member Functions inherited from CppSpec::Pretty | |
| +static std::string | split_words (const std::string &sym) |
| +static std::string | underscore (const std::string &camel_cased_word) |
| +static std::string | last (const std::string &s, char delim) |
| +static std::string | improve_hash_formatting (const std::string &inspect_string) |
| template<Util::is_streamable T> | |
| static std::string | to_word (const T &item) |
| Formats an object as a string when operator<< is available. | |
| +template<typename T> | |
| static std::string | to_word (const T &item) |
| +template<typename T> | |
| static std::string | to_word_type (const T &item) |
| template<typename A, typename E> | |
| static std::string | to_word (const Matchers::MatcherBase< A, E > &matcher) |
| template<class T> | |
| static std::string | to_sentence (const T &item) |
| Take a single object and format it as a sentance. | |
| template<class T> | |
| static std::string | to_sentence (const std::vector< T > &words) |
| +template<typename T> | |
| static std::string | inspect_object (const T &object) |
| +template<> | |
| std::string | to_word (const bool &item) |
| template<> | |
| std::string | inspect_object (const char *const &o) |
| Specialization for C-style strings. | |
| Public Attributes inherited from CppSpec::Pretty | |
| +std::string | _name |
the base class for all Matcher classes and objects
+| Actual | the type of Actual 'thing' to match against in the context of expect(2), it would be int |
| Expected | the type of Expected 'thing' to match for in the contet of expect(2).to_equal(2.0), it would be float |
+
|
+ +virtual | +
Get the description of the Matcher.
+Reimplemented in CppSpec::Matchers::BeBetween< A, E >, CppSpec::Matchers::BeNullptr< A >, CppSpec::Matchers::BeWithin< A, E >, CppSpec::Matchers::ContainBase< A, E, U >, CppSpec::Matchers::ContainBase< A, U, U >, CppSpec::Matchers::FailWith< A >, CppSpec::Matchers::HaveError< T >, CppSpec::Matchers::HaveValue< T >, CppSpec::Matchers::MatchPartial< A >, and CppSpec::Matchers::Throw< A, Ex >.
+ +
+
|
+ +virtual | +
Get message to give on match failure.
+Reimplemented in CppSpec::Matchers::BeWithin< A, E >, CppSpec::Matchers::ContainBase< A, E, U >, CppSpec::Matchers::ContainBase< A, U, U >, CppSpec::Matchers::Equal< A, E >, CppSpec::Matchers::Equal< T, E >, CppSpec::Matchers::Satisfy< A >, and CppSpec::Matchers::Throw< A, Ex >.
+ +
+
|
+ +virtual | +
Get message to give on match failure when negated.
+Reimplemented in CppSpec::Matchers::BeWithin< A, E >, CppSpec::Matchers::ContainBase< A, E, U >, CppSpec::Matchers::ContainBase< A, U, U >, CppSpec::Matchers::Equal< A, E >, CppSpec::Matchers::Equal< T, E >, CppSpec::Matchers::Satisfy< A >, and CppSpec::Matchers::Throw< A, Ex >.
+ +| Result CppSpec::Matchers::MatcherBase< A, E >::run | +( | +) | ++ |
Run the Matcher object.
+| printer | the formatter to print using |
+
|
+ +virtual | +
Set a custom failure message.
+| message | the message to give |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Matchers::Satisfy< A >, including all inherited members.
+| _name (defined in CppSpec::Pretty) | CppSpec::Pretty | |
| description() | CppSpec::Matchers::MatcherBase< A, bool > | virtual |
| failure_message() override | CppSpec::Matchers::Satisfy< A > | virtual |
| failure_message_when_negated() override | CppSpec::Matchers::Satisfy< A > | virtual |
| improve_hash_formatting(const std::string &inspect_string) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| inspect_object(const T &object) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| inspect_object(const O &o) | CppSpec::Pretty | inline |
| inspect_object(const char *const &o) | CppSpec::Pretty | inlinestatic |
| last(const std::string &s, char delim) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| match() override (defined in CppSpec::Matchers::Satisfy< A >) | CppSpec::Matchers::Satisfy< A > | virtual |
| name(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| name_to_sentence(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| run() | CppSpec::Matchers::MatcherBase< A, bool > | |
| Satisfy(Expectation< A > &expectation, std::function< bool(A)> test) (defined in CppSpec::Matchers::Satisfy< A >) | CppSpec::Matchers::Satisfy< A > | inline |
| set_message(std::string message) | CppSpec::Matchers::MatcherBase< A, bool > | virtual |
| split_words(const std::string &sym) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_sentence(const T &item) | CppSpec::Pretty | inlinestatic |
| to_sentence(const std::vector< T > &words) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| to_word(const Matchers::MatcherBase< A, E > &matcher) | CppSpec::Pretty | inlinestatic |
| to_word(const bool &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_word_type(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| underscore(const std::string &camel_cased_word) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| verb() override (defined in CppSpec::Matchers::Satisfy< A >) | CppSpec::Matchers::Satisfy< A > | inlinevirtual |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


+Public Member Functions | |
| + | Satisfy (Expectation< A > &expectation, std::function< bool(A)> test) |
| std::string | failure_message () override |
| Get message to give on match failure. | |
| std::string | failure_message_when_negated () override |
| Get message to give on match failure when negated. | |
| std::string | verb () override |
| bool | match () override |
| Public Member Functions inherited from CppSpec::Matchers::MatcherBase< A, bool > | |
| + | MatcherBase (MatcherBase< A, bool > const ©)=default |
| virtual std::string | description () |
| Get the description of the Matcher. | |
| +constexpr A & | actual () |
| +bool & | expected () |
| +Expectation< A > & | expectation () |
| virtual MatcherBase & | set_message (std::string message) |
| Set a custom failure message. | |
| +std::source_location | get_location () const |
| Result | run () |
| Run the Matcher object. | |
| +virtual bool | negated_match () |
| Public Member Functions inherited from CppSpec::Pretty | |
| +std::string | name (const std::string &name) const |
| +std::string | name_to_sentence (const std::string &name) const |
| template<typename O> | |
| std::string | inspect_object (const O &o) |
| Generate a string of the class and data of an object. | |
+Additional Inherited Members | |
| Public Types inherited from CppSpec::Matchers::MatcherBase< A, bool > | |
| +using | expected_t |
| Static Public Member Functions inherited from CppSpec::Pretty | |
| +static std::string | split_words (const std::string &sym) |
| +static std::string | underscore (const std::string &camel_cased_word) |
| +static std::string | last (const std::string &s, char delim) |
| +static std::string | improve_hash_formatting (const std::string &inspect_string) |
| template<Util::is_streamable T> | |
| static std::string | to_word (const T &item) |
| Formats an object as a string when operator<< is available. | |
| +template<typename T> | |
| static std::string | to_word (const T &item) |
| +template<typename T> | |
| static std::string | to_word_type (const T &item) |
| template<typename A, typename E> | |
| static std::string | to_word (const Matchers::MatcherBase< A, E > &matcher) |
| template<class T> | |
| static std::string | to_sentence (const T &item) |
| Take a single object and format it as a sentance. | |
| template<class T> | |
| static std::string | to_sentence (const std::vector< T > &words) |
| +template<typename T> | |
| static std::string | inspect_object (const T &object) |
| +template<> | |
| std::string | to_word (const bool &item) |
| template<> | |
| std::string | inspect_object (const char *const &o) |
| Specialization for C-style strings. | |
| Public Attributes inherited from CppSpec::Pretty | |
| +std::string | _name |
| Protected Attributes inherited from CppSpec::Matchers::MatcherBase< A, bool > | |
| +bool | expected_ |
| +Expectation< A > & | expectation_ |
+
|
+ +overridevirtual | +
Get message to give on match failure.
+Reimplemented from CppSpec::Matchers::MatcherBase< A, bool >.
+ +
+
|
+ +overridevirtual | +
Get message to give on match failure when negated.
+Reimplemented from CppSpec::Matchers::MatcherBase< A, bool >.
+ +
+
|
+ +overridevirtual | +
Implements CppSpec::Matchers::MatcherBase< A, bool >.
+ +
+
|
+ +inlineoverridevirtual | +
Reimplemented from CppSpec::Matchers::MatcherBase< A, bool >.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Matchers::StartWith< A, E >, including all inherited members.
+| _name (defined in CppSpec::Pretty) | CppSpec::Pretty | |
| description() | CppSpec::Matchers::MatcherBase< A, E > | virtual |
| failure_message() | CppSpec::Matchers::MatcherBase< A, E > | virtual |
| failure_message_when_negated() | CppSpec::Matchers::MatcherBase< A, E > | virtual |
| improve_hash_formatting(const std::string &inspect_string) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| inspect_object(const T &object) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| inspect_object(const O &o) | CppSpec::Pretty | inline |
| inspect_object(const char *const &o) | CppSpec::Pretty | inlinestatic |
| last(const std::string &s, char delim) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| match() override (defined in CppSpec::Matchers::StartWith< A, E >) | CppSpec::Matchers::StartWith< A, E > | inlinevirtual |
| name(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| name_to_sentence(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| run() | CppSpec::Matchers::MatcherBase< A, E > | |
| set_message(std::string message) | CppSpec::Matchers::MatcherBase< A, E > | virtual |
| split_words(const std::string &sym) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| StartWith(Expectation< A > &expectation, E start) (defined in CppSpec::Matchers::StartWith< A, E >) | CppSpec::Matchers::StartWith< A, E > | inline |
| to_sentence(const T &item) | CppSpec::Pretty | inlinestatic |
| to_sentence(const std::vector< T > &words) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| to_word(const Matchers::MatcherBase< A, E > &matcher) | CppSpec::Pretty | inlinestatic |
| to_word(const bool &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_word_type(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| underscore(const std::string &camel_cased_word) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| verb() override (defined in CppSpec::Matchers::StartWith< A, E >) | CppSpec::Matchers::StartWith< A, E > | inlinevirtual |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


+Public Member Functions | |
| + | StartWith (Expectation< A > &expectation, E start) |
| std::string | verb () override |
| bool | match () override |
| Public Member Functions inherited from CppSpec::Matchers::MatcherBase< A, E > | |
| + | MatcherBase (MatcherBase< A, E > const ©)=default |
| virtual std::string | failure_message () |
| Get message to give on match failure. | |
| virtual std::string | failure_message_when_negated () |
| Get message to give on match failure when negated. | |
| virtual std::string | description () |
| Get the description of the Matcher. | |
| +constexpr A & | actual () |
| +E & | expected () |
| +Expectation< A > & | expectation () |
| virtual MatcherBase & | set_message (std::string message) |
| Set a custom failure message. | |
| +std::source_location | get_location () const |
| Result | run () |
| Run the Matcher object. | |
| +virtual bool | negated_match () |
| Public Member Functions inherited from CppSpec::Pretty | |
| +std::string | name (const std::string &name) const |
| +std::string | name_to_sentence (const std::string &name) const |
| template<typename O> | |
| std::string | inspect_object (const O &o) |
| Generate a string of the class and data of an object. | |
+Additional Inherited Members | |
| Public Types inherited from CppSpec::Matchers::MatcherBase< A, E > | |
| +using | expected_t |
| Static Public Member Functions inherited from CppSpec::Pretty | |
| +static std::string | split_words (const std::string &sym) |
| +static std::string | underscore (const std::string &camel_cased_word) |
| +static std::string | last (const std::string &s, char delim) |
| +static std::string | improve_hash_formatting (const std::string &inspect_string) |
| template<Util::is_streamable T> | |
| static std::string | to_word (const T &item) |
| Formats an object as a string when operator<< is available. | |
| +template<typename T> | |
| static std::string | to_word (const T &item) |
| +template<typename T> | |
| static std::string | to_word_type (const T &item) |
| template<typename A, typename E> | |
| static std::string | to_word (const Matchers::MatcherBase< A, E > &matcher) |
| template<class T> | |
| static std::string | to_sentence (const T &item) |
| Take a single object and format it as a sentance. | |
| template<class T> | |
| static std::string | to_sentence (const std::vector< T > &words) |
| +template<typename T> | |
| static std::string | inspect_object (const T &object) |
| +template<> | |
| std::string | to_word (const bool &item) |
| template<> | |
| std::string | inspect_object (const char *const &o) |
| Specialization for C-style strings. | |
| Public Attributes inherited from CppSpec::Pretty | |
| +std::string | _name |
| Protected Attributes inherited from CppSpec::Matchers::MatcherBase< A, E > | |
| +E | expected_ |
| +Expectation< A > & | expectation_ |
+
|
+ +inlineoverridevirtual | +
Implements CppSpec::Matchers::MatcherBase< A, E >.
+ +
+
|
+ +inlineoverridevirtual | +
Reimplemented from CppSpec::Matchers::MatcherBase< A, E >.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Matchers::Throw< A, Ex >, including all inherited members.
+| _name (defined in CppSpec::Pretty) | CppSpec::Pretty | |
| description() override | CppSpec::Matchers::Throw< A, Ex > | virtual |
| failure_message() override | CppSpec::Matchers::Throw< A, Ex > | virtual |
| failure_message_when_negated() override | CppSpec::Matchers::Throw< A, Ex > | virtual |
| improve_hash_formatting(const std::string &inspect_string) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| inspect_object(const T &object) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| inspect_object(const O &o) | CppSpec::Pretty | inline |
| inspect_object(const char *const &o) | CppSpec::Pretty | inlinestatic |
| last(const std::string &s, char delim) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| match() override (defined in CppSpec::Matchers::Throw< A, Ex >) | CppSpec::Matchers::Throw< A, Ex > | virtual |
| name(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| name_to_sentence(const std::string &name) const (defined in CppSpec::Pretty) | CppSpec::Pretty | inline |
| run() | CppSpec::Matchers::MatcherBase< A, void * > | |
| set_message(std::string message) | CppSpec::Matchers::MatcherBase< A, void * > | virtual |
| split_words(const std::string &sym) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| Throw(Expectation< A > &expectation) (defined in CppSpec::Matchers::Throw< A, Ex >) | CppSpec::Matchers::Throw< A, Ex > | inlineexplicit |
| to_sentence(const T &item) | CppSpec::Pretty | inlinestatic |
| to_sentence(const std::vector< T > &words) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) | CppSpec::Pretty | inlinestatic |
| to_word(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | static |
| to_word(const Matchers::MatcherBase< A, E > &matcher) | CppSpec::Pretty | inlinestatic |
| to_word(const bool &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| to_word_type(const T &item) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| underscore(const std::string &camel_cased_word) (defined in CppSpec::Pretty) | CppSpec::Pretty | inlinestatic |
| verb() override (defined in CppSpec::Matchers::Throw< A, Ex >) | CppSpec::Matchers::Throw< A, Ex > | inlinevirtual |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


+Public Member Functions | |
| + | Throw (Expectation< A > &expectation) |
| bool | match () override |
| std::string | verb () override |
| std::string | description () override |
| Get the description of the Matcher. | |
| std::string | failure_message () override |
| Get message to give on match failure. | |
| std::string | failure_message_when_negated () override |
| Get message to give on match failure when negated. | |
| Public Member Functions inherited from CppSpec::Matchers::MatcherBase< A, void * > | |
| + | MatcherBase (MatcherBase< A, void * > const ©)=default |
| +constexpr A & | actual () |
| +void *& | expected () |
| +Expectation< A > & | expectation () |
| virtual MatcherBase & | set_message (std::string message) |
| Set a custom failure message. | |
| +std::source_location | get_location () const |
| Result | run () |
| Run the Matcher object. | |
| +virtual bool | negated_match () |
| Public Member Functions inherited from CppSpec::Pretty | |
| +std::string | name (const std::string &name) const |
| +std::string | name_to_sentence (const std::string &name) const |
| template<typename O> | |
| std::string | inspect_object (const O &o) |
| Generate a string of the class and data of an object. | |
+Additional Inherited Members | |
| Public Types inherited from CppSpec::Matchers::MatcherBase< A, void * > | |
| +using | expected_t |
| Static Public Member Functions inherited from CppSpec::Pretty | |
| +static std::string | split_words (const std::string &sym) |
| +static std::string | underscore (const std::string &camel_cased_word) |
| +static std::string | last (const std::string &s, char delim) |
| +static std::string | improve_hash_formatting (const std::string &inspect_string) |
| template<Util::is_streamable T> | |
| static std::string | to_word (const T &item) |
| Formats an object as a string when operator<< is available. | |
| +template<typename T> | |
| static std::string | to_word (const T &item) |
| +template<typename T> | |
| static std::string | to_word_type (const T &item) |
| template<typename A, typename E> | |
| static std::string | to_word (const Matchers::MatcherBase< A, E > &matcher) |
| template<class T> | |
| static std::string | to_sentence (const T &item) |
| Take a single object and format it as a sentance. | |
| template<class T> | |
| static std::string | to_sentence (const std::vector< T > &words) |
| +template<typename T> | |
| static std::string | inspect_object (const T &object) |
| +template<> | |
| std::string | to_word (const bool &item) |
| template<> | |
| std::string | inspect_object (const char *const &o) |
| Specialization for C-style strings. | |
| Public Attributes inherited from CppSpec::Pretty | |
| +std::string | _name |
| Protected Attributes inherited from CppSpec::Matchers::MatcherBase< A, void * > | |
| +void * | expected_ |
| +Expectation< A > & | expectation_ |
+
|
+ +overridevirtual | +
Get the description of the Matcher.
+Reimplemented from CppSpec::Matchers::MatcherBase< A, void * >.
+ +
+
|
+ +overridevirtual | +
Get message to give on match failure.
+Reimplemented from CppSpec::Matchers::MatcherBase< A, void * >.
+ +
+
|
+ +overridevirtual | +
Get message to give on match failure when negated.
+Reimplemented from CppSpec::Matchers::MatcherBase< A, void * >.
+ +
+
|
+ +overridevirtual | +
Implements CppSpec::Matchers::MatcherBase< A, void * >.
+ +
+
|
+ +inlineoverridevirtual | +
Reimplemented from CppSpec::Matchers::MatcherBase< A, void * >.
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Result, including all inherited members.
+| error(std::source_location location) noexcept (defined in CppSpec::Result) | CppSpec::Result | inlinestatic |
| error_with(std::source_location location, std::string error_message) noexcept (defined in CppSpec::Result) | CppSpec::Result | inlinestatic |
| failure(std::source_location location) noexcept (defined in CppSpec::Result) | CppSpec::Result | inlinestatic |
| failure_with(std::source_location location, std::string failure_message) noexcept (defined in CppSpec::Result) | CppSpec::Result | inlinestatic |
| get_location() const noexcept (defined in CppSpec::Result) | CppSpec::Result | inline |
| get_location_string() const noexcept (defined in CppSpec::Result) | CppSpec::Result | inline |
| get_message() const noexcept (defined in CppSpec::Result) | CppSpec::Result | inline |
| get_type() const noexcept (defined in CppSpec::Result) | CppSpec::Result | inline |
| is_error() const noexcept (defined in CppSpec::Result) | CppSpec::Result | inline |
| is_failure() const noexcept (defined in CppSpec::Result) | CppSpec::Result | inline |
| is_success() const noexcept (defined in CppSpec::Result) | CppSpec::Result | inline |
| operator<< (defined in CppSpec::Result) | CppSpec::Result | friend |
| reduce(const Result &lhs, const Result &rhs) noexcept (defined in CppSpec::Result) | CppSpec::Result | inlinestatic |
| Result()=default (defined in CppSpec::Result) | CppSpec::Result | |
| set_message(std::string message) noexcept (defined in CppSpec::Result) | CppSpec::Result | inline |
| set_status(Status status) noexcept (defined in CppSpec::Result) | CppSpec::Result | inline |
| set_type(std::string type) noexcept (defined in CppSpec::Result) | CppSpec::Result | inline |
| skipped() const noexcept (defined in CppSpec::Result) | CppSpec::Result | inline |
| skipped(std::source_location location) noexcept (defined in CppSpec::Result) | CppSpec::Result | inlinestatic |
| skipped_with(std::source_location location, std::string skipped_message) noexcept (defined in CppSpec::Result) | CppSpec::Result | inlinestatic |
| Status enum name (defined in CppSpec::Result) | CppSpec::Result | |
| status() const noexcept (defined in CppSpec::Result) | CppSpec::Result | inline |
| success(std::source_location location) noexcept (defined in CppSpec::Result) | CppSpec::Result | inlinestatic |
| success_with(std::source_location location, std::string success_message) noexcept (defined in CppSpec::Result) | CppSpec::Result | inlinestatic |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
+Public Types | |
| enum class | Status { Success +, Failure +, Error +, Skipped + } |
+Friends | |
| +std::ostream & | operator<< (std::ostream &os, const Result &res) |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Runnable, including all inherited members.
+| get_children() noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_children() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_location() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_parent() noexcept | CppSpec::Runnable | inline |
| get_parent() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_parent_as() noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_parent_as() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_result() const (defined in CppSpec::Runnable) | CppSpec::Runnable | inlinevirtual |
| get_runtime() const (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| get_start_time() const (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| has_parent() noexcept | CppSpec::Runnable | inline |
| has_parent() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| make_child(Args &&... args) (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| num_failures() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| num_tests() const noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| padding() const noexcept | CppSpec::Runnable | inline |
| run()=0 (defined in CppSpec::Runnable) | CppSpec::Runnable | pure virtual |
| Runnable(std::source_location location) (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| set_location(std::source_location location) noexcept (defined in CppSpec::Runnable) | CppSpec::Runnable | inline |
| timed_run() (defined in CppSpec::Runnable) | CppSpec::Runnable | inlinevirtual |
| ~Runnable()=default (defined in CppSpec::Runnable) | CppSpec::Runnable | virtual |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
Base class for all objects in the execution tree. + More...
+ +#include <runnable.hpp>

+Public Member Functions | |
| + | Runnable (std::source_location location) |
| +bool | has_parent () noexcept |
| Check to see if the Runnable has a parent. | |
| +bool | has_parent () const noexcept |
| +Runnable * | get_parent () noexcept |
| Get the Runnable's parent. | |
| +const Runnable * | get_parent () const noexcept |
| +std::list< std::shared_ptr< Runnable > > & | get_children () noexcept |
| +const std::list< std::shared_ptr< Runnable > > & | get_children () const noexcept |
| +template<class C> | |
| C * | get_parent_as () noexcept |
| +template<class C> | |
| const C * | get_parent_as () const noexcept |
| +template<typename T, typename... Args> | |
| T * | make_child (Args &&... args) |
| std::string | padding () const noexcept |
| Generate padding (indentation) fore the current object. | |
| +std::source_location | get_location () const noexcept |
| +void | set_location (std::source_location location) noexcept |
| +virtual void | run ()=0 |
| +virtual void | timed_run () |
| +std::chrono::duration< double > | get_runtime () const |
| +std::chrono::time_point< std::chrono::system_clock > | get_start_time () const |
| +virtual Result | get_result () const |
| +size_t | num_tests () const noexcept |
| +size_t | num_failures () const noexcept |
Base class for all objects in the execution tree.
+A base class for all objects that comprise some abstract structure with a nesting concept. Used to propogate ('pass') failures from leaf to root without exceptions (and/or code-jumping), thus allowing execution to continue virtually uninterrupted.
+
+
|
+ +inlinenodiscardnoexcept | +
Generate padding (indentation) fore the current object.
+|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This is the complete list of members for CppSpec::Runner, including all inherited members.
+| add_spec(Description &spec) | CppSpec::Runner | inline |
| add_specs(Specs &... specs) (defined in CppSpec::Runner) | CppSpec::Runner | inline |
| exec() (defined in CppSpec::Runner) | CppSpec::Runner | inline |
| run(std::source_location location=std::source_location::current()) (defined in CppSpec::Runner) | CppSpec::Runner | inline |
| Runner(Formatters &&... formatters) (defined in CppSpec::Runner) | CppSpec::Runner | inlineexplicit |
| Runner(std::list< std::shared_ptr< Formatters::BaseFormatter > > &&formatters) (defined in CppSpec::Runner) | CppSpec::Runner | inlineexplicit |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
A collection of Descriptions that are run in sequence. + More...
+ +#include <runner.hpp>
+Public Member Functions | |
| +template<typename... Formatters> | |
| Runner (Formatters &&... formatters) | |
| + | Runner (std::list< std::shared_ptr< Formatters::BaseFormatter > > &&formatters) |
| Runner & | add_spec (Description &spec) |
| Add a Description object. | |
| +template<typename... Specs> | |
| Runner & | add_specs (Specs &... specs) |
| +Result | run (std::source_location location=std::source_location::current()) |
| +Result | exec () |
A collection of Descriptions that are run in sequence.
+
+
|
+ +inline | +
Add a Description object.
+| spec | the spec to be added |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


Go to the source code of this file.
++Classes | |
| class | CppSpec::ClassDescription< T > |
| A Description with a defined subject. More... | |
+Typedefs | |
| +template<class T> | |
| using | CppSpec::ClassContext = ClassDescription<T> |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
Concept for checking whether T is a container type. +More...
+ +#include <util.hpp>
Concept for checking whether T is a container type.
+Provides the member constant value which is equal to true, if T is a container type. Otherwise, value is equal to false.
+A container is defined by having the functions begin, end, max_size, and empty.
+| T | a type to check |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
Checks whether T can be streamed. +More...
+ +#include <util.hpp>
Checks whether T can be streamed.
+A streamable type is defined by having the operator<< defined in scope.
+| C | a type to check |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
| NCppSpec | |
| NMatchers | |
| Rexpected | |
| Roptional | |
| NUtil | |
| Ris_container | Concept for checking whether T is a container type |
| Ris_streamable | Checks whether T can be streamed |
| Ris_functional | |
| Ris_not_functional | |
| Rnot_c_string | |
| Ris_result |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
#include "matcher_base.hpp"

Go to the source code of this file.
++Classes | |
| class | CppSpec::Matchers::ContainBase< A, E, U > |
| class | CppSpec::Matchers::Contain< A, E, U > |
| class | CppSpec::Matchers::Contain< A, U, U > |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
The core header file for Cppspec. +More...
+
Go to the source code of this file.
++Macros | |
| +#define | auto & self) -> void |
| +#define | _ [=](auto& self) mutable -> void |
| +#define | it self.it |
| +#define | specify it |
| +#define | context self.context |
| +#define | expect self.expect |
| +#define | explain context |
| +#define | is_expected self.is_expected |
| +#define | subject self.subject |
| +#define | before_all self.before_all |
| +#define | before_each self.before_each |
| +#define | after_all self.after_all |
| +#define | after_each self.after_each |
| #define | let(name, body) |
| #define | CPPSPEC_MAIN(...) |
| #define | CPPSPEC_SPEC(spec_name) |
The core header file for Cppspec.
+| #define CPPSPEC_MAIN | +( | +... | ) | ++ |
| #define CPPSPEC_SPEC | +( | +spec_name | ) | ++ |
| #define let | +( | +name, | +|
| + | + | body ) | +
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
Defines the Description class and associated functions. +More...
+#include <deque>#include <forward_list>#include <list>#include <memory>#include <source_location>#include <string>#include <utility>#include "it.hpp"

Go to the source code of this file.
++Classes | |
| class | CppSpec::Description |
+Typedefs | |
| +using | CppSpec::Context = Description |
Defines the Description class and associated functions.
+|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
| File in includeexpectations | Includes file in includematchers |
|---|---|
| expectation.hpp | numeric / be_between.hpp |
| expectation.hpp | numeric / be_greater_than.hpp |
| expectation.hpp | numeric / be_less_than.hpp |
| expectation.hpp | be_nullptr.hpp |
| expectation.hpp | contain.hpp |
| expectation.hpp | strings / end_with.hpp |
| expectation.hpp | equal.hpp |
| expectation.hpp | strings / match.hpp |
| expectation.hpp | satisfy.hpp |
| expectation.hpp | strings / start_with.hpp |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
| File in include | Includes file in includeformatters |
|---|---|
| argparse.hpp | progress.hpp |
| argparse.hpp | tap.hpp |
| argparse.hpp | verbose.hpp |
| runner.hpp | formatters_base.hpp |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
| File in includematchers | Includes file in includeexpectations |
|---|---|
| matcher_base.hpp | handler.hpp |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+

+Files | |
| expectation.hpp | |
| handler.hpp | |
| Contains the primary handlers for running Matchers. | |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+

+Files | |
| be_between.hpp | |
| be_greater_than.hpp | |
| be_less_than.hpp | |
| be_within.hpp | |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+

+Files | |
| formatters_base.hpp | |
| junit_xml.hpp | |
| progress.hpp | |
| tap.hpp | |
| term_colors.hpp | |
| verbose.hpp | |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+

+Files | |
| end_with.hpp | |
| match.hpp | |
| start_with.hpp | |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+

+Directories | |
| errors | |
| numeric | |
| strings | |
+Files | |
| be_nullptr.hpp | |
| contain.hpp | |
| equal.hpp | |
| matcher_base.hpp | |
| Contains the base class for all Matchers. | |
| pretty_matchers.hpp | |
| satisfy.hpp | |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+

+Directories | |
| expectations | |
| formatters | |
| matchers | |
+Files | |
| argparse.hpp | |
| class_description.hpp | |
| cppspec.hpp | |
| The core header file for Cppspec. | |
| description.hpp | |
| Defines the Description class and associated functions. | |
| it.hpp | |
| it_base.hpp | |
| let.hpp | |
| result.hpp | |
| runnable.hpp | |
| runner.hpp | |
| util.hpp | |
| Utility functions and classes. | |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


Go to the source code of this file.
++Classes | |
| class | CppSpec::Matchers::EndWith< A, E > |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+


Go to the source code of this file.
++Classes | |
| class | CppSpec::Matchers::Equal< A, E > |
| The equal matcher. More... | |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
| include | |
| expectations | |
| expectation.hpp | |
| handler.hpp | Contains the primary handlers for running Matchers |
| formatters | |
| formatters_base.hpp | |
| junit_xml.hpp | |
| progress.hpp | |
| tap.hpp | |
| term_colors.hpp | |
| verbose.hpp | |
| matchers | |
| errors | |
| fail.hpp | |
| have_error.hpp | |
| have_value.hpp | |
| throw.hpp | |
| numeric | |
| be_between.hpp | |
| be_greater_than.hpp | |
| be_less_than.hpp | |
| be_within.hpp | |
| strings | |
| end_with.hpp | |
| match.hpp | |
| start_with.hpp | |
| be_nullptr.hpp | |
| contain.hpp | |
| equal.hpp | |
| matcher_base.hpp | Contains the base class for all Matchers |
| pretty_matchers.hpp | |
| satisfy.hpp | |
| argparse.hpp | |
| class_description.hpp | |
| cppspec.hpp | The core header file for Cppspec |
| description.hpp | Defines the Description class and associated functions |
| it.hpp | |
| it_base.hpp | |
| let.hpp | |
| result.hpp | |
| runnable.hpp | |
| runner.hpp | |
| util.hpp | Utility functions and classes |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
#include <cstdio>#include <iostream>#include "description.hpp"#include "it_base.hpp"#include "runnable.hpp"#include "term_colors.hpp"#include <unistd.h>

Go to the source code of this file.
++Classes | |
| class | CppSpec::Formatters::BaseFormatter |
+Functions | |
| +bool | CppSpec::is_terminal () |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
This page explains how to interpret the graphs that are generated by doxygen.
+Consider the following example:
This will result in the following graph:
+
The boxes in the above graph have the following meaning:
+The arrows have the following meaning:
+|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
Contains the primary handlers for running Matchers. +More...
+

Go to the source code of this file.
++Classes | |
| struct | CppSpec::PositiveExpectationHandler |
| Handles "positive" expectations (i.e. non-negated). More... | |
| struct | CppSpec::NegativeExpectationHandler |
| Handles "negative" expectations (i.e. negated with '.not_(). More... | |
Contains the primary handlers for running Matchers.
+Copyright 2016 Katherine Whitlock
+ +|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
A behavior-driven development testing library for C++ with an RSpec-inspired DSL.
+See http://cppspec.readthedocs.org/ for full documentation and a tutorial.
+C++Spec requires a compiler and standard library with C++23 support. Currently tested:
+Note: Only spec files require C++23 (-std=c++23). No other part of an existing project's build needs modification.
+The recommended approach is to integrate C++Spec as a CMake subproject:
+Spec files are picked up automatically with:
+This creates a separate CTest executable for every file ending in _spec.cpp in the given directory (recursive).
+If you've ever used RSpec or Jasmine, chances are you'll be familiar with C++Spec's syntax. For example, this is a C++Spec version of the first snippet on RSpec's README.
+Heavily inspired by RSpec and Jasmine.
+Copyright © 2014-2024 Katherine Whitlock
+The project is licensed under the MIT License.
+|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
#include <source_location>#include <string>#include <utility>#include <vector>#include "expectations/expectation.hpp"

Go to the source code of this file.
++Classes | |
| class | CppSpec::ItD |
| An it embedded in a Description. More... | |
| class | CppSpec::ItCD< T > |
| An it embedded in a ClassDescription. More... | |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+
#include <algorithm>#include <functional>#include <numeric>#include <source_location>#include <string>#include <utility>#include "let.hpp"#include "runnable.hpp"#include "util.hpp"

Go to the source code of this file.
++Classes | |
| class | CppSpec::ItBase |
| Base class for it expressions. More... | |
|
+ C++Spec 1.0.0
+
+ BDD testing for C++
+ |
+