LCOV - code coverage report
Current view: top level - apps - gdalalg_vsi.cpp (source / functions) Hit Total Coverage
Test: gdal_filtered.info Lines: 12 12 100.0 %
Date: 2026-01-08 02:20:26 Functions: 2 2 100.0 %

          Line data    Source code
       1             : /******************************************************************************
       2             :  *
       3             :  * Project:  GDAL
       4             :  * Purpose:  gdal "vsi" subcommand
       5             :  * Author:   Even Rouault <even dot rouault at spatialys.com>
       6             :  *
       7             :  ******************************************************************************
       8             :  * Copyright (c) 2025, Even Rouault <even dot rouault at spatialys.com>
       9             :  *
      10             :  * SPDX-License-Identifier: MIT
      11             :  ****************************************************************************/
      12             : 
      13             : //! @cond Doxygen_Suppress
      14             : 
      15             : #include "gdalalg_vsi.h"
      16             : 
      17             : #include "gdalalg_vsi_copy.h"
      18             : #include "gdalalg_vsi_delete.h"
      19             : #include "gdalalg_vsi_list.h"
      20             : #include "gdalalg_vsi_move.h"
      21             : #include "gdalalg_vsi_sync.h"
      22             : #include "gdalalg_vsi_sozip.h"
      23             : 
      24             : /************************************************************************/
      25             : /*                           GDALVSIAlgorithm                           */
      26             : /************************************************************************/
      27             : 
      28         102 : GDALVSIAlgorithm::GDALVSIAlgorithm()
      29         102 :     : GDALAlgorithm(NAME, DESCRIPTION, HELP_URL)
      30             : {
      31         102 :     RegisterSubAlgorithm<GDALVSICopyAlgorithm>();
      32         102 :     RegisterSubAlgorithm<GDALVSIDeleteAlgorithm>();
      33         102 :     RegisterSubAlgorithm<GDALVSIListAlgorithm>();
      34         102 :     RegisterSubAlgorithm<GDALVSIMoveAlgorithm>();
      35         102 :     RegisterSubAlgorithm<GDALVSISyncAlgorithm>();
      36         102 :     RegisterSubAlgorithm<GDALVSISOZIPAlgorithm>();
      37         102 : }
      38             : 
      39           1 : bool GDALVSIAlgorithm::RunImpl(GDALProgressFunc, void *)
      40             : {
      41           1 :     CPLError(CE_Failure, CPLE_AppDefined,
      42             :              "The Run() method should not be called directly on the \"gdal "
      43             :              "vsi\" program.");
      44           1 :     return false;
      45             : }
      46             : 
      47             : //! @endcond

Generated by: LCOV version 1.14