LCOV - code coverage report
Current view: top level - shared_model/backend/protobuf/query_responses/impl - proto_signatories_response.cpp (source / functions) Hit Total Coverage
Test: coverage_cleared.info Lines: 8 9 88.9 %
Date: 2018-12-05 17:11:35 Functions: 7 20 35.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 "backend/protobuf/query_responses/proto_signatories_response.hpp"
       7             : 
       8             : namespace shared_model {
       9             :   namespace proto {
      10             : 
      11             :     template <typename QueryResponseType>
      12             :     SignatoriesResponse::SignatoriesResponse(QueryResponseType &&queryResponse)
      13          25 :         : CopyableProto(std::forward<QueryResponseType>(queryResponse)),
      14          25 :           signatoriesResponse_{proto_->signatories_response()},
      15             :           keys_{[this] {
      16          14 :             return interface::types::PublicKeyCollectionType(
      17          14 :                 signatoriesResponse_.keys().begin(),
      18          14 :                 signatoriesResponse_.keys().end());
      19          25 :           }} {}
      20             : 
      21             :     template SignatoriesResponse::SignatoriesResponse(
      22             :         SignatoriesResponse::TransportType &);
      23             :     template SignatoriesResponse::SignatoriesResponse(
      24             :         const SignatoriesResponse::TransportType &);
      25             :     template SignatoriesResponse::SignatoriesResponse(
      26             :         SignatoriesResponse::TransportType &&);
      27             : 
      28             :     SignatoriesResponse::SignatoriesResponse(const SignatoriesResponse &o)
      29           0 :         : SignatoriesResponse(o.proto_) {}
      30             : 
      31             :     SignatoriesResponse::SignatoriesResponse(SignatoriesResponse &&o)
      32          25 :         : SignatoriesResponse(std::move(o.proto_)) {}
      33             : 
      34             :     const interface::types::PublicKeyCollectionType &SignatoriesResponse::keys()
      35             :         const {
      36          16 :       return *keys_;
      37             :     }
      38             : 
      39             :   }  // namespace proto
      40             : }  // namespace shared_model

Generated by: LCOV version 1.13