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

Method testReturnByValue

Common/Core/Testing/Python/TestStrings.py:36–42  ·  view source on GitHub ↗

Return a string by value.

(self)

Source from the content-addressed store, hash-verified

34 self.assertEqual('y', 'y')
35
36 def testReturnByValue(self):
37 """Return a string by value."""
38 a = vtkArray.CreateArray(1, VTK_INT)
39 a.Resize(1,1)
40 a.SetDimensionLabel(0, 'x')
41 s = a.GetDimensionLabel(0)
42 self.assertEqual(s, 'x')
43
44 def testPassByReference(self):
45 """Pass a string by reference."""

Callers

nothing calls this directly

Calls 4

SetDimensionLabelMethod · 0.80
GetDimensionLabelMethod · 0.80
CreateArrayMethod · 0.45
ResizeMethod · 0.45

Tested by

no test coverage detected