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

Method combine_nested

tests_python/test_safe_repr.py:246–255  ·  view source on GitHub ↗
(self, depth, items, large=False)

Source from the content-addressed store, hash-verified

244 return self._combine(items, self.LEFT, self.RIGHT, large=large)
245
246 def combine_nested(self, depth, items, large=False):
247 _, _prefix, _suffix, comma = self.info
248 prefix = _prefix * (depth + 1)
249 if comma:
250 suffix = _suffix + ("," + _suffix) * depth
251 else:
252 suffix = _suffix * (depth + 1)
253 # print("ctype = " + ctype.__name__ + ", maxcollection[" +
254 # str(i) + "] == " + str(SafeRepr.maxcollection[i]))
255 return self._combine(items, prefix, suffix, large=large)
256
257 def test_large_flat(self):
258 c1 = self.CLASS(range(SafeRepr.maxcollection[0] * 2))

Callers 1

test_nestedMethod · 0.95

Calls 1

_combineMethod · 0.95

Tested by

no test coverage detected