toYaml method

String toYaml({
  1. 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';
}