Build a fully-qualified name from a short name and an optional namespace. `("Foo", Some("App\\Models"))` → `"App\\Models\\Foo"`, `("Foo", None)` → `"Foo"`.
(short_name: &str, namespace: Option<&str>)
| 441 | /// `("Foo", Some("App\\Models"))` → `"App\\Models\\Foo"`, |
| 442 | /// `("Foo", None)` → `"Foo"`. |
| 443 | pub(crate) fn build_fqn(short_name: &str, namespace: Option<&str>) -> String { |
| 444 | match namespace { |
| 445 | Some(ns) if !ns.is_empty() => format!("{}\\{}", ns, short_name), |
| 446 | _ => short_name.to_string(), |
| 447 | } |
| 448 | } |
| 449 | |
| 450 | /// Check whether a type string has unclosed delimiters (`<>`, `()`, `{}`). |
| 451 | /// |
no test coverage detected