LCOV - code coverage report
Current view: top level - ipc/server/source - IpcServerControllerImpl.cpp (source / functions) Coverage Total Hit
Test: coverage.info Lines: 45.5 % 11 5
Test Date: 2025-02-18 13:13:53 Functions: 40.0 % 5 2

            Line data    Source code
       1              : /*
       2              :  * If not stated otherwise in this file or this component's LICENSE file the
       3              :  * following copyright and licenses apply:
       4              :  *
       5              :  * Copyright 2022 Sky UK
       6              :  *
       7              :  * Licensed under the Apache License, Version 2.0 (the "License");
       8              :  * you may not use this file except in compliance with the License.
       9              :  * You may obtain a copy of the License at
      10              :  *
      11              :  * http://www.apache.org/licenses/LICENSE-2.0
      12              :  *
      13              :  * Unless required by applicable law or agreed to in writing, software
      14              :  * distributed under the License is distributed on an "AS IS" BASIS,
      15              :  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      16              :  * See the License for the specific language governing permissions and
      17              :  * limitations under the License.
      18              :  */
      19              : 
      20              : #include "IpcServerControllerImpl.h"
      21              : #include "IpcClientImpl.h"
      22              : #include <memory>
      23              : #include <string>
      24              : #include <utility>
      25              : 
      26              : namespace firebolt::rialto::ipc
      27              : {
      28           15 : ServerControllerImpl::ServerControllerImpl(std::shared_ptr<ClientImpl> client, uint64_t serialId)
      29           15 :     : m_kClient(std::move(client)), m_kSerialId(serialId)
      30              : {
      31              : }
      32              : 
      33            6 : void ServerControllerImpl::SetFailed(const std::string &reason) // NOLINT(build/function_format)
      34              : {
      35            6 :     m_failed = true;
      36            6 :     m_failureReason = reason;
      37              : }
      38              : 
      39            0 : bool ServerControllerImpl::IsCanceled() const // NOLINT(build/function_format)
      40              : {
      41              :     // neither client nor server support cancel
      42            0 :     return false;
      43              : }
      44              : 
      45            0 : void ServerControllerImpl::NotifyOnCancel(google::protobuf::Closure *callback) // NOLINT(build/function_format)
      46              : {
      47              :     // neither client nor server support cancel
      48              :     (void)callback;
      49            0 : }
      50              : 
      51            0 : std::shared_ptr<IClient> ServerControllerImpl::getClient() const
      52              : {
      53            0 :     return m_kClient;
      54              : }
      55              : 
      56              : } // namespace firebolt::rialto::ipc
        

Generated by: LCOV version 2.0-1