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

Function test_directorydrive_put

std/src/storage/fs.rs:276–282  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

274
275 #[test]
276 fn test_directorydrive_put() {
277 let dir = tempfile::tempdir().unwrap();
278
279 let mut drive = DirectoryDrive::new(dir.path()).unwrap();
280 block_on(drive.put("some file.bas", b"a b c\nd e\n")).unwrap();
281 check_file(&dir.path().join("some file.bas"), &["a b c", "d e"]);
282 }
283
284 #[test]
285 fn test_directorydrive_system_path() {

Callers

nothing calls this directly

Calls 2

check_fileFunction · 0.85
putMethod · 0.45

Tested by

no test coverage detected