MCPcopy Index your code
hub / github.com/python/cpython / check_wrap

Method check_wrap

Lib/test/test_textwrap.py:35–37  ·  view source on GitHub ↗
(self, text, width, expect, **kwargs)

Source from the content-addressed store, hash-verified

33 self.show(expect), self.show(result)))
34
35 def check_wrap(self, text, width, expect, **kwargs):
36 result = wrap(text, width, **kwargs)
37 self.check(result, expect)
38
39 def check_split(self, text, expect):
40 result = self.wrapper._split(text)

Callers 15

test_simpleMethod · 0.80
test_empty_stringMethod · 0.80
test_whitespaceMethod · 0.80
test_wrap_shortMethod · 0.80
test_wrap_short_1lineMethod · 0.80
test_hyphenatedMethod · 0.80
test_em_dashMethod · 0.80
test_unix_optionsMethod · 0.80

Calls 2

checkMethod · 0.95
wrapFunction · 0.90

Tested by

no test coverage detected