MCPcopy Create free account
hub / github.com/csskit/csskit / test_find_asset_not_found

Function test_find_asset_not_found

packages/csskit_zed/src/lib.rs:198–207  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196
197 #[test]
198 fn test_find_asset_not_found() {
199 let assets = vec![zed::GithubReleaseAsset {
200 name: "csskit-darwin-arm64".to_string(),
201 download_url: "https://example.com/darwin-arm64".to_string(),
202 }];
203
204 let result = find_asset(&assets, "csskit-win32-x64");
205 assert!(result.is_err());
206 assert_eq!(result.unwrap_err(), "no asset found matching csskit-win32-x64");
207 }
208}

Callers

nothing calls this directly

Calls 1

find_assetFunction · 0.85

Tested by

no test coverage detected