(validation: &str)
| 514 | } |
| 515 | |
| 516 | fn validation_issue_summary(validation: &str) -> String { |
| 517 | let mut issues = Vec::new(); |
| 518 | for line in validation.lines().skip(1) { |
| 519 | let Some((category, _)) = line.trim().split_once(':') else { |
| 520 | continue; |
| 521 | }; |
| 522 | let label = category.trim().replace('_', " "); |
| 523 | if !label.is_empty() && !issues.contains(&label) { |
| 524 | issues.push(label); |
| 525 | } |
| 526 | } |
| 527 | |
| 528 | if issues.is_empty() { |
| 529 | validation.lines().next().unwrap_or(validation).to_string() |
| 530 | } else { |
| 531 | issues.join(", ") |
| 532 | } |
| 533 | } |
| 534 | |
| 535 | fn format_endpoint_summary(endpoint: &NetworkEndpoint) -> String { |
| 536 | let host_port = if endpoint.port > 0 { |
no test coverage detected