MCPcopy Create free account
hub / github.com/secdev/scapy / docs_campaign

Function docs_campaign

scapy/tools/UTscapy.py:427–451  ·  view source on GitHub ↗
(test_campaign)

Source from the content-addressed store, hash-verified

425
426
427def docs_campaign(test_campaign):
428 print("%(title)s" % test_campaign)
429 print("=" * (len(test_campaign.title)))
430 print()
431 if len(test_campaign.headcomments):
432 print("%s" % test_campaign.headcomments.strip().replace("\n", ""))
433 print()
434 for ts in test_campaign:
435 print("%s" % ts.name)
436 print("-" * len(ts.name))
437 print()
438 if len(ts.comments):
439 print("%s" % ts.comments.strip().replace("\n", ""))
440 print()
441 for t in ts:
442 print("%s" % t.name)
443 print("^" * len(t.name))
444 print()
445 if len(t.comments):
446 print("%s" % t.comments.strip().replace("\n", ""))
447 print()
448 print("Usage example::")
449 for line in t.test.split('\n'):
450 if not line.rstrip().endswith('# no_docs'):
451 print("\t%s" % line)
452
453
454# COMPUTE CAMPAIGN DIGESTS #

Callers 1

execute_campaignFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…