MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / test_boundary

Method test_boundary

tests_python/test_safe_repr.py:283–296  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

281 # raise NotImplementedError
282
283 def test_boundary(self):
284 items1 = range(SafeRepr.maxcollection[0] - 1)
285 items2 = range(SafeRepr.maxcollection[0])
286 items3 = range(SafeRepr.maxcollection[0] + 1)
287 c1 = self.CLASS(items1)
288 c2 = self.CLASS(items2)
289 c3 = self.CLASS(items3)
290 expected1 = self.combine(items1)
291 expected2 = self.combine(items2[:-1], large=True)
292 expected3 = self.combine(items3[:-2], large=True)
293
294 self.assert_unchanged(c1, expected1)
295 self.assert_shortened(c2, expected2)
296 self.assert_shortened(c3, expected3)
297
298 def test_nested(self):
299 ctype = self.CLASS

Callers

nothing calls this directly

Calls 3

combineMethod · 0.95
assert_unchangedMethod · 0.80
assert_shortenedMethod · 0.80

Tested by

no test coverage detected