(host: &str, port: u16)
| 2910 | } |
| 2911 | |
| 2912 | fn http_url_for_host(host: &str, port: u16) -> String { |
| 2913 | let host = host.trim(); |
| 2914 | if host.contains(':') && !host.starts_with('[') && !host.ends_with(']') { |
| 2915 | format!("http://[{host}]:{port}") |
| 2916 | } else { |
| 2917 | format!("http://{host}:{port}") |
| 2918 | } |
| 2919 | } |
| 2920 | |
| 2921 | fn ui_url_from_base(mut url: String, selector: Option<&str>) -> String { |
| 2922 | if let Some(selector) = selector.filter(|value| !value.trim().is_empty()) { |
no outgoing calls
no test coverage detected