Skip to main content

format_whatbreaks_text

Function format_whatbreaks_text 

Source
pub fn format_whatbreaks_text(report: &WhatbreaksReport) -> String
Expand description

Format whatbreaks report for text output

Follows spec text output format:

  • Header with target and detected type
  • Summary statistics (callers, importers, tests)
  • Sub-analysis status (success/error/skipped)
  • Total elapsed time

ยงExample output

What Breaks: user_service.py (file)
==================================================
Direct callers:     N/A
Transitive callers: N/A
Importing modules:  2 files
Affected tests:     2 test files

Sub-analyses:
  [OK]   importers        (45ms)
  [OK]   change-impact    (121ms)

Elapsed: 166ms