rippled
Loading...
Searching...
No Matches
ter.h
1#pragma once
2
3#include <test/jtx/Env.h>
4
5#include <tuple>
6
7namespace xrpl {
8namespace test {
9namespace jtx {
10
14class ter
15{
16private:
18
19public:
20 explicit ter(decltype(std::ignore))
21 {
22 }
23
24 explicit ter(TER v) : v_(v)
25 {
26 }
27
28 void
29 operator()(Env&, JTx& jt) const
30 {
31 jt.ter = v_;
32 }
33};
34
35} // namespace jtx
36} // namespace test
37} // namespace xrpl
A transaction testing environment.
Definition Env.h:119
Set the expected result code for a JTx The test will fail if the code doesn't match.
Definition ter.h:15
std::optional< TER > v_
Definition ter.h:17
ter(decltype(std::ignore))
Definition ter.h:20
void operator()(Env &, JTx &jt) const
Definition ter.h:29
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
Execution context for applying a JSON transaction.
Definition JTx.h:25
std::optional< TER > ter
Definition JTx.h:28