Skip to content

Commit

Permalink
RFC104: add testing for gdal vector pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Nov 24, 2024
1 parent 5e99cf5 commit 7be0d77
Show file tree
Hide file tree
Showing 2 changed files with 616 additions and 0 deletions.
11 changes: 11 additions & 0 deletions autotest/cpp/test_gdal_algorithm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2758,6 +2758,17 @@ TEST_F(test_gdal_algorithm, GDALGlobalAlgorithmRegistry)
}
}

TEST_F(test_gdal_algorithm, vector_pipeline_GetUsageForCLI)
{
auto &singleton = GDALGlobalAlgorithmRegistry::GetSingleton();
auto vector = singleton.Instantiate("vector");
ASSERT_NE(vector, nullptr);
auto pipeline = vector->InstantiateSubAlgorithm("pipeline");
ASSERT_NE(pipeline, nullptr);
pipeline->GetUsageForCLI(false);
pipeline->GetUsageForCLI(true);
}

TEST_F(test_gdal_algorithm, registry_c_api)
{
auto reg = GDALGetGlobalAlgorithmRegistry();
Expand Down
Loading

0 comments on commit 7be0d77

Please sign in to comment.