code wiki / _attic / _offc_editor_smoke.nx

_offc_editor_smoke.nx source

↩ module page · 20 lines · 852 B

1// Editor smoke test: cohesive run. 3 BIRTH / 3 DEATH, 1 phase 2// begin/end with items, then audit + advise should both report 3// clean and zero advice. 4 5import "syscalls.nx" 6import "nx_narr.nx" 7 8func main() -> i64 { 9 narr_perf_phase_begin("smoke_lex" as *u8) 10 narr_ledger_birth("editor_smoke" as *u8, LK_TOKEN, 1, "smoke.nx:11" as *u8) 11 narr_ledger_birth("editor_smoke" as *u8, LK_TOKEN, 2, "smoke.nx:12" as *u8) 12 narr_ledger_birth("editor_smoke" as *u8, LK_TOKEN, 3, "smoke.nx:13" as *u8) 13 narr_ledger_death("editor_smoke" as *u8, LK_TOKEN, 3, "smoke.nx:14" as *u8) 14 narr_ledger_death("editor_smoke" as *u8, LK_TOKEN, 2, "smoke.nx:15" as *u8) 15 narr_ledger_death("editor_smoke" as *u8, LK_TOKEN, 1, "smoke.nx:16" as *u8) 16 narr_perf_phase_end("smoke_lex" as *u8, 3) 17 18 narr_emit_epilogue() 19 return 0 20}