MCPcopy
hub / github.com/zaproxy/zaproxy / alert_to_str

Function alert_to_str

python/scripts/generic-pytest/test_zap.py:43–49  ·  view source on GitHub ↗
(alert)

Source from the content-addressed store, hash-verified

41 return "'" + element + "':'" + re.escape(alert.get(element)) + "'"
42
43def alert_to_str(alert):
44 return "{" + \
45 element_to_str(alert, "alert") + "," + \
46 element_to_str(alert, "risk") + "," + \
47 element_to_str(alert, "reliability") + "," + \
48 element_to_str(alert, "url") + "," + \
49 element_to_str(alert, "param") + "}"
50
51def match_alert_pattern (alert, pattern, element):
52 #print "Alert = " + alert + " Pattern = " + pattern + " Element = " + element

Callers 1

test_zapFunction · 0.85

Calls 1

element_to_strFunction · 0.85

Tested by

no test coverage detected