MCPcopy Create free account
hub / github.com/google/clusterfuzz / match_assert

Method match_assert

src/clusterfuzz/stacktraces/__init__.py:319–325  ·  view source on GitHub ↗

Match an assert.

(self, line, state, regex, group=1)

Source from the content-addressed store, hash-verified

317 state.crash_state = '%s in %s\n' % (failure_string, source_file)
318
319 def match_assert(self, line, state, regex, group=1):
320 """Match an assert."""
321 assert_match = self.update_state_on_match(
322 regex, line, state, new_type='ASSERT', new_frame_count=1)
323 if assert_match and assert_match.group(group):
324 # For asserts, we want to actually use the match as the crash state.
325 state.crash_state = assert_match.group(group) + '\n'
326
327 def filter_crash_parameters(self, state):
328 """Normalize crash parameters into generic format regardless of the tool

Callers 1

parseMethod · 0.95

Calls 2

update_state_on_matchMethod · 0.95
groupMethod · 0.80

Tested by

no test coverage detected