MCPcopy Create free account
hub / github.com/endbasic/endbasic / test_webdrive_delete_ok

Function test_webdrive_delete_ok

web/src/store.rs:392–401  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

390
391 #[wasm_bindgen_test]
392 async fn test_webdrive_delete_ok() {
393 let mut webdrive = WebDrive::from_window();
394 webdrive.storage.clear().unwrap();
395 webdrive.storage.set("endbasic-program:FIRST.BAS", "").unwrap();
396 webdrive.storage.set("endbasic-program:FIRST.BAT", "").unwrap();
397
398 webdrive.delete("first.bas").await.unwrap();
399 assert!(webdrive.storage.get("endbasic-program:FIRST.BAS").unwrap().is_none());
400 webdrive.storage.get("endbasic-program:FIRST.BAT").unwrap();
401 }
402
403 #[wasm_bindgen_test]
404 async fn test_webdrive_delete_missing_file() {

Callers

nothing calls this directly

Calls 4

setMethod · 0.80
clearMethod · 0.45
deleteMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected