hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
validation_error_output.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_VALIDATION_ERROR_OUTPUT_HPP
7 #define IROHA_VALIDATION_ERROR_OUTPUT_HPP
8 
10 
11 #include <iosfwd>
12 #include <optional>
13 
14 namespace shared_model {
15  namespace validation {
16 
17  // Puts toString() to the stream. Useful for GTest checks.
18  std::ostream &operator<<(std::ostream &os, const ValidationError &o);
19 
20  } // namespace validation
21 } // namespace shared_model
22 
23 std::ostream &operator<<(
24  std::ostream &out,
25  const std::optional<shared_model::validation::ValidationError> &error);
26 
27 #endif
std::ostream & operator<<(std::ostream &os, const ValidationError &o)
Definition: validation_error.cpp:48
Definition: command_executor.hpp:13