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

            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              : #ifndef TUNING_LIB_PATH_H
      12              : #define TUNING_LIB_PATH_H
      13              : 
      14              : #include <vector>
      15              : #include "path.h"
      16              : 
      17              : namespace Adx {
      18              : class LibPath {
      19              : public:
      20              :     LibPath(const LibPath&) = delete;
      21              :     LibPath& operator=(const LibPath&) = delete;
      22              :     static LibPath& Instance();
      23              :     Path GetInstallParentPath() const;
      24              :     Path GetInstallPath() const;
      25              :     std::string GetTargetPath(const std::string &concatName) const;
      26              :     std::vector<std::string> ObtainAllPluginSo(const std::string &searchPath) const;
      27              : private:
      28            3 :     LibPath(){};
      29            3 :     ~LibPath(){};
      30              :     Path GetSelfLibraryDir() const;
      31              :     Path GetSelfPath() const;
      32              :     bool IsPluginSo(const std::string &fileName) const;
      33              : };
      34              : } // namespace Adx
      35              : #endif
        

Generated by: LCOV version 2.0-1