code wiki / (root) / nx_css_selector_match_test.nx

nx_css_selector_match_test.nx

buildroot/runtime/nx_css_selector_match_test.nx

4947 B125 linesdepth 5pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic css
docsdependenciesstructsconstsfunctions

about

nx_css_selector_match_test.nx -- smoke for the Phase-2 selector matcher. Builds three CssRule fixtures (tag/class/id) and three CssElement fixtures, then enumerates every (rule, element) pair and asserts the diagonal positive matches and off-diagonal negatives.

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_css_tokenize.nx nx_css_parse.nx nx_css_selector_match.nx nx_css_selector_match_test.nx

imports: nx_syscalls.nxnx_css_tokenize.nxnx_css_parse.nxnx_css_selector_match.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 _build_src sys_mmap ↻ _put_byte nx_css_element_init nx_css_selector_match _css_bytes_equal _css_class_list_contains _css_is_class_separator _css_bytes_equal ↻

structs

none

consts

none

functions

11func _put_byte(buf: *u8, i: i64, v: i64) -> i64
called by 1: _build_src
22func _build_src(out_len: *i64) -> *u8
called by 1: main calls 2: sys_mmap_put_byte
61func main() -> i64