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

Method test_ljust

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

Source from the content-addressed store, hash-verified

242
243 @bigmemtest(size=_2G + 10, memuse=1)
244 def test_ljust(self, size):
245 _ = self.from_latin1
246 SUBSTR = _(' abc def ghi')
247 s = SUBSTR.ljust(size)
248 self.assertTrue(s.startswith(SUBSTR + _(' ')))
249 self.assertEqual(len(s), size)
250 self.assertEqual(s.strip(), SUBSTR.strip())
251
252 @bigmemtest(size=_2G + 10, memuse=2)
253 def test_lower(self, size):

Callers

nothing calls this directly

Calls 7

lenFunction · 0.85
assertTrueMethod · 0.80
_Function · 0.70
ljustMethod · 0.45
startswithMethod · 0.45
assertEqualMethod · 0.45
stripMethod · 0.45

Tested by

no test coverage detected