code wiki / (root) / nx_trace_query_test.nx

nx_trace_query_test.nx

buildroot/runtime/nx_trace_query_test.nx

4322 B99 linesdepth 5pulls 7 transitivereach 0 importersview sourcekind gate/prooftopic trace
docsdependenciesstructsconstsfunctions

about

nx_trace_query_test.nx -- filter/count/project shape verification. Builds a synthetic CBOR span stream (5 spans, mixed kinds + traces), runs every query primitive against it, verifies expected counts.

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_tier.nx nx_cbor.nx nx_trace_emit.nx nx_trace_query.nx nx_trace_query_test.nx

imports: nx_syscalls.nxnx_tier.nxnx_cbor.nxnx_trace_emit.nxnx_trace_query.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap nx_cbor_emit_span nx_cbor_emit_map_header nx_cbor_put_length nx_cbor_put_byte _nx_cbor_pow2 nx_cbor_emit_u64 nx_cbor_put_length ↻ nx_cbor_emit_i64 nx_cbor_put_length ↻ nx_cbor_emit_array_header nx_cbor_put_length ↻ nx_tq_count_kinds sys_mmap ↻ nx_cbor_read_span nx_cbor_peek_kind sys_mmap ↻ nx_cbor_read_map_header nx_cbor_read_length nx_cbor_read_i64 nx_cbor_read_length ↻ nx_cbor_read_array_header nx_cbor_read_length ↻ nx_span_kind_is_valid nx_tq_count_for_trace sys_mmap ↻ nx_cbor_read_span ↻ nx_tq_extract_batch_summar sys_mmap ↻ nx_cbor_read_span ↻ nx_tq_distinct_attr_values sys_mmap ↻ nx_cbor_read_span ↻

structs

none

consts

none

functions

12func main() -> nx_int