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

Method check_shorten

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

Source from the content-addressed store, hash-verified

1079class ShortenTestCase(BaseTestCase):
1080
1081 def check_shorten(self, text, width, expect, **kwargs):
1082 result = shorten(text, width, **kwargs)
1083 self.check(result, expect)
1084
1085 def test_simple(self):
1086 # Simple case: just words, spaces, and a bit of punctuation

Callers 5

test_simpleMethod · 0.95
test_placeholderMethod · 0.95
test_empty_stringMethod · 0.95
test_whitespaceMethod · 0.95

Calls 2

shortenFunction · 0.90
checkMethod · 0.45

Tested by

no test coverage detected