ValidationReport Class
Report produced by running a ContractRegistry. More...
Declaration
Included Headers
Public Constructors Index
| ValidationReport ()=default | |
Public Member Functions Index
| void | add_issue (ValidationIssue issue) |
| void | add_info (std::string contract_id, std::string code, std::string msg, int node_index=-1, std::string node_kind={}, std::string node_label={}) |
| void | add_warning (std::string contract_id, std::string code, std::string msg, int node_index=-1, std::string node_kind={}, std::string node_label={}) |
| void | add_error (std::string contract_id, std::string code, std::string msg, int node_index=-1, std::string node_kind={}, std::string node_label={}) |
| void | note_contract_run (std::string id) |
| void | set_mode (int mode) |
| int | mode () const |
| const std::vector< ValidationIssue > & | issues () const noexcept |
| const std::vector< std::string > & | contracts_run () const noexcept |
| bool | ok () const noexcept |
| bool | has_errors () const noexcept |
| std::size_t | error_count () const noexcept |
| std::size_t | warning_count () const noexcept |
| std::size_t | info_count () const noexcept |
| std::string | to_string () const |
| std::string | to_json () const |
Private Member Attributes Index
| int | mode_ = 0 |
| std::vector< std::string > | contracts_run_ |
| std::vector< ValidationIssue > | issues_ |
Private Static Functions Index
| static std::string | json_escape_ (const std::string &s) |
Description
Report produced by running a ContractRegistry.
STL-only, CI-friendly, safe to serialize.
Definition at line 60 of file ValidationReport.h.
Public Constructors
ValidationReport()
| default |
Definition at line 62 of file ValidationReport.h.
Public Member Functions
add_error()
| inline |
Definition at line 81 of file ValidationReport.h.
add_info()
| inline |
Definition at line 69 of file ValidationReport.h.
add_issue()
| inline |
Definition at line 65 of file ValidationReport.h.
add_warning()
| inline |
Definition at line 75 of file ValidationReport.h.
contracts_run()
| inline noexcept |
Definition at line 103 of file ValidationReport.h.
error_count()
| inline noexcept |
Definition at line 119 of file ValidationReport.h.
has_errors()
| inline noexcept |
Definition at line 111 of file ValidationReport.h.
info_count()
| inline noexcept |
Definition at line 135 of file ValidationReport.h.
issues()
| inline noexcept |
Definition at line 100 of file ValidationReport.h.
mode()
| inline |
Definition at line 95 of file ValidationReport.h.
note_contract_run()
| inline |
Definition at line 87 of file ValidationReport.h.
ok()
| inline noexcept |
Definition at line 107 of file ValidationReport.h.
set_mode()
| inline |
to_json()
| inline |
Definition at line 169 of file ValidationReport.h.
to_string()
| inline |
Definition at line 144 of file ValidationReport.h.
warning_count()
| inline noexcept |
Definition at line 127 of file ValidationReport.h.
Private Member Attributes
contracts_run_
|
Definition at line 253 of file ValidationReport.h.
issues_
|
Definition at line 254 of file ValidationReport.h.
mode_
|
Definition at line 252 of file ValidationReport.h.
Private Static Functions
json_escape_()
| inline static |
Definition at line 210 of file ValidationReport.h.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.