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

Method mark_messages

tests_python/test_debugger_json.py:92–100  ·  view source on GitHub ↗
(self, expected_class, accept_message=lambda obj: True)

Source from the content-addressed store, hash-verified

90 self._sent_launch_or_attach = False
91
92 def mark_messages(self, expected_class, accept_message=lambda obj: True):
93 ret = []
94 for message_with_mark in self._all_json_messages_found:
95 if not message_with_mark.marked:
96 if isinstance(message_with_mark.msg, expected_class):
97 if accept_message(message_with_mark.msg):
98 message_with_mark.marked = True
99 ret.append(message_with_mark.msg)
100 return ret
101
102 def wait_for_json_message(self, expected_class, accept_message=lambda obj: True):
103

Calls 2

accept_messageFunction · 0.70
appendMethod · 0.45

Tested by

no test coverage detected