(test_campaign)
| 425 | |
| 426 | |
| 427 | def 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 # |
no test coverage detected
searching dependent graphs…