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

Function test_dict_resolver_hex

tests_python/test_resolvers.py:28–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26
27
28def test_dict_resolver_hex():
29 from _pydevd_bundle.pydevd_resolver import DictResolver
30
31 dict_resolver = DictResolver()
32 dct = {(1, 10, 100): (10000, 100000, 100000)}
33 contents_debug_adapter_protocol = clear_contents_debug_adapter_protocol(
34 dict_resolver.get_contents_debug_adapter_protocol(dct, fmt={"hex": True})
35 )
36 len_entry = contents_debug_adapter_protocol.pop(-1)
37 check_len_entry(len_entry, (GENERATED_LEN_ATTR_NAME, 1))
38 assert contents_debug_adapter_protocol == [
39 ("(0x1, 0xa, 0x64)", (10000, 100000, 100000), "[(1, 10, 100)]"),
40 ]
41
42
43def test_object_resolver_simple():

Callers

nothing calls this directly

Calls 5

DictResolverClass · 0.90
check_len_entryFunction · 0.85
popMethod · 0.80

Tested by

no test coverage detected