MCPcopy Create free account
hub / github.com/Kitware/VTK / TestBTSReader

Function TestBTSReader

IO/Engys/Testing/Cxx/TestBTSReader.cxx:184–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184int TestBTSReader(int argc, char* argv[])
185{
186 vtkNew<vtkTesting> testHelper;
187 testHelper->AddArguments(argc, argv);
188 if (!testHelper->IsFlagSpecified("-D"))
189 {
190 std::cerr << "Error: -D /path/to/data was not specified.";
191 return EXIT_FAILURE;
192 }
193
194 std::string tempDir =
195 vtkTestUtilities::GetArgOrEnvOrDefault("-T", argc, argv, "VTK_TEMP_DIR", "Testing/Temporary");
196
197 std::string dataRoot = testHelper->GetDataRoot();
198 std::string singlePatchBtsFile = dataRoot + "/Data/Engys/bts/2400-IDGH.bts";
199 std::string expectedSinglePatchBtsFile = dataRoot + "/Data/Engys/vtpd/2400-IDGH.vtpd";
200 if (TestReadData(singlePatchBtsFile, expectedSinglePatchBtsFile, tempDir))
201 {
202 return EXIT_FAILURE;
203 }
204
205 std::string multiplePatchesBtsFile = dataRoot + "/Data/Engys/bts/multiple_patches.bts";
206 std::string expectedMultiplePatchesBtsFile = dataRoot + "/Data/Engys/vtpd/multiple_patches.vtpd";
207 if (TestReadData(multiplePatchesBtsFile, expectedMultiplePatchesBtsFile, tempDir))
208 {
209 return EXIT_FAILURE;
210 }
211
212 return EXIT_SUCCESS;
213}

Callers

nothing calls this directly

Calls 4

TestReadDataFunction · 0.85
IsFlagSpecifiedMethod · 0.80
AddArgumentsMethod · 0.45
GetDataRootMethod · 0.45

Tested by

no test coverage detected