()
| 3374 | |
| 3375 | // The FS inspector walks the in-memory image from guest memory; this guards the |
| 3376 | // on-disk offsets, the tree reader, and the file-preview round-trip. |
| 3377 | #[test] |
| 3378 | fn fs_inspector_reads_tree_and_preview() { |
| 3379 | use full_stack::inspect::fs_view::{self, FsSymbols}; |
| 3380 | |
| 3381 | let kernel = cached_kernel(); |
| 3382 | let shell = compile_hosted_program("shell"); |
| 3383 | let body = b"hello from the fs inspector\n"; |
| 3384 | let image = build_fs_image(&[ |
| 3385 | FsEntry::Dir { path: "/home" }, |
| 3386 | FsEntry::File { |
| 3387 | path: "/readme.txt", |
| 3388 | data: body, |
| 3389 | }, |
| 3390 | ]); |
| 3391 | |
| 3392 | let mut vm = setup_kernel_vm(kernel, Some(&shell), Some(&image), ""); |
| 3393 | let _ = vm.run(80_000_000); |
nothing calls this directly
no test coverage detected