MCPcopy Index your code
hub / github.com/fabioz/PyDev.Debugger / test_tuple_resolver_mixed

Function test_tuple_resolver_mixed

tests_python/test_resolvers.py:316–333  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

314
315
316def test_tuple_resolver_mixed():
317 from _pydevd_bundle.pydevd_resolver import TupleResolver
318
319 tuple_resolver = TupleResolver()
320
321 class CustomTuple(tuple):
322 pass
323
324 my_tuple = CustomTuple([1, 2])
325 my_tuple.some_value = 10
326 contents_debug_adapter_protocol = clear_contents_debug_adapter_protocol(tuple_resolver.get_contents_debug_adapter_protocol(my_tuple))
327 len_entry = contents_debug_adapter_protocol.pop(-1)
328 check_len_entry(len_entry, (GENERATED_LEN_ATTR_NAME, 2))
329 assert contents_debug_adapter_protocol == [
330 ("some_value", 10, ".some_value"),
331 ("0", 1, "[0]"),
332 ("1", 2, "[1]"),
333 ]
334
335
336def test_tuple_resolver_ctypes():

Callers

nothing calls this directly

Calls 6

TupleResolverClass · 0.90
CustomTupleClass · 0.85
check_len_entryFunction · 0.85
popMethod · 0.80

Tested by

no test coverage detected