(actual: &str, expected: &str, field: &str)
| 9724 | } |
| 9725 | |
| 9726 | fn ensure_eq(actual: &str, expected: &str, field: &str) -> Result<()> { |
| 9727 | if actual != expected { |
| 9728 | bail!("{field} must be '{expected}', got '{actual}'"); |
| 9729 | } |
| 9730 | Ok(()) |
| 9731 | } |
| 9732 | |
| 9733 | fn ensure_contains(values: &[String], expected: &str, field: &str) -> Result<()> { |
| 9734 | if !values.iter().any(|value| value == expected) { |
no outgoing calls
no test coverage detected