LCOV - code coverage report
Current view: top level - build/protobuf_generated - ping.grpc.pb.cc (source / functions) Hit Total Coverage
Test: casacpp_coverage.info Lines: 0 23 0.0 %
Date: 2024-10-10 15:00:01 Functions: 0 10 0.0 %

          Line data    Source code
       1             : // Generated by the gRPC C++ plugin.
       2             : // If you make any local change, they will be lost.
       3             : // source: ping.proto
       4             : 
       5             : #include "ping.pb.h"
       6             : #include "ping.grpc.pb.h"
       7             : 
       8             : #include <functional>
       9             : #include <grpcpp/impl/codegen/async_stream.h>
      10             : #include <grpcpp/impl/codegen/async_unary_call.h>
      11             : #include <grpcpp/impl/codegen/channel_interface.h>
      12             : #include <grpcpp/impl/codegen/client_unary_call.h>
      13             : #include <grpcpp/impl/codegen/client_callback.h>
      14             : #include <grpcpp/impl/codegen/method_handler_impl.h>
      15             : #include <grpcpp/impl/codegen/rpc_service_method.h>
      16             : #include <grpcpp/impl/codegen/server_callback.h>
      17             : #include <grpcpp/impl/codegen/service_type.h>
      18             : #include <grpcpp/impl/codegen/sync_stream.h>
      19             : namespace casatools {
      20             : namespace rpc {
      21             : 
      22             : static const char* Ping_method_names[] = {
      23             :   "/casatools.rpc.Ping/now",
      24             : };
      25             : 
      26           0 : std::unique_ptr< Ping::Stub> Ping::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
      27             :   (void)options;
      28           0 :   std::unique_ptr< Ping::Stub> stub(new Ping::Stub(channel));
      29           0 :   return stub;
      30             : }
      31             : 
      32           0 : Ping::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel)
      33           0 :   : channel_(channel), rpcmethod_now_(Ping_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
      34           0 :   {}
      35             : 
      36           0 : ::grpc::Status Ping::Stub::now(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::google::protobuf::Empty* response) {
      37           0 :   return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_now_, context, request, response);
      38             : }
      39             : 
      40           0 : void Ping::Stub::experimental_async::now(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)> f) {
      41           0 :   return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_now_, context, request, response, std::move(f));
      42             : }
      43             : 
      44           0 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Ping::Stub::AsyncnowRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
      45           0 :   return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_now_, context, request, true);
      46             : }
      47             : 
      48           0 : ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* Ping::Stub::PrepareAsyncnowRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
      49           0 :   return ::grpc::internal::ClientAsyncResponseReaderFactory< ::google::protobuf::Empty>::Create(channel_.get(), cq, rpcmethod_now_, context, request, false);
      50             : }
      51             : 
      52           0 : Ping::Service::Service() {
      53           0 :   AddMethod(new ::grpc::internal::RpcServiceMethod(
      54             :       Ping_method_names[0],
      55             :       ::grpc::internal::RpcMethod::NORMAL_RPC,
      56           0 :       new ::grpc::internal::RpcMethodHandler< Ping::Service, ::google::protobuf::Empty, ::google::protobuf::Empty>(
      57           0 :           std::mem_fn(&Ping::Service::now), this)));
      58           0 : }
      59             : 
      60           0 : Ping::Service::~Service() {
      61           0 : }
      62             : 
      63           0 : ::grpc::Status Ping::Service::now(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response) {
      64             :   (void) context;
      65             :   (void) request;
      66             :   (void) response;
      67           0 :   return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
      68             : }
      69             : 
      70             : 
      71             : }  // namespace casatools
      72             : }  // namespace rpc
      73             : 

Generated by: LCOV version 1.16