LCOV - code coverage report
Current view: top level - shared_model/interfaces/commands/impl - detach_role.cpp (source / functions) Hit Total Coverage
Test: coverage_cleared.info Lines: 5 7 71.4 %
Date: 2018-12-05 17:11:35 Functions: 1 2 50.0 %

          Line data    Source code
       1             : /**
       2             :  * Copyright Soramitsu Co., Ltd. All Rights Reserved.
       3             :  * SPDX-License-Identifier: Apache-2.0
       4             :  */
       5             : 
       6             : #include "interfaces/commands/detach_role.hpp"
       7             : 
       8             : namespace shared_model {
       9             :   namespace interface {
      10             : 
      11             :     std::string DetachRole::toString() const {
      12         322 :       return detail::PrettyStringBuilder()
      13         322 :           .init("DetachRole")
      14         322 :           .append("role_name", roleName())
      15         322 :           .append("account_id", accountId())
      16         322 :           .finalize();
      17           0 :     }
      18             : 
      19             :     bool DetachRole::operator==(const ModelType &rhs) const {
      20           0 :       return accountId() == rhs.accountId() and roleName() == rhs.roleName();
      21             :     }
      22             : 
      23             :   }  // namespace interface
      24             : }  // namespace shared_model

Generated by: LCOV version 1.13