LCOV - code coverage report
Current view: top level - irohad/model/commands - detach_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             : 
       6             : #ifndef IROHA_DETACH_ROLE_HPP
       7             : #define IROHA_DETACH_ROLE_HPP
       8             : 
       9             : #include "model/command.hpp"
      10             : 
      11             : namespace iroha {
      12             :   namespace model {
      13             : 
      14             :     /**
      15             :      * Create new role in the system
      16             :      */
      17             :     struct DetachRole : public Command {
      18             :       /**
      19             :        * Account from where detach role
      20             :        */
      21             :       std::string account_id;
      22             :       /**
      23             :        * Role to detach
      24             :        */
      25             :       std::string role_name;
      26             : 
      27             :       bool operator==(const Command &command) const override;
      28             : 
      29             :       DetachRole() {}
      30             :       /**
      31             :        * @param role_name_ - name of the role in the system
      32             :        * @param perms - set of permissions for the role
      33             :        */
      34             :       DetachRole(const std::string &account_id, const std::string &role_name_)
      35           6 :           : account_id(account_id), role_name(role_name_) {}
      36             :     };
      37             :   }  // namespace model
      38             : }  // namespace iroha
      39             : 
      40             : #endif  // IROHA_DETACH_ROLE_HPP

Generated by: LCOV version 1.13