MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_strip

Method test_strip

Lib/test/test_bigmem.py:412–421  ·  view source on GitHub ↗
(self, size)

Source from the content-addressed store, hash-verified

410
411 @bigmemtest(size=_2G, memuse=1)
412 def test_strip(self, size):
413 _ = self.from_latin1
414 SUBSTR = _(' abc def ghi ')
415 s = SUBSTR.rjust(size)
416 self.assertEqual(len(s), size)
417 self.assertEqual(s.strip(), SUBSTR.strip())
418 del s
419 s = SUBSTR.ljust(size)
420 self.assertEqual(len(s), size)
421 self.assertEqual(s.strip(), SUBSTR.strip())
422
423 def _test_swapcase(self, size):
424 _ = self.from_latin1

Callers

nothing calls this directly

Calls 6

lenFunction · 0.85
_Function · 0.70
rjustMethod · 0.45
assertEqualMethod · 0.45
stripMethod · 0.45
ljustMethod · 0.45

Tested by

no test coverage detected