code wiki / (root) / nx_dir_test.nx

nx_dir_test.nx

buildroot/runtime/nx_dir_test.nx

4374 B117 linesdepth 6pulls 6 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

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

syscalls.nx nx_dir.nx nx_dir_test.nx

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

main nx_dir_list nx_openat nx_dirent_read nx_dirent_iter nx_dir_is_dotlike nx_dir_name_strlen nx_dir_arena_copy_name nx_dir_row_at nx_dir_name_ends_with

structs

none

consts

13const NX_TEST_DIR_ROWS_CAP: i64 = 4096
14const NX_TEST_DIR_ARENA_BYTES: i64 = 524288 // 512 KiB names arena

functions

16func main() -> i64