|
xrpld
|


Classes | |
| struct | Params |
| class | ParallelForLambda |
Public Types | |
| 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 | parallelFor (std::size_t const n, std::size_t numberOfThreads, Args const &... args) |
| template<class Body, class... Args> | |
| void | parallelForId (std::size_t const n, std::size_t numberOfThreads, Args const &... args) |
| void | doInsert (Section const &config, Params const ¶ms, beast::Journal journal) |
| void | doFetch (Section const &config, Params const ¶ms, beast::Journal journal) |
| void | doMissing (Section const &config, Params const ¶ms, beast::Journal journal) |
| void | doMixed (Section const &config, Params const ¶ms, beast::Journal journal) |
| void | doWork (Section const &config, Params const ¶ms, beast::Journal journal) |
| duration_type | doTest (test_func f, Section const &config, Params const ¶ms, beast::Journal journal) |
| void | doTests (std::size_t threads, test_list const &tests, std::vector< std::string > const &configStrings) |
| 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 | toString (Section const &config) |
| static std::string | toString (duration_type const &d) |
| static Section | parse (std::string s) |
| static Suite * | thisSuite () |
| Returns the "current" running suite. | |
Public Attributes | |
| std::size_t const | defaultRepeat = 3 |
| std::size_t const | defaultItems = 10000 |
| LogOs< char > | log |
| Logging output stream. | |
| TestcaseT | testcase |
| Memberspace for declaring test cases. | |
Static Public Attributes | |
| static constexpr auto | kMissingNodePercent = 20 |
Private Member Functions | |
| void | propagateAbort () const |
Static Private Member Functions | |
| static Suite ** | pThisSuite () |
Private Attributes | |
| bool | abort_ = false |
| bool | aborted_ = false |
| Runner * | runner_ = nullptr |
Definition at line 139 of file Timing_test.cpp.
Definition at line 151 of file Timing_test.cpp.
Definition at line 152 of file Timing_test.cpp.
| using xrpl::NodeStore::Timing_test::test_func = void (Timing_test::*)(Section const&, Params const&, beast::Journal) |
Definition at line 620 of file Timing_test.cpp.
Definition at line 621 of file Timing_test.cpp.
|
static |
Definition at line 161 of file Timing_test.cpp.
|
static |
Definition at line 170 of file Timing_test.cpp.
|
static |
Definition at line 178 of file Timing_test.cpp.
| void xrpl::NodeStore::Timing_test::parallelFor | ( | std::size_t const | n, |
| std::size_t | numberOfThreads, | ||
| Args const &... | args ) |
Definition at line 226 of file Timing_test.cpp.
| void xrpl::NodeStore::Timing_test::parallelForId | ( | std::size_t const | n, |
| std::size_t | numberOfThreads, | ||
| Args const &... | args ) |
Definition at line 239 of file Timing_test.cpp.
| void xrpl::NodeStore::Timing_test::doInsert | ( | Section const & | config, |
| Params const & | params, | ||
| beast::Journal | journal ) |
Definition at line 254 of file Timing_test.cpp.
| void xrpl::NodeStore::Timing_test::doFetch | ( | Section const & | config, |
| Params const & | params, | ||
| beast::Journal | journal ) |
Definition at line 303 of file Timing_test.cpp.
| void xrpl::NodeStore::Timing_test::doMissing | ( | Section const & | config, |
| Params const & | params, | ||
| beast::Journal | journal ) |
Definition at line 363 of file Timing_test.cpp.
| void xrpl::NodeStore::Timing_test::doMixed | ( | Section const & | config, |
| Params const & | params, | ||
| beast::Journal | journal ) |
Definition at line 429 of file Timing_test.cpp.
| void xrpl::NodeStore::Timing_test::doWork | ( | Section const & | config, |
| Params const & | params, | ||
| beast::Journal | journal ) |
Definition at line 514 of file Timing_test.cpp.
| duration_type xrpl::NodeStore::Timing_test::doTest | ( | test_func | f, |
| Section const & | config, | ||
| Params const & | params, | ||
| beast::Journal | journal ) |
Definition at line 624 of file Timing_test.cpp.
| void xrpl::NodeStore::Timing_test::doTests | ( | std::size_t | threads, |
| test_list const & | tests, | ||
| std::vector< std::string > const & | configStrings ) |
Definition at line 632 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. |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
staticprivateinherited |
|
privateinherited |
|
staticconstexpr |
Definition at line 142 of file Timing_test.cpp.
| std::size_t const xrpl::NodeStore::Timing_test::defaultRepeat = 3 |
Definition at line 144 of file Timing_test.cpp.
| std::size_t const xrpl::NodeStore::Timing_test::defaultItems = 10000 |
Definition at line 146 of file Timing_test.cpp.
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
inherited |