MCPcopy Index your code
hub / github.com/endbasic/endbasic / test_storage_attach_ok

Function test_storage_attach_ok

std/src/storage/mod.rs:915–922  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

913
914 #[test]
915 fn test_storage_attach_ok() {
916 let mut storage = Storage::default();
917 storage.attach("zzz1", "z://", Box::from(InMemoryDrive::default())).unwrap();
918 storage.attach("A4", "z://", Box::from(InMemoryDrive::default())).unwrap();
919
920 assert_eq!("MEMORY:/", storage.cwd());
921 assert_eq!(["A4", "MEMORY", "ZZZ1"], drive_names(&storage).as_slice());
922 }
923
924 #[test]
925 fn test_storage_attach_invalid_name() {

Callers

nothing calls this directly

Calls 1

attachMethod · 0.80

Tested by

no test coverage detected