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

Function test_cd_ok

std/src/storage/cmds.rs:550–557  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

548
549 #[test]
550 fn test_cd_ok() {
551 let mut t = Tester::default();
552 t.get_storage().borrow_mut().mount("other", "memory://").unwrap();
553 t.run("CD \"other:\"").check();
554 assert_eq!("OTHER:/", t.get_storage().borrow().cwd());
555 t.run("CD \"memory:/\"").check();
556 assert_eq!("MEMORY:/", t.get_storage().borrow().cwd());
557 }
558
559 #[test]
560 fn test_cd_errors() {

Callers

nothing calls this directly

Calls 4

mountMethod · 0.80
get_storageMethod · 0.45
checkMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected