toYaml method
- required bool phasesAreTests,
Implementation
String toYaml({required bool phasesAreTests}) {
if (total == 0) return '';
final leaks = LeakType.values
.map(
(e) => LeakReport.iterableToYaml(
e.name,
byType[e] ?? [],
phasesAreTests: phasesAreTests,
),
)
.join();
return '$leakTrackerYamlHeader$leaks';
}