code wiki / (root) / nx_websocket_handshake_test.nx

nx_websocket_handshake_test.nx

buildroot/runtime/nx_websocket_handshake_test.nx

1666 B50 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic websocket
docsdependenciesstructsconstsfunctions

about

nx_websocket_handshake_test.nx -- KAT for ws_accept (RFC 6455 §1.3 + §4.2.2). Promotes the inline main() invariant in nx_websocket_handshake.nx to a formal regression gate. Adds extra cases to cover the invariants documented at WH1 + WH2. Canonical RFC 6455 §1.3 worked example: Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ== Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo= expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_websocket_handshake.nx nx_websocket_handshake_test.nx

imports: nx_syscalls.nxnx_websocket_handshake.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 ws_accept sys_mmap ↻ ws_guid sha1 sys_mmap ↻ sha1_process_block if_ge b64_encode b64_enc_char _bytes_eq sys_write

structs

none

consts

none

functions

17func _bytes_eq(a: *u8, b: *u8, n: i64) -> i64
called by 1: main
26func main() -> i64