nx_dir_test.nx
buildroot/runtime/nx_dir_test.nx
about
nx_dir_test.nx -- smoke for nx_dir directory walker.
Opens the current working directory and walks every entry,
asserting:
- verdict == NX_DIR_OK (or TRUNCATED if the directory is huge)
- at least one row was emitted
- default include_dotlike=0 skipped "." and ".." (n_skipped >= 2)
- nx_dir_name_ends_with returns 1 for matching suffix, 0 otherwise
dependencies 2 imports · 0 importers
imports: syscalls.nxnx_dir.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
| 13 | const NX_TEST_DIR_ROWS_CAP: i64 = 4096 |
| 14 | const NX_TEST_DIR_ARENA_BYTES: i64 = 524288 // 512 KiB names arena |
functions
| 16 | func main() -> i64 |