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

Method testDefaultInt

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

Simple test of an integer arg with default value.

(self)

Source from the content-addressed store, hash-verified

17
18class TestDefaultArgs(Testing.vtkTest):
19 def testDefaultInt(self):
20 """Simple test of an integer arg with default value."""
21 image = vtkImageData()
22 image.SetExtent(0,9,0,9,0,9)
23 image.AllocateScalars(VTK_UNSIGNED_CHAR, 1)
24 ipi = vtkImagePointIterator()
25 # call this method with the threadId parameter set to 0
26 ipi.Initialize(image, (0,9,0,9,0,9), None, None, 0)
27 # call this method without the threadId parameter
28 ipi.Initialize(image, (0,9,0,9,0,9), None, None)
29
30 def testDefaultObjectPointer(self):
31 """Test a vtkObject 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