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

Function test_copy_ok

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

Source from the content-addressed store, hash-verified

566
567 #[test]
568 fn test_copy_ok() {
569 Tester::default()
570 .set_program(Some("foo.bas"), "Leave me alone")
571 .write_file("file1", "the content")
572 .run(r#"COPY "file1", "file2""#)
573 .expect_program(Some("foo.bas"), "Leave me alone")
574 .expect_file("MEMORY:/file1", "the content")
575 .expect_file("MEMORY:/file2", "the content")
576 .check();
577 }
578
579 #[test]
580 fn test_copy_deduce_target_name() {

Callers

nothing calls this directly

Calls 6

expect_programMethod · 0.80
write_fileMethod · 0.80
set_programMethod · 0.80
checkMethod · 0.45
expect_fileMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected