LCOV - code coverage report
Current view: top level - irohad/model/commands - append_role.hpp (source / functions) Hit Total Coverage
Test: cleared_cor.info Lines: 1 1 100.0 %
Date: 2019-03-07 14:46:43 Functions: 8 9 88.9 %

          Line data    Source code
       1             : /**
       2             :  * Copyright Soramitsu Co., Ltd. All Rights Reserved.
       3             :  * SPDX-License-Identifier: Apache-2.0
       4             :  */
       5             : #ifndef IROHA_APPEND_ROLE_HPP
       6             : #define IROHA_APPEND_ROLE_HPP
       7             : 
       8             : #include <string>
       9             : #include "model/command.hpp"
      10             : 
      11             : namespace iroha {
      12             :   namespace model {
      13             : 
      14             :     /**
      15             :      * Add role to account
      16             :      */
      17             :     struct AppendRole : public Command {
      18             :       /**
      19             :        * Account to which add new role
      20             :        */
      21             :       std::string account_id;
      22             :       /**
      23             :        * Role to add to account
      24             :        */
      25             :       std::string role_name;
      26             : 
      27             :       bool operator==(const Command &command) const override;
      28             : 
      29             :       AppendRole() {}
      30             : 
      31             :       AppendRole(const std::string &account_id_, const std::string &role_name_)
      32           6 :           : account_id(account_id_), role_name(role_name_) {}
      33             :     };
      34             :   }  // namespace model
      35             : }  // namespace iroha
      36             : #endif  // IROHA_APPEND_ROLE_HPP

Generated by: LCOV version 1.13