LCOV - code coverage report
Current view: top level - iroha-cli/impl - transaction_response_handler.cpp (source / functions) Hit Total Coverage
Test: cleared_cor.info Lines: 0 5 0.0 %
Date: 2019-03-07 14:46:43 Functions: 0 3 0.0 %

          Line data    Source code
       1             : /**
       2             :  * Copyright Soramitsu Co., Ltd. All Rights Reserved.
       3             :  * SPDX-License-Identifier: Apache-2.0
       4             :  */
       5             : #include "transaction_response_handler.hpp"
       6             : #include "logger/logger.hpp"
       7             : 
       8             : namespace iroha_cli {
       9             : 
      10             :   void TransactionResponseHandler::handle(
      11             :       const CliClient::TxStatus status) const {
      12           0 :     switch (status) {
      13             :       case iroha_cli::CliClient::OK:
      14           0 :         log_->info("Transaction successfully sent");
      15           0 :         break;
      16             :         /*
      17             :       case iroha_cli::CliClient::NOT_VALID:
      18             :         log_->error("Transaction is not valid");
      19             :         break;
      20             :          */
      21             :     }
      22           0 :   }
      23             :   TransactionResponseHandler::TransactionResponseHandler(logger::LoggerPtr log)
      24           0 :       : log_(std::move(log)) {}
      25             : 
      26             : }  // namespace iroha_cli

Generated by: LCOV version 1.13