(output: &mut String, indent: usize, observation: &GitRefObservationDto)
| 467 | } |
| 468 | |
| 469 | fn write_git_observation(output: &mut String, indent: usize, observation: &GitRefObservationDto) { |
| 470 | writeln!(output, "{}- name: {}", spaces(indent), observation.name).unwrap(); |
| 471 | match &observation.target { |
| 472 | Some(target) => { |
| 473 | writeln!(output, "{} target:", spaces(indent)).unwrap(); |
| 474 | write_git_ref_target(output, indent + 4, target); |
| 475 | } |
| 476 | None => writeln!(output, "{} target: none", spaces(indent)).unwrap(), |
| 477 | } |
| 478 | } |
| 479 | |
| 480 | fn write_git_ref_target(output: &mut String, indent: usize, target: &GitRefTargetDto) { |
| 481 | match target { |
no test coverage detected