| 18 | } |
| 19 | |
| 20 | bool CompareData(vtkImageData* Output, vtkImageData* Input) |
| 21 | { |
| 22 | if (memcmp(Input->GetDimensions(), Output->GetDimensions(), 3 * sizeof(int)) != 0) |
| 23 | return false; |
| 24 | |
| 25 | const int point_count = |
| 26 | Input->GetDimensions()[0] * Input->GetDimensions()[1] * Input->GetDimensions()[2]; |
| 27 | for (int point = 0; point != point_count; ++point) |
| 28 | { |
| 29 | // NOLINTNEXTLINE(bugprone-suspicious-memory-comparison) |
| 30 | if (memcmp(Input->GetPoint(point), Output->GetPoint(point), 3 * sizeof(double)) != 0) |
| 31 | return false; |
| 32 | } |
| 33 | |
| 34 | return true; |
| 35 | } |
| 36 | |
| 37 | template <typename DataT> |
| 38 | bool TestDataObjectSerialization() |
no test coverage detected