fs_result_test.nx
buildroot/runtime/fs_result_test.nx
about
fs_result_test.nx -- end-to-end Result<T, FsError> smoke.
Opens a path that does not exist, expects fs_open_rd to return
Result::Err(FsError::NotFound), and threads it through the match.
The collapsed code for NotFound is -2; as an 8-bit unsigned exit
status that surfaces as 254. Proves: Result constructor + tagged
match + payload binding + i64 return all work together.
expect_exit: 254
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_stdlib.nxnx_fs.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 20 | func fs_open_result_code(r: *Result<i64, FsError>) -> i64 {
called by 1: main |
| 36 | func main() -> i64 { |