(path: &Path)
| 141 | } |
| 142 | |
| 143 | fn parse_wit(path: &Path) -> (Resolve, WorldId) { |
| 144 | let mut resolve = Resolve::default(); |
| 145 | let (pkg, _files) = resolve.push_path(path).unwrap(); |
| 146 | let world = resolve.select_world(&[pkg], None).unwrap_or_else(|_| { |
| 147 | // note: if there are multiples worlds in the wit package, we assume the "imports" world |
| 148 | resolve.select_world(&[pkg], Some("imports")).unwrap() |
| 149 | }); |
| 150 | (resolve, world) |
| 151 | } |
no outgoing calls
no test coverage detected