LCOV - code coverage report
Current view: top level - src/platform/stub - platform_infos_def_stub.cpp (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 10 10
Test Date: 2026-07-28 10:52:27 Functions: 100.0 % 8 8

            Line data    Source code
       1              : /**
       2              :  * Copyright (c) 2025 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              : #include "platform_infos_def.h"
      12              : 
      13              : using std::map;
      14              : using std::string;
      15              : using namespace std;
      16              : 
      17              : namespace fe {
      18              : 
      19            1 : bool PlatFormInfos::GetPlatformRes(const std::string& label, const std::string& key, std::string& val) { return true; }
      20              : 
      21            1 : uint32_t PlatFormInfos::GetCoreNum() const { return 0; }
      22              : 
      23            2 : bool PlatFormInfos::GetPlatformResWithLock(const std::string& label, const std::string& key, std::string& val)
      24              : {
      25            2 :     return true;
      26              : }
      27              : 
      28            1 : bool PlatFormInfos::GetPlatformResWithLock(const std::string& label, std::map<std::string, std::string>& res)
      29              : {
      30            1 :     return true;
      31              : }
      32              : 
      33            2 : void PlatFormInfos::SetCoreNumByCoreType(const std::string& core_type) {}
      34              : 
      35            1 : uint32_t PlatFormInfos::GetCoreNumByType(const std::string& core_type) { return 0; }
      36              : 
      37            1 : void PlatFormInfos::SetPlatformResWithLock(const std::string& label, std::map<std::string, std::string>& res) {}
      38              : 
      39            3 : std::string PlatFormInfos::SaveToBuffer() { return ""; }
      40              : } // namespace fe
        

Generated by: LCOV version 2.0-1