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

Method testDefaultArray

Common/Core/Testing/Python/TestDefaultArgs.py:41–50  ·  view source on GitHub ↗

Test an array arg with default value of 0.

(self)

Source from the content-addressed store, hash-verified

39 ipi.Initialize(image, (0,9,0,9,0,9))
40
41 def testDefaultArray(self):
42 """Test an array arg with default value of 0."""
43 image = vtkImageData()
44 image.SetExtent(0,9,0,9,0,9)
45 image.AllocateScalars(VTK_UNSIGNED_CHAR, 1)
46 ipi = vtkImagePointIterator()
47 # call this method with the parameter set
48 ipi.Initialize(image, (0,9,0,9,0,9))
49 # call this method without extent parameter
50 ipi.Initialize(image)
51
52 def testDefaultPointer(self):
53 """Test a POD pointer arg with default value of 0."""

Callers

nothing calls this directly

Calls 4

vtkImageDataFunction · 0.50
SetExtentMethod · 0.45
AllocateScalarsMethod · 0.45
InitializeMethod · 0.45

Tested by

no test coverage detected