tree-sitter/cli/src/tests
Max Brunsfeld 26dac9b2dd Fix query bugs revealed by randomized tests
* Fix bugs related to named wildcard patterns vs regular wildcard patterns.
* Fix handling of extra nodes during query analysis. Previously, the
expected child_index was updated incorrectly after an extra node,
leading to false "impossible pattern" errors.
* Refine logic for avoiding unnecessary state-splitting due to fallible steps.
Compute *two* different analysis results related to step fallibility:
  * `root_pattern_guaranteed` which, like before, summarizes whether the
    entire pattern is guaranteed to match once this step is reached.
  * `parent_pattern_guaranteed` - which just indicates whether the
    immediate parent pattern is guaranteed. This is now used when
    deciding whether it's necessary to split a match state.
2021-11-21 12:02:58 -08:00
..
helpers Add a randomized test for query matching 2021-11-21 11:29:36 -08:00
corpus_test.rs Add a randomized test for query matching 2021-11-21 11:29:36 -08:00
highlight_test.rs Remove duplication of LossyUtf8 helper 2020-10-14 11:35:50 -07:00
mod.rs Always enforce stack version limit during reductions 2020-07-06 15:58:33 -07:00
node_test.rs Fixing Rust formatting issue 2021-05-21 15:43:10 +00:00
parser_test.rs Restructure test suite's allocation recording so that tests can run in parallel 2021-10-11 17:24:37 -07:00
pathological_test.rs Move allocation tracking into lib crate 2021-02-23 09:16:37 -05:00
query_test.rs Fix query bugs revealed by randomized tests 2021-11-21 12:02:58 -08:00
tags_test.rs Move allocation tracking into lib crate 2021-02-23 09:16:37 -05:00
test_highlight_test.rs Fix possible infinite loop when running syntax highlighting tests 2021-08-29 15:04:23 -07:00
tree_test.rs Add ts_tree_cursor_goto_first_child_for_point function 2021-05-27 12:30:19 -07:00