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

Method testPassByReference

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

Pass a string by reference.

(self)

Source from the content-addressed store, hash-verified

42 self.assertEqual(s, 'x')
43
44 def testPassByReference(self):
45 """Pass a string by reference."""
46 a = vtkArray.CreateArray(0, VTK_STRING)
47 a.SetName("myarray")
48 s = a.GetName()
49 self.assertEqual(s, "myarray")
50
51 def testReturnByReference(self):
52 """Return a string by reference."""

Callers

nothing calls this directly

Calls 3

CreateArrayMethod · 0.45
SetNameMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected