|
Hegel 0.18.2
Property-based testing for C++
|
A document of its own, outside a test case. More...
#include <printer.h>
Public Member Functions | |
| Document (std::size_t max_width=79) | |
| Make an empty document. | |
| Document (const Document &)=delete | |
| Document & | operator= (const Document &)=delete |
| Printer & | printer () |
| The printer that writes to this document. | |
| std::string | finish () && |
| Lay out the document and return it. | |
A document of its own, outside a test case.
Use it to check what a printing function writes.
|
explicit |
Make an empty document.
| max_width | The width the engine lays the document out in. |
| std::runtime_error | if max_width is 0. |
| std::string hegel::Document::finish | ( | ) | && |
Lay out the document and return it.
Later writes to the document's printers are discarded.
|
inline |
The printer that writes to this document.