code wiki / (root) / nx_wflow_event_result_gate_t344.nx

nx_wflow_event_result_gate_t344.nx

buildroot/runtime/nx_wflow_event_result_gate_t344.nx

4713 B56 linesdepth 6pulls 12 transitivereach 0 importersview sourcekind orphan librarytopic wflow
docsdependenciesstructsconstsfunctions

about

Native integration qualification of additive workflow result commands.

dependencies 2 imports · 0 importers

nx_wflow_result_candidate_t344.nx nx_tool_run.nx nx_wflow_event_result_gate_t34

imports: nx_wflow_result_candidate_t344.nxnx_tool_run.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

8func wrt_check(ok:i64,label:*u8)->i64{p("RESULT-GATE ");p(label);if ok==1{p(" PASS\n");wrt_pass=wrt_pass+1}else{p(" FAIL\n");wrt_fail=wrt_fail+1};return ok}
9func wrt_path(base:*u8,leaf:*u8)->*u8{let b:*u8=sys_mmap(slen(base)+slen(leaf)+2);var at:i64=wf_cat(b,0,base);b[at]=47;wf_cat(b,at+1,leaf);return b}
10func wrt_file(path:*u8,body:*u8)->i64{let fd:i64=sys_openat_exclusive(path,MODE_0600);if fd<0{return 0};let rc:i64=wfr_write_all(fd,body,slen(body));let sync:i64=sys_fsync(fd);sys_close(fd);return rc==0 && sync==0}
11func wrt_capture(args:*i64,rcp:*i64)->*WfOwnedText
19func wrt_result(ledger:*u8,log:*u8,filter:*u8,expected:i64,needle:*u8,label:*u8)->i64
27func wrt_fire(flows:*u8,steps:*u8,ledger:*u8,cat:*u8,event:*u8,log:*u8,expected:i64,needle:*u8,label:*u8)->i64
36func wrt_event(ledger:*u8,log:*u8,event:*u8,saved:*u8,needle:*u8,label:*u8)->i64
43func main(argc:i64,argv:*i64)->i64