nx_tool_census_run_test.nx
buildroot/runtime/nx_tool_census_run_test.nx
about
nx_tool_census_run_test.nx -- end-to-end bits-up audit binary.
Composes nx_dir_list (syscall walk) + sys_openat_rd / sys_read /
sys_close (per-file I/O) + nx_tool_census_classify (sealed-enum
classifier) + nx_tool_census_accumulate (counts) -- all in
bits-up NishiLang. No bash / grep / xargs / awk in the LOGIC
or I/O paths.
Smoke harness creates /tmp/nx_census_fixture/ with 4 synthetic
files:
nx_alpha.nx header has 'AUTO-GENERATED' -> AUTO_GENERATED
nx_bravo.nx header has 'Composes: nx_x' -> HAND_WRITTEN_DECLARED
nx_charlie.nx header is plain -> HAND_WRITTEN_UNDECLARED
nx_delta_test.nx any content (suffix wins) -> TEST
This binary walks that dir + verifies counts match. Exit 0 = PASS;
non-zero codes identify which assertion failed. Substrate's first
end-to-end bits-up audit executable.
dependencies 5 imports · 0 importers
imports: nx_syscalls.nxnx_string_ops.nxnx_dir.nxnx_grep.nxnx_tool_census.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
| 26 | func main() -> i64 |