LCOV - code coverage report
Current view: top level - basic_component/package_manager/inc - package_context.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 1 1
Test Date: 2026-08-12 11:03:52 Functions: 100.0 % 1 1

            Line data    Source code
       1              : /**
       2              :  * Copyright (c) 2026 Huawei Technologies Co., Ltd.
       3              :  * This program is free software, you can redistribute it and/or modify it under the terms and conditions of
       4              :  * CANN Open Software License Agreement Version 2.0 (the "License").
       5              :  * Please refer to the License for details. You may not use this file except in compliance with the License.
       6              :  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
       7              :  * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
       8              :  * See LICENSE in the root of the software repository for the full text of the License.
       9              :  */
      10              : 
      11              : #ifndef TSD_PACKAGE_CONTEXT_H
      12              : #define TSD_PACKAGE_CONTEXT_H
      13              : 
      14              : #include "basic_define.h"
      15              : 
      16              : #include <array>
      17              : #include <cstdint>
      18              : #include <string>
      19              : 
      20              : namespace tsd {
      21              : 
      22              : class PackageContext {
      23              : public:
      24          365 :     PackageContext() = default;
      25              : 
      26              :     ResponseCode pkgRspCode = ResponseCode::FAIL;
      27              :     bool deviceIdle = false;
      28              :     bool getCheckCodeRetrySupport = false;
      29              :     std::string loadPackageErrorMsg;
      30              :     bool aicpuPackageExistInDevice = false;
      31              :     std::array<uint32_t, static_cast<uint32_t>(TsdLoadPackageType::TSD_PKG_TYPE_MAX)> peerCheckCode{};
      32              :     std::array<uint32_t, static_cast<uint32_t>(TsdLoadPackageType::TSD_PKG_TYPE_MAX)> hostCheckCode{};
      33              : };
      34              : 
      35              : } // namespace tsd
      36              : 
      37              : #endif // TSD_PACKAGE_CONTEXT_H
        

Generated by: LCOV version 2.0-1