LCOV - code coverage report
Current view: top level - base_comm/resources/ccu/ccu_representation/interface - ccu_loopcall.cc (source / functions) Coverage Total Hit
Test: coverage.info Lines: 33.3 % 6 2
Test Date: 2026-08-04 10:52:23 Functions: 50.0 % 2 1

            Line data    Source code
       1              : /*
       2              :  * Copyright (c) Huawei Technologies Co., Ltd. 2024-2024. All rights reserved.
       3              :  * Description: ccu representation implementation file
       4              :  * Author: sunzhepeng
       5              :  * Create: 2024-06-17
       6              :  */
       7              : 
       8              : #include "ccu_loopcall_v1.h"
       9              : 
      10              : #include "exception_util.h"
      11              : #include "ccu_api_exception.h"
      12              : 
      13              : namespace hcomm {
      14              : namespace CcuRep {
      15              : 
      16            2 : LoopCall::LoopCall(CcuRepContext *context, const std::string &label) : context(context), label(label)
      17              : {
      18              :     // repLoopCall = std::make_shared<CcuRepLoopCall>(label);
      19            2 : }
      20              : 
      21            0 : void LoopCall::AppendToContext()
      22              : {
      23            0 :     if (context == nullptr) {
      24            0 :         Hccl::THROW<Hccl::CcuApiException>("context is nullptr, loopCall");
      25              :     }
      26            0 :     return context->Append(repLoopCall);
      27              : }
      28              : 
      29              : }; // namespace CcuRep
      30              : }; // namespace hcomm
        

Generated by: LCOV version 2.0-1