MCPcopy Create free account
hub / github.com/MITK/MITK / TestEmptyContour

Function TestEmptyContour

Modules/ContourModel/Testing/mitkContourModelTest.cpp:349–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349static void TestEmptyContour()
350{
351 mitk::ContourModel::Pointer contour = mitk::ContourModel::New();
352
353 MITK_TEST_CONDITION(contour->IteratorBegin() == contour->IteratorEnd(), "test iterator of empty contour");
354
355 MITK_TEST_CONDITION(contour->GetNumberOfVertices() == 0, "test numberof vertices of empty contour");
356}
357
358static void TestSetVertices()
359{

Callers 1

mitkContourModelTestFunction · 0.70

Calls 4

GetNumberOfVerticesMethod · 0.80
NewFunction · 0.50
IteratorBeginMethod · 0.45
IteratorEndMethod · 0.45

Tested by

no test coverage detected