|
micro-test-plus 6.0.0
µTest++ Testing Framework
|
Writes values as text, as the messages of the checks are written. More...
#include "micro-os-plus/micro-test-plus.h"
Static Public Member Functions | |
| template<class T> requires extension::printable<T> | |
| static void | append (std::string &text, const T &value) |
| Appends a value to a text, in the plain mode of the formatter. | |
Gives access to the plain mode of the expression_formatter, which is private, so that the names of the test cases generated by test_each() show their values as the messages do: the numbers without the type suffixes, and the strings and the characters unquoted. Also used by expression_formatter::append_operand() for the operands of the application types, so that their operator<< writes them as it writes them in the messages.
Definition at line 1702 of file expression-formatter.h.
|
static |
The text is moved into a local formatter, the value is appended, and the text is moved back, so that no other buffer is allocated.
| T | The type of the value, which must satisfy extension::printable. |
| text | The text to which the value is appended. |
| value | The value to append. |
The text is moved into a formatter in the plain mode, the value is appended with the same operator<< overloads as the messages, and the text is moved back.
Definition at line 844 of file expression-formatter-inlines.h.
References micro_os_plus::micro_test_plus::detail::expression_formatter::buffer_.
Referenced by micro_os_plus::micro_test_plus::detail::expression_formatter::append_operand(), micro_os_plus::micro_test_plus::detail::anonymous_namespace{expression-formatter.cpp}::append_wide_text(), and micro_os_plus::micro_test_plus::detail::test_each_value().