(lines: &VecDeque<String>)
| 440 | } |
| 441 | |
| 442 | fn stderr_tail_formatted_bytes(lines: &VecDeque<String>) -> usize { |
| 443 | if lines.is_empty() { |
| 444 | return 0; |
| 445 | } |
| 446 | let payload_bytes: usize = lines.iter().map(String::len).sum(); |
| 447 | let separator_bytes = STDERR_TAIL_SEPARATOR.len() * (lines.len() - 1); |
| 448 | payload_bytes + separator_bytes |
| 449 | } |
| 450 | |
| 451 | fn stderr_tail_bytes_with_candidate(lines: &VecDeque<String>, line: &str) -> usize { |
| 452 | if lines.is_empty() { |
no outgoing calls
no test coverage detected