LCOV - code coverage report
Current view: top level - irohad/model/queries - get_roles.hpp (source / functions) Hit Total Coverage
Test: cleared_cor.info Lines: 1 1 100.0 %
Date: 2019-03-07 14:46:43 Functions: 10 12 83.3 %

          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_GET_ROLES_HPP
       7             : #define IROHA_GET_ROLES_HPP
       8             : 
       9             : #include "model/query.hpp"
      10             : 
      11             : namespace iroha {
      12             :   namespace model {
      13             :     /**
      14             :      * Get all roles in the current system
      15             :      */
      16             :     struct GetRoles : Query {
      17             :       GetRoles() {}
      18             :     };
      19             : 
      20             :     /**
      21             :      * Get all permissions related to specific role
      22             :      */
      23             :     struct GetRolePermissions : Query {
      24             :       GetRolePermissions() {}
      25             : 
      26             :       GetRolePermissions(std::string role_id) : role_id(role_id) {}
      27             :       /**
      28             :        * Role to query
      29             :        */
      30           1 :       std::string role_id{};
      31             :     };
      32             :   }  // namespace model
      33             : }  // namespace iroha
      34             : 
      35             : #endif  // IROHA_GET_ROLES_HPP

Generated by: LCOV version 1.13