Skip to content

Commit

Permalink
ENH: Increase itk::DiscreteGaussianCurvatureQuadEdgeMeshFilter coverage
Browse files Browse the repository at this point in the history
Increase coverage for
`itk::DiscreteGaussianCurvatureQuadEdgeMeshFilter`: exercise basic
object methods using the `ITK_EXERCISE_BASIC_OBJECT_METHODS` macro,
and remove the inconsequential call to print the filter at the end of
the test: rely on the basic method exercising macro call.
  • Loading branch information
jhlegarreta committed Nov 8, 2023
1 parent 2cc791c commit 1972628
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ itkDiscreteGaussianCurvatureQuadEdgeMeshFilterTest(int argc, char * argv[])

auto gaussianCurvatureFilter = CurvatureFilterType::New();

ITK_EXERCISE_BASIC_OBJECT_METHODS(
gaussianCurvatureFilter, DiscreteGaussianCurvatureQuadEdgeMeshFilter, DiscreteCurvatureQuadEdgeMeshFilter);


gaussianCurvatureFilter->SetInput(mesh);
gaussianCurvatureFilter->Update();

Expand All @@ -63,8 +67,6 @@ itkDiscreteGaussianCurvatureQuadEdgeMeshFilterTest(int argc, char * argv[])
writer->SetFileName("gaussian_curvature.vtk");
writer->Update();

// ** PRINT **
std::cout << gaussianCurvatureFilter;

std::cout << "Test finished." << std::endl;
return EXIT_SUCCESS;
Expand Down

0 comments on commit 1972628

Please sign in to comment.