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

Function test_webdrive_fixup_names

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

Source from the content-addressed store, hash-verified

377
378 #[wasm_bindgen_test]
379 fn test_webdrive_fixup_names() {
380 let mut webdrive = WebDrive::from_window();
381 webdrive.storage.clear().unwrap();
382 webdrive.storage.set("endbasic-program:lower.bas", "").unwrap();
383 webdrive.storage.set("endbasic-program:UPPER.BAS", "").unwrap();
384 webdrive.fixup_names().unwrap();
385
386 assert!(webdrive.storage.get("endbasic-program:lower.bas").unwrap().is_none());
387 webdrive.storage.get("endbasic-program:LOWER.BAS").unwrap();
388 webdrive.storage.get("endbasic-program:UPPER.BAS").unwrap();
389 }
390
391 #[wasm_bindgen_test]
392 async fn test_webdrive_delete_ok() {

Callers

nothing calls this directly

Calls 4

setMethod · 0.80
fixup_namesMethod · 0.80
clearMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected