xrpld
Loading...
Searching...
No Matches
xrpl::test::jtx::RequireAny Class Reference

Test helper that accepts any condition supplied by a callback. More...

#include <mpt.h>

Collaboration diagram for xrpl::test::jtx::RequireAny:

Public Member Functions

 RequireAny (std::function< bool()> const &cb)
void operator() (Env &env) const

Private Attributes

std::function< bool()> cb_

Detailed Description

Test helper that accepts any condition supplied by a callback.

Definition at line 88 of file mpt.h.

Constructor & Destructor Documentation

◆ RequireAny()

xrpl::test::jtx::RequireAny::RequireAny ( std::function< bool()> const & cb)

Definition at line 94 of file mpt.h.

Member Function Documentation

◆ operator()()

void xrpl::test::jtx::RequireAny::operator() ( Env & env) const

Definition at line 125 of file mpt.cpp.

Member Data Documentation

◆ cb_

std::function<bool()> xrpl::test::jtx::RequireAny::cb_
private

Definition at line 91 of file mpt.h.