(text: &'a str, tag: &str)
| 672 | } |
| 673 | |
| 674 | fn tag_body<'a>(text: &'a str, tag: &str) -> Option<&'a str> { |
| 675 | let start_tag = format!("<{tag}>"); |
| 676 | let end_tag = format!("</{tag}>"); |
| 677 | let after_start = text.split_once(&start_tag)?.1; |
| 678 | let body = after_start.split_once(&end_tag)?.0; |
| 679 | Some(body) |
| 680 | } |
| 681 | |
| 682 | fn budget_line_value<'a>(text: &'a str, prefix: &str) -> Option<&'a str> { |
| 683 | text.lines() |
no outgoing calls
no test coverage detected