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

Function testRemoveAll

Modules/Core/test/mitkPlanePositionManagerTest.cpp:238–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238int testRemoveAll()
239{
240 MITK_TEST_OUTPUT(<< "Starting Test: ######### R e m o v e A l l #########");
241
242 unsigned int numPos = m_Service->GetNumberOfPlanePositions();
243 MITK_INFO << numPos;
244
245 m_Service->RemoveAllPlanePositions();
246
247 bool error(true);
248
249 error = (m_Service->GetNumberOfPlanePositions() != 0 || m_Service->GetPlanePosition(60) != nullptr);
250
251 if (error)
252 {
253 MITK_TEST_CONDITION(m_Service->GetNumberOfPlanePositions() == 0, "Testing remove all pos");
254 MITK_TEST_CONDITION(m_Service->GetPlanePosition(60) == nullptr, "Testing remove all pos");
255 return EXIT_FAILURE;
256 }
257 return EXIT_SUCCESS;
258}
259
260int mitkPlanePositionManagerTest(int, char *[])
261{

Callers 1

Calls 3

GetPlanePositionMethod · 0.80

Tested by

no test coverage detected