Add more mozcpp tests
It would be helpful to add more tests for mozcpp grammar starting from these groups of files (v0.17):
The artifacts are coming from #540
Tests for mozcpp grammar starting from this file (v0.19):
Some random observations:
Only in /tmp/tree-sitter-mozcpp-old: cache_gecko-dev_widget_cocoa_nsMacDockSupport.mm.json- cache_gecko-dev_toolkit_mozapps_update_updater_launchchild_osx.mm.html, for the latest minimal test:
path: .spaces[5].metrics.loc.blank
old: 9.0
new: 0.0
0 is better than 9, as the correct result is 1, but it is wrong.
path: .spaces[5].metrics.nexits.sum
old: 1.0
new: 2.0
path: .spaces[5].metrics.nexits.average
old: 0.5
new: 1.0
they should both be 2, since there is a single function with two return statements.
Note: I didn't look at the entire file, there might be other things to find.
lloc seems wrong on cache_gecko-dev_nsprpub_pr_src_cplus_rcnetdb.h.html and on cache_gecko-dev_dom_quota_MemoryOutputStream.cpp.html and on cache_gecko-dev_ipc_chromium_src_base_chrome_application_mac.mm.html.
Other interesting tests can be found in this file json-diffs-and-minimal-tests.tar.gz generated from #611.
We can use insta tests now
We can formulate them as insta tests, but we still have to add them.