rippled
Loading...
Searching...
No Matches
ter.h
1#ifndef XRPL_TEST_JTX_TER_H_INCLUDED
2#define XRPL_TEST_JTX_TER_H_INCLUDED
3
4#include <test/jtx/Env.h>
5
6#include <tuple>
7
8namespace ripple {
9namespace test {
10namespace jtx {
11
15class ter
16{
17private:
19
20public:
21 explicit ter(decltype(std::ignore))
22 {
23 }
24
25 explicit ter(TER v) : v_(v)
26 {
27 }
28
29 void
30 operator()(Env&, JTx& jt) const
31 {
32 jt.ter = v_;
33 }
34};
35
36} // namespace jtx
37} // namespace test
38} // namespace ripple
39
40#endif
A transaction testing environment.
Definition Env.h:102
Set the expected result code for a JTx The test will fail if the code doesn't match.
Definition ter.h:16
ter(decltype(std::ignore))
Definition ter.h:21
void operator()(Env &, JTx &jt) const
Definition ter.h:30
std::optional< TER > v_
Definition ter.h:18
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
std::optional< TER > ter
Definition JTx.h:29