Helper: format a count with auto-pluralization (singular + "s").
(count: usize, singular: &str)
| 172 | |
| 173 | /// Helper: format a count with auto-pluralization (singular + "s"). |
| 174 | fn format_count(count: usize, singular: &str) -> String { |
| 175 | if count == 1 { |
| 176 | format!("1 {}", singular) |
| 177 | } else { |
| 178 | format!("{} {}s", count, singular) |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | /// Verify that the Pull struct is properly re-exported and constructible. |
| 183 | #[test] |
nothing calls this directly
no outgoing calls
no test coverage detected