LCOV - code coverage report
Current view: top level - irohad/model/commands - revoke_permission.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_REVOKE_PERMISSION_HPP
       7             : #define IROHA_REVOKE_PERMISSION_HPP
       8             : 
       9             : #include <string>
      10             : #include "model/command.hpp"
      11             : 
      12             : namespace iroha {
      13             :   namespace model {
      14             : 
      15             :     /**
      16             :      * Revoke permission granted before by creator to account_id
      17             :      */
      18             :     struct RevokePermission : public Command {
      19             :       /**
      20             :        * Account from which grant permission
      21             :        */
      22             :       std::string account_id;
      23             : 
      24             :       /**
      25             :        * Permission to revoke
      26             :        */
      27             :       std::string permission_name;
      28             : 
      29             :       bool operator==(const Command &command) const override;
      30             : 
      31             :       RevokePermission() {}
      32             : 
      33             :       RevokePermission(const std::string &account_id_,
      34             :                        const std::string &permission_name_)
      35           6 :           : account_id(account_id_), permission_name(permission_name_) {}
      36             :     };
      37             :   }  // namespace model
      38             : }  // namespace iroha
      39             : 
      40             : #endif  // IROHA_REVOKE_PERMISSION_HPP

Generated by: LCOV version 1.13