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

Function _check_list

tests_python/test_debugger_json.py:2926–2943  ·  view source on GitHub ↗
(json_facade, json_hit)

Source from the content-addressed store, hash-verified

2924
2925
2926def _check_list(json_facade, json_hit):
2927 variable = json_facade.get_local_var(json_hit.frame_id, "variable_for_test_1")
2928 assert variable.value == "['a', 'b', self.var1: 11]"
2929
2930 var0 = json_facade.get_var(variable.variablesReference, "0")
2931
2932 json_facade.write_set_variable(variable.variablesReference, var0.name, "1")
2933
2934 # Check that it was actually changed.
2935 variable = json_facade.get_local_var(json_hit.frame_id, "variable_for_test_1")
2936 assert variable.value == "[1, 'b', self.var1: 11]"
2937
2938 var1 = json_facade.get_var(variable.variablesReference, "var1")
2939
2940 json_facade.write_set_variable(variable.variablesReference, var1.name, "2")
2941
2942 variable = json_facade.get_local_var(json_hit.frame_id, "variable_for_test_1")
2943 assert variable.value == "[1, 'b', self.var1: 2]"
2944
2945
2946def _check_tuple(json_facade, json_hit):

Callers

nothing calls this directly

Calls 3

get_local_varMethod · 0.80
get_varMethod · 0.80
write_set_variableMethod · 0.80

Tested by

no test coverage detected