userver: dump::MockReader Class Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
dump::MockReader Class Referencefinal

A Reader that reads from a string buffer (used in tests) More...

#include <userver/dump/operations_mock.hpp>

+ Inheritance diagram for dump::MockReader:
+ Collaboration diagram for dump::MockReader:

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.
 
- Public Member Functions inherited from dump::Reader
template<typename T >
Read ()
 Reads binary data.
 

Additional Inherited Members

Detailed Description

A Reader that reads from a string buffer (used in tests)

Definition at line 28 of file operations_mock.hpp.

Member Function Documentation

◆ Finish()

void dump::MockReader::Finish ( )
overridevirtual

Must be called once all data has been read.

Warning
This method must not be called from within Write/Read
Exceptions
`Error`on read operation failure or if there is leftover data

Implements dump::Reader.


The documentation for this class was generated from the following file: