#include <userver/dump/operations_mock.hpp>
A Reader
that reads from a string buffer (used in tests)
Definition at line 28 of file operations_mock.hpp.
Public Member Functions | |
MockReader (std::string data) | |
Creates a PipeReader that references the given buffer. | |
void | Finish () override |
Must be called once all data has been read. | |
template<typename T > | |
T | Read () |
Reads binary data. | |
|
overridevirtual |
Must be called once all data has been read.
Write
/Read
`Error` | on read operation failure or if there is leftover data |
Implements dump::Reader.
|
inherited |
Reads binary data.
Calls ADL-found Read(reader, To<T>)
`Error` | and any user-thrown std::exception |
Definition at line 114 of file operations.hpp.