#include <userver/dump/operations_mock.hpp>
A Writer that appends to a string buffer (used in tests)
Definition at line 10 of file operations_mock.hpp.
Inheritance diagram for dump::MockWriter:Public Member Functions | |
| MockWriter () | |
Creates a MockWriter with an empty buffer. | |
| void | Finish () override |
| Must be called once all data has been written. | |
| std::string | Extract () && |
| template<typename T> | |
| void | Write (const T &data) |
| Writes binary data. | |
| std::string dump::MockWriter::Extract | ( | ) | && |
Extracts the built string, leaving the Writer in a valid but unspecified state
|
overridevirtual |
Must be called once all data has been written.
Write/Read | `Error` | on write operation failure |
Implements dump::Writer.
|
inherited |
Writes binary data.
Calls ADL-found Write(writer, data)
| `Error` | and any user-thrown std::exception |
Definition at line 98 of file operations.hpp.