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

Function test_find_asset_found

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

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

find_assetFunction · 0.85

Tested by

no test coverage detected