LCOV - code coverage report
Current view: top level - src/engraving/infrastructure - localfileinfoprovider.cpp Coverage Total Hit
Test: filtered_coverage.info Lines: 47.4 % 19 9
Test Date: 2026-11-05 04:07:02

            Line data    Source code
       1              : /*
       2              :  * SPDX-License-Identifier: GPL-3.0-only
       3              :  * MuseScore-Studio-CLA-applies
       4              :  *
       5              :  * MuseScore Studio
       6              :  * Music Composition & Notation
       7              :  *
       8              :  * Copyright (C) 2021 MuseScore Limited and others
       9              :  *
      10              :  * This program is free software: you can redistribute it and/or modify
      11              :  * it under the terms of the GNU General Public License version 3 as
      12              :  * published by the Free Software Foundation.
      13              :  *
      14              :  * This program is distributed in the hope that it will be useful,
      15              :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      16              :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      17              :  * GNU General Public License for more details.
      18              :  *
      19              :  * You should have received a copy of the GNU General Public License
      20              :  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
      21              :  */
      22              : 
      23              : #include "localfileinfoprovider.h"
      24              : 
      25              : using namespace muse;
      26              : using namespace mu;
      27              : using namespace mu::engraving;
      28              : 
      29         3039 : LocalFileInfoProvider::LocalFileInfoProvider(const muse::io::path_t& path)
      30         3039 :     : m_path(path)
      31              : {
      32         3039 : }
      33              : 
      34            0 : bool LocalFileInfoProvider::saved() const
      35              : {
      36            0 :     return false;
      37              : }
      38              : 
      39            0 : muse::io::path_t LocalFileInfoProvider::path() const
      40              : {
      41            0 :     return io::absolutePath(m_path);
      42              : }
      43              : 
      44         1090 : muse::io::path_t LocalFileInfoProvider::fileName(bool includingExtension) const
      45              : {
      46         1090 :     return io::filename(m_path, includingExtension);
      47              : }
      48              : 
      49            5 : muse::io::path_t LocalFileInfoProvider::absoluteDirPath() const
      50              : {
      51            5 :     return io::absoluteDirpath(m_path);
      52              : }
      53              : 
      54            1 : String LocalFileInfoProvider::displayName() const
      55              : {
      56            1 :     return String::fromUtf8(fileName(/*includingExtension*/ false).c_str());
      57              : }
      58              : 
      59            0 : DateTime LocalFileInfoProvider::birthTime() const
      60              : {
      61            0 :     return fileSystem()->birthTime(m_path);
      62              : }
      63              : 
      64            0 : DateTime LocalFileInfoProvider::lastModified() const
      65              : {
      66            0 :     return fileSystem()->lastModified(m_path);
      67              : }
      68              : 
      69            0 : bool LocalFileInfoProvider::isNewlyCreated() const
      70              : {
      71            0 :     return true;
      72              : }
        

Generated by: LCOV version 2.0-1