LCOV - code coverage report
Current view: top level - shared_model/backend/protobuf/queries/impl - proto_get_block.cpp (source / functions) Hit Total Coverage
Test: cleared_cor.info Lines: 3 3 100.0 %
Date: 2019-03-07 14:46:43 Functions: 6 15 40.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/queries/proto_get_block.hpp"
       7             : 
       8             : namespace shared_model {
       9             :   namespace proto {
      10             : 
      11             :     template <typename QueryType>
      12             :     GetBlock::GetBlock(QueryType &&query)
      13           6 :         : CopyableProto(std::forward<QueryType>(query)),
      14           6 :           get_block_{proto_->payload().get_block()} {}
      15             : 
      16             :     template GetBlock::GetBlock(GetBlock::TransportType &);
      17             :     template GetBlock::GetBlock(const GetBlock::TransportType &);
      18             :     template GetBlock::GetBlock(GetBlock::TransportType &&);
      19             : 
      20             :     GetBlock::GetBlock(const GetBlock &o) : GetBlock(o.proto_) {}
      21             : 
      22             :     GetBlock::GetBlock(GetBlock &&o) noexcept : GetBlock(std::move(o.proto_)) {}
      23             : 
      24             :     interface::types::HeightType GetBlock::height() const {
      25           7 :       return get_block_.height();
      26             :     }
      27             : 
      28             :   }  // namespace proto
      29             : }  // namespace shared_model

Generated by: LCOV version 1.13