LCOV - code coverage report
Current view: top level - adump/common - exception_dump_interface.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 4 4
Test Date: 2026-07-28 10:54:24 Functions: 80.0 % 5 4

            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              : #ifndef ADUMP_COMMON_EXCEPTION_DUMP_INTERFACE_H
      11              : #define ADUMP_COMMON_EXCEPTION_DUMP_INTERFACE_H
      12              : 
      13              : #include <cstdint>
      14              : 
      15              : namespace Adx {
      16              : 
      17              : // Exception Dump(L1)特性下的平台子行为差异。L1 主路径全平台一致,仅 MC2 spaces dump 与
      18              : // args 数据类型基准两个子行为有平台差异。所有平台都注册此接口,未覆盖的方法走基类默认值。
      19              : class ExceptionDumpInterface {
      20              : public:
      21           33 :     virtual ~ExceptionDumpInterface() = default;
      22              : 
      23            7 :     virtual bool SupportMc2SpacesDump() const { return false; }
      24            6 :     virtual uint64_t GetMc2StructSize() const { return 0; }        // 910_93 子型号判断内聚于 V2 实现
      25            3 :     virtual bool IsArgsDataTypeSizeByByte() const { return false; }
      26              : };
      27              : 
      28              : } // namespace Adx
      29              : #endif // ADUMP_COMMON_EXCEPTION_DUMP_INTERFACE_H
        

Generated by: LCOV version 2.0-1