1#include <xrpl/beast/unit_test/suite.h>
2#include <xrpl/beast/utility/Journal.h>
57 BEAST_EXPECT(sink.
count() == 0);
59 BEAST_EXPECT(sink.
count() == 0);
61 BEAST_EXPECT(sink.
count() == 1);
63 BEAST_EXPECT(sink.
count() == 2);
65 BEAST_EXPECT(sink.
count() == 3);
67 BEAST_EXPECT(sink.
count() == 4);
74 BEAST_EXPECT(sink.
count() == 0);
76 BEAST_EXPECT(sink.
count() == 1);
78 BEAST_EXPECT(sink.
count() == 2);
80 BEAST_EXPECT(sink.
count() == 3);
82 BEAST_EXPECT(sink.
count() == 4);
84 BEAST_EXPECT(sink.
count() == 5);
Abstraction for the underlying message destination.
virtual Severity threshold() const
Returns the minimum severity level this sink will report.
Sink(Sink const &sink)=default
void writeAlways(Severity level, std::string const &) override
Bypass filter and write text to the sink at the specified severity.
void write(Severity level, std::string const &) override
Write text to the sink at the specified severity.
void run() override
Runs the suite.
A generic endpoint for log messages.
Stream trace() const
Severity stream access functions.
Severity
Severity level / threshold of a Journal message.
BEAST_DEFINE_TESTSUITE(aged_set, beast, beast)