|
rippled
|
A class to run a subset of unit tests. More...
#include <multi_runner.h>


Public Member Functions | |
| multi_runner_child (multi_runner_child const &)=delete | |
| multi_runner_child & | operator= (multi_runner_child const &)=delete |
| multi_runner_child (std::size_t num_jobs, bool quiet, bool print_log) | |
| ~multi_runner_child () | |
| std::size_t | tests () const |
| std::size_t | suites () const |
| void | add_failures (std::size_t failures) |
| template<class Pred > | |
| bool | run_multi (Pred pred) |
| void | arg (std::string const &s) |
| Set the argument string. More... | |
| std::string const & | arg () const |
| Returns the argument string. More... | |
| template<class = void> | |
| bool | run (suite_info const &s) |
| Run the specified suite. More... | |
| template<class FwdIter > | |
| bool | run (FwdIter first, FwdIter last) |
| Run a sequence of suites. More... | |
| template<class FwdIter , class Pred > | |
| bool | run_if (FwdIter first, FwdIter last, Pred pred=Pred{}) |
| Conditionally run a sequence of suites. More... | |
| template<class SequenceContainer > | |
| bool | run_each (SequenceContainer const &c) |
| Run all suites in a container. More... | |
| template<class SequenceContainer , class Pred > | |
| bool | run_each_if (SequenceContainer const &c, Pred pred=Pred{}) |
| Conditionally run suites in a container. More... | |
Private Types | |
| enum | MessageType |
Private Member Functions | |
| virtual void | on_suite_begin (beast::unit_test::suite_info const &info) override |
| Called when a new suite starts. More... | |
| virtual void | on_suite_end () override |
| Called when a suite ends. More... | |
| virtual void | on_case_begin (std::string const &name) override |
| Called when a new case starts. More... | |
| virtual void | on_case_end () override |
| Called when a new case ends. More... | |
| virtual void | on_pass () override |
| Called for each passing condition. More... | |
| virtual void | on_fail (std::string const &reason) override |
| Called for each failing condition. More... | |
| virtual void | on_log (std::string const &s) override |
| Called when a test logs output. More... | |
| template<class = void> | |
| void | testcase (std::string const &name) |
| template<class = void> | |
| void | pass () |
| template<class = void> | |
| void | fail (std::string const &reason) |
| template<class = void> | |
| void | log (std::string const &s) |
| void | message_queue_send (MessageType mt, std::string const &s) |
| std::size_t | checkout_test_index () |
| std::size_t | checkout_job_index () |
| void | any_failed (bool v) |
| bool | any_failed () const |
| void | add (results const &r) |
| void | inc_keep_alive_count () |
| std::size_t | get_keep_alive_count () |
| void | print_results (S &s) |
Private Attributes | |
| std::size_t | job_index_ |
| detail::results | results_ |
| detail::suite_results | suite_results_ |
| detail::case_results | case_results_ |
| std::size_t | num_jobs_ {0} |
| bool | quiet_ {false} |
| bool | print_log_ {true} |
| std::atomic< bool > | continue_keep_alive_ {true} |
| std::thread | keep_alive_thread_ |
| std::string | arg_ |
| bool | default_ = false |
| bool | failed_ = false |
| bool | cond_ = false |
| std::recursive_mutex | mutex_ |
| inner * | inner_ |
| boost::interprocess::shared_memory_object | shared_mem_ |
| boost::interprocess::mapped_region | region_ |
| std::unique_ptr< boost::interprocess::message_queue > | message_queue_ |
Static Private Attributes | |
| static constexpr const char * | shared_mem_name_ |
| static constexpr const char * | message_queue_name_ |
A class to run a subset of unit tests.
Definition at line 254 of file multi_runner.h.
|
strongprotectedinherited |
Definition at line 170 of file multi_runner.h.
|
delete |
| ripple::test::multi_runner_child::multi_runner_child | ( | std::size_t | num_jobs, |
| bool | quiet, | ||
| bool | print_log | ||
| ) |
Definition at line 501 of file multi_runner.cpp.
| ripple::test::multi_runner_child::~multi_runner_child | ( | ) |
Definition at line 540 of file multi_runner.cpp.
|
delete |
| std::size_t ripple::test::multi_runner_child::tests | ( | ) | const |
Definition at line 552 of file multi_runner.cpp.
| std::size_t ripple::test::multi_runner_child::suites | ( | ) | const |
Definition at line 558 of file multi_runner.cpp.
| void ripple::test::multi_runner_child::add_failures | ( | std::size_t | failures | ) |
Definition at line 564 of file multi_runner.cpp.
| bool ripple::test::multi_runner_child::run_multi | ( | Pred | pred | ) |
Definition at line 317 of file multi_runner.h.
|
overrideprivatevirtual |
Called when a new suite starts.
Reimplemented from beast::unit_test::runner.
Definition at line 571 of file multi_runner.cpp.
|
overrideprivatevirtual |
Called when a suite ends.
Reimplemented from beast::unit_test::runner.
Definition at line 578 of file multi_runner.cpp.
|
overrideprivatevirtual |
Called when a new case starts.
Reimplemented from beast::unit_test::runner.
Definition at line 585 of file multi_runner.cpp.
|
overrideprivatevirtual |
Called when a new case ends.
Reimplemented from beast::unit_test::runner.
Definition at line 601 of file multi_runner.cpp.
|
overrideprivatevirtual |
Called for each passing condition.
Reimplemented from beast::unit_test::runner.
Definition at line 607 of file multi_runner.cpp.
|
overrideprivatevirtual |
Called for each failing condition.
Reimplemented from beast::unit_test::runner.
Definition at line 613 of file multi_runner.cpp.
|
overrideprivatevirtual |
Called when a test logs output.
Reimplemented from beast::unit_test::runner.
Definition at line 626 of file multi_runner.cpp.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
protectedinherited |
Definition at line 172 of file multi_runner.cpp.
|
inherited |
Definition at line 179 of file multi_runner.cpp.
|
inherited |
Definition at line 182 of file multi_runner.cpp.
|
inherited |
Definition at line 185 of file multi_runner.cpp.
|
inherited |
Definition at line 201 of file multi_runner.cpp.
|
inherited |
Definition at line 188 of file multi_runner.cpp.
|
inherited |
Definition at line 191 of file multi_runner.cpp.
|
inherited |
Definition at line 194 of file multi_runner.cpp.
|
inherited |
Definition at line 198 of file multi_runner.cpp.
|
private |
Definition at line 258 of file multi_runner.h.
|
private |
Definition at line 259 of file multi_runner.h.
|
private |
Definition at line 260 of file multi_runner.h.
|
private |
Definition at line 261 of file multi_runner.h.
|
private |
Definition at line 262 of file multi_runner.h.
|
private |
Definition at line 263 of file multi_runner.h.
|
private |
Definition at line 264 of file multi_runner.h.
|
private |
Definition at line 266 of file multi_runner.h.
|
private |
Definition at line 267 of file multi_runner.h.
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
staticconstexprprivateinherited |
Definition at line 155 of file multi_runner.h.
|
staticconstexprprivateinherited |
Definition at line 158 of file multi_runner.h.
|
privateinherited |
Definition at line 162 of file multi_runner.h.
|
privateinherited |
Definition at line 164 of file multi_runner.h.
|
privateinherited |
Definition at line 165 of file multi_runner.h.
|
protectedinherited |
Definition at line 168 of file multi_runner.h.