()
| 179 | |
| 180 | #[test] |
| 181 | fn test_find_asset_found() { |
| 182 | let assets = vec![ |
| 183 | zed::GithubReleaseAsset { |
| 184 | name: "csskit-darwin-arm64".to_string(), |
| 185 | download_url: "https://example.com/darwin-arm64".to_string(), |
| 186 | }, |
| 187 | zed::GithubReleaseAsset { |
| 188 | name: "csskit-linux-x64".to_string(), |
| 189 | download_url: "https://example.com/linux-x64".to_string(), |
| 190 | }, |
| 191 | ]; |
| 192 | |
| 193 | let asset = find_asset(&assets, "csskit-linux-x64").unwrap(); |
| 194 | assert_eq!(asset.download_url, "https://example.com/linux-x64"); |
| 195 | } |
| 196 | |
| 197 | #[test] |
| 198 | fn test_find_asset_not_found() { |
nothing calls this directly
no test coverage detected