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

Method test_isspace

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

Source from the content-addressed store, hash-verified

200
201 @bigmemtest(size=_2G, memuse=2)
202 def test_isspace(self, size):
203 _ = self.from_latin1
204 whitespace = _(' \f\n\r\t\v')
205 repeats = size // len(whitespace) + 2
206 s = whitespace * repeats
207 self.assertTrue(s.isspace())
208 s += _('j')
209 self.assertFalse(s.isspace())
210
211 @bigmemtest(size=_2G, memuse=2)
212 def test_istitle(self, size):

Callers

nothing calls this directly

Calls 5

lenFunction · 0.85
assertTrueMethod · 0.80
assertFalseMethod · 0.80
_Function · 0.70
isspaceMethod · 0.45

Tested by

no test coverage detected