(package: &str, path: &[String])
| 951 | } |
| 952 | |
| 953 | fn canonical_name(package: &str, path: &[String]) -> String { |
| 954 | let mut name = String::new(); |
| 955 | name.push('.'); |
| 956 | if !package.is_empty() { |
| 957 | name.push_str(package); |
| 958 | if !path.is_empty() { |
| 959 | name.push('.'); |
| 960 | } |
| 961 | } |
| 962 | name.push_str(&path.join(".")); |
| 963 | name |
| 964 | } |
| 965 | |
| 966 | fn qualified_service_name(package: &str, name: &str) -> String { |
| 967 | if package.is_empty() { |
no test coverage detected