()
| 714 | |
| 715 | #[test] |
| 716 | fn test_roundtrip_write_read() { |
| 717 | let (_dir, fs) = temp_fs(); |
| 718 | let content = b"This is test content with unicode: \xc3\xa9\xc3\xa8\xc3\xa0"; |
| 719 | |
| 720 | // Write |
| 721 | { |
| 722 | let mut writer = fs.write_file("test.txt", Inode::new(1)).unwrap(); |
| 723 | writer.write_all(content).unwrap(); |
| 724 | } |
| 725 | |
| 726 | // Read |
| 727 | let mut buffer = Vec::new(); |
| 728 | fs.read_file("test.txt", &mut buffer).unwrap(); |
| 729 | assert_eq!(buffer, content); |
| 730 | } |
| 731 | |
| 732 | #[test] |
| 733 | fn test_full_workflow() { |
nothing calls this directly
no test coverage detected