A test results provides results from the run of a test.
More...
#include <test_results.h>
Inherits node.
A test results provides results from the run of a test.
Guaranteed Properties
- The value of this node's log messages property contains the messages logged during the run of a test.
- The value of this node's log priority counts property contains a count of each of the priorities of the messages logged during the run of a test. It can be indexed by the enumerators of
log_priority_enum.
Guaranteed Nodes
- This node's test_graph
node child node contains a copy of the test graph at it existed when the test completed.
Object Diagram
◆ test_results()
| cppgraph::test_results::test_results |
( |
node_handle const & |
h_graph | ) |
|
|
protected |
Construction.
- Parameters
-
| h_graph | Node to set as this node's test graph child node. |
◆ get_const_log_messages()
| utf8_string const& cppgraph::test_results::get_const_log_messages |
( |
| ) |
const |
|
inline |
[auto-generated] log_messages property access.
- Returns
- The value of this node's log_messages property.
◆ get_const_log_priority_counts()
| i32_array const& cppgraph::test_results::get_const_log_priority_counts |
( |
| ) |
const |
|
inline |
[auto-generated] log_priority_counts property access.
- Returns
- The value of this node's log_priority_counts property.
◆ get_handle_to_const_log_messages()
[auto-generated] log_messages property handle access.
- Returns
- A handle to this node's log_messages property.
◆ get_handle_to_const_log_priority_counts()
[auto-generated] log_priority_counts property handle access.
- Returns
- A handle to this node's log_priority_counts property.
◆ get_handle_to_log_messages()
[auto-generated] log_messages property handle access.
- Returns
- A handle to this node's log_messages property.
- Exceptions
-
| exception | There is more than 1 matching property. |
| exception | There is no matching property.` |
◆ get_handle_to_log_priority_counts()
[auto-generated] log_priority_counts property handle access.
- Returns
- A handle to this node's log_priority_counts property.
- Exceptions
-
| exception | There is more than 1 matching property. |
| exception | There is no matching property.` |
◆ get_log_messages()
| utf8_string& cppgraph::test_results::get_log_messages |
( |
| ) |
const |
|
inlineprotected |
[auto-generated] log_messages property access.
- Returns
- The value of this node's log_messages property.
◆ get_log_priority_counts()
| i32_array& cppgraph::test_results::get_log_priority_counts |
( |
| ) |
const |
|
inlineprotected |
[auto-generated] log_priority_counts property access.
- Returns
- The value of this node's log_priority_counts property.
◆ get_test_graph_node_child()
[auto-generated] cppgraph :: node child node with link name test_graph access.
- Returns
- The
cppgraph :: node child node with link name test_graph . It is guaranteed not to be nullptr.
- Exceptions
-
| exception | There is no cppgraph :: node child node with link name test_graph . |
| exception | There is more than one cppgraph :: node child node with link name test_graph . |
◆ set_handle_to_log_messages()
[auto-generated] Attaches the guaranteed property log_messages to this node and assigns it a specified value.
- Parameters
-
| h_property | Value to assign to this node's log_messages property. |
◆ set_handle_to_log_priority_counts()
[auto-generated] Attaches the guaranteed property log_priority_counts to this node and assigns it a specified value.
- Parameters
-
| h_property | Value to assign to this node's log_priority_counts property. |
◆ set_log_messages()
| void cppgraph::test_results::set_log_messages |
( |
utf8_string const & |
property | ) |
const |
|
inlineprotected |
[auto-generated] Assigns a specified value to this node's log_messages property.
- Parameters
-
| property | Value to assign to this node's log_messages property. |
◆ set_log_priority_counts()
| void cppgraph::test_results::set_log_priority_counts |
( |
i32_array const & |
property | ) |
const |
|
inlineprotected |
[auto-generated] Assigns a specified value to this node's log_priority_counts property.
- Parameters
-
| property | Value to assign to this node's log_priority_counts property. |
◆ set_test_graph_node_child()
[auto-generated] Replaces the child node with link name test_graph and type of, or derived from, cppgraph :: node .
- Parameters
-
| h_node | Handle to a node to replace the existing node. |
- Returns
- A handle to the node that was replaced. It is guaranteed not to be
nullptr.
- Exceptions
-
| exception | There is no existing node with link name test_graph and type of or derived from cppgraph :: node . |
| exception | There is more than 1 existing node with link name test_graph and type of or derived from cppgraph :: node . |
| exception | h_node is nullptr. |
◆ log_messages_link_name
[auto-generated] Returns the link_name_t of property log_messages .
- Returns
- The
link_name_t of property log_messages .
◆ log_priority_counts_link_name
| const cppgraph::link_name_t cppgraph::test_results::log_priority_counts_link_name { "log_priority_counts" } |
|
inlinestatic |
[auto-generated] Returns the link_name_t of property log_priority_counts .
- Returns
- The
link_name_t of property log_priority_counts .
◆ test_graph_link_name
[auto-generated] Returns the link_name_t of property test_graph .
- Returns
- The
link_name_t of property test_graph .
The documentation for this struct was generated from the following files:
- c:/cppgraph/lib/cppgraph/test/test_results.h
- c:/cppgraph/lib/cppgraph/test/test_results.cpp