|
rippled
|


Classes | |
| class | parallel_for_lambda |
| struct | Params |
Public Types | |
| enum | { missingNodePercent = 20 } |
| using | clock_type = std::chrono::steady_clock |
| using | duration_type = std::chrono::milliseconds |
| using | test_func = void(Timing_test::*)(Section const &, Params const &, beast::Journal) |
| using | test_list = std::vector< std::pair< std::string, test_func > > |
Public Member Functions | |
| template<class Body , class... Args> | |
| void | parallel_for (std::size_t const n, std::size_t number_of_threads, Args const &... args) |
| template<class Body , class... Args> | |
| void | parallel_for_id (std::size_t const n, std::size_t number_of_threads, Args const &... args) |
| void | do_insert (Section const &config, Params const ¶ms, beast::Journal journal) |
| void | do_fetch (Section const &config, Params const ¶ms, beast::Journal journal) |
| void | do_missing (Section const &config, Params const ¶ms, beast::Journal journal) |
| void | do_mixed (Section const &config, Params const ¶ms, beast::Journal journal) |
| void | do_work (Section const &config, Params const ¶ms, beast::Journal journal) |
| duration_type | do_test (test_func f, Section const &config, Params const ¶ms, beast::Journal journal) |
| void | do_tests (std::size_t threads, test_list const &tests, std::vector< std::string > const &config_strings) |
| void | run () override |
| Runs the suite. | |
| template<class = void> | |
| void | operator() (runner &r) |
| Invokes the test using the specified runner. | |
| template<class = void> | |
| void | pass () |
| Record a successful test condition. | |
| template<class F , class String > | |
| bool | except (F &&f, String const &reason) |
| template<class F > | |
| bool | except (F &&f) |
| template<class E , class F , class String > | |
| bool | except (F &&f, String const &reason) |
| template<class E , class F > | |
| bool | except (F &&f) |
| template<class F , class String > | |
| bool | unexcept (F &&f, String const &reason) |
| template<class F > | |
| bool | unexcept (F &&f) |
| std::string const & | arg () const |
| Return the argument associated with the runner. | |
| template<class Condition , class String > | |
| bool | unexpected (Condition shouldBeFalse, String const &reason) |
| template<class Condition > | |
| bool | unexpected (Condition shouldBeFalse) |
| template<class String > | |
| void | fail (String const &reason, char const *file, int line) |
| Record a failure. | |
| template<class = void> | |
| void | fail (std::string const &reason="") |
| template<class Condition > | |
| bool | expect (Condition const &shouldBeTrue) |
| Evaluate a test condition. | |
| template<class Condition , class String > | |
| bool | expect (Condition const &shouldBeTrue, String const &reason) |
| template<class Condition > | |
| bool | expect (Condition const &shouldBeTrue, char const *file, int line) |
| template<class Condition , class String > | |
| bool | expect (Condition const &shouldBeTrue, String const &reason, char const *file, int line) |
Static Public Member Functions | |
| static std::string | to_string (Section const &config) |
| static std::string | to_string (duration_type const &d) |
| static Section | parse (std::string s) |
| static suite * | this_suite () |
| Returns the "current" running suite. | |
Public Attributes | |
| std::size_t const | default_repeat = 3 |
| std::size_t const | default_items = 10000 |
| log_os< char > | log |
| Logging output stream. | |
| testcase_t | testcase |
| Memberspace for declaring test cases. | |
Private Member Functions | |
| void | propagate_abort () |
Static Private Member Functions | |
| static suite ** | p_this_suite () |
Private Attributes | |
| bool | abort_ = false |
| bool | aborted_ = false |
| runner * | runner_ = nullptr |
Definition at line 124 of file Timing_test.cpp.
Definition at line 139 of file Timing_test.cpp.
Definition at line 140 of file Timing_test.cpp.
| using ripple::NodeStore::Timing_test::test_func = void (Timing_test::*)(Section const&, Params const&, beast::Journal) |
Definition at line 653 of file Timing_test.cpp.
Definition at line 655 of file Timing_test.cpp.
| anonymous enum |
| Enumerator | |
|---|---|
| missingNodePercent | |
Definition at line 127 of file Timing_test.cpp.
|
static |
Definition at line 149 of file Timing_test.cpp.
|
static |
Definition at line 159 of file Timing_test.cpp.
|
static |
Definition at line 167 of file Timing_test.cpp.
| void ripple::NodeStore::Timing_test::parallel_for | ( | std::size_t const | n, |
| std::size_t | number_of_threads, | ||
| Args const &... | args | ||
| ) |
Definition at line 216 of file Timing_test.cpp.
| void ripple::NodeStore::Timing_test::parallel_for_id | ( | std::size_t const | n, |
| std::size_t | number_of_threads, | ||
| Args const &... | args | ||
| ) |
Definition at line 232 of file Timing_test.cpp.
| void ripple::NodeStore::Timing_test::do_insert | ( | Section const & | config, |
| Params const & | params, | ||
| beast::Journal | journal | ||
| ) |
Definition at line 250 of file Timing_test.cpp.
| void ripple::NodeStore::Timing_test::do_fetch | ( | Section const & | config, |
| Params const & | params, | ||
| beast::Journal | journal | ||
| ) |
Definition at line 307 of file Timing_test.cpp.
| void ripple::NodeStore::Timing_test::do_missing | ( | Section const & | config, |
| Params const & | params, | ||
| beast::Journal | journal | ||
| ) |
Definition at line 378 of file Timing_test.cpp.
| void ripple::NodeStore::Timing_test::do_mixed | ( | Section const & | config, |
| Params const & | params, | ||
| beast::Journal | journal | ||
| ) |
Definition at line 451 of file Timing_test.cpp.
| void ripple::NodeStore::Timing_test::do_work | ( | Section const & | config, |
| Params const & | params, | ||
| beast::Journal | journal | ||
| ) |
Definition at line 543 of file Timing_test.cpp.
| duration_type ripple::NodeStore::Timing_test::do_test | ( | test_func | f, |
| Section const & | config, | ||
| Params const & | params, | ||
| beast::Journal | journal | ||
| ) |
Definition at line 658 of file Timing_test.cpp.
| void ripple::NodeStore::Timing_test::do_tests | ( | std::size_t | threads, |
| test_list const & | tests, | ||
| std::vector< std::string > const & | config_strings | ||
| ) |
Definition at line 671 of file Timing_test.cpp.
|
overridevirtual |
|
staticinherited |
|
inherited |
Invokes the test using the specified runner.
Data members are set up here instead of the constructor as a convenience to writing the derived class to avoid repetition of forwarded constructor arguments to the base. Normally this is called by the framework for you.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Evaluate a test condition.
This function provides improved logging by incorporating the file name and line number into the reported output on failure, as well as additional text specified by the caller.
| shouldBeTrue | The condition to test. The condition is evaluated in a boolean context. |
| reason | Optional added text to output on a failure. |
| file | The source code file where the test failed. |
| line | The source code line number where the test failed. |
true if the test condition indicates success.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
staticprivateinherited |
|
privateinherited |
| std::size_t const ripple::NodeStore::Timing_test::default_repeat = 3 |
Definition at line 132 of file Timing_test.cpp.
| std::size_t const ripple::NodeStore::Timing_test::default_items = 10000 |
Definition at line 134 of file Timing_test.cpp.
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
inherited |
|
inherited |