rippled
Loading...
Searching...
No Matches
testline.h
1#ifndef XRPL_TEST_JTX_TESTLINE_H_INCLUDED
2#define XRPL_TEST_JTX_TESTLINE_H_INCLUDED
3
4#include <test/jtx/Env.h>
5
6namespace xrpl {
7namespace test {
8namespace jtx {
9
15{
16private:
17 int line_;
18
19public:
20 explicit testline(int line) : line_(line)
21 {
22 }
23
24 void
25 operator()(Env&, JTx& jt) const;
26};
27
28#define THISLINE testline(__LINE__)
29
30} // namespace jtx
31} // namespace test
32} // namespace xrpl
33
34#endif
A transaction testing environment.
Definition Env.h:102
Store the line number of the current test in a JTx.
Definition testline.h:15
void operator()(Env &, JTx &jt) const
Definition testline.cpp:8
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
Execution context for applying a JSON transaction.
Definition JTx.h:26