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

Method Test

Testing/Rendering/vtkTesting.cxx:1083–1103  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1081
1082//------------------------------------------------------------------------------
1083int vtkTesting::Test(int argc, char* argv[], vtkRenderWindow* rw, double thresh)
1084{
1085 vtkNew<vtkTesting> testing;
1086 for (int i = 0; i < argc; ++i)
1087 {
1088 testing->AddArgument(argv[i]);
1089 }
1090
1091 if (testing->IsInteractiveModeSpecified())
1092 {
1093 return DO_INTERACTOR;
1094 }
1095
1096 if (testing->IsValidImageSpecified())
1097 {
1098 testing->SetRenderWindow(rw);
1099
1100 return testing->RegressionTest(thresh, std::cout);
1101 }
1102 return NOT_RUN;
1103}
1104//------------------------------------------------------------------------------
1105int vtkTesting::CompareAverageOfL2Norm(vtkDataArray* daA, vtkDataArray* daB, double tol)
1106{

Callers

nothing calls this directly

Calls 5

IsValidImageSpecifiedMethod · 0.80
AddArgumentMethod · 0.45
SetRenderWindowMethod · 0.45
RegressionTestMethod · 0.45

Tested by

no test coverage detected