geany icon indicating copy to clipboard operation
geany copied to clipboard

WIP: Add script checking our unit test coverage of the mapped kinds

Open techee opened this issue 3 years ago • 0 comments

For each of the filetypes, the script uses universal-ctags binary to generate a tags file for all the unit tests for the given filetype, collects the kinds contained in the tags file and compares them to those mapped inside tm_parser.c (except the ignored ones mapped to tm_tag_undef_t). It then prints those kinds that are mapped in tm_parser.c but not present in the ctags output.

The script runs a universal-ctags binary that must be present in PATH and the script assumes it's executed from the root directory containing Geany sources (by ./scripts/test-units.py). Since Geany now uses most of the upstream parser, the output of universal-ctags should correspond to the output of Geany. Note that we cannot use our own tags file for this test as they don't contain the original kind but rather the kind mapped to Geany's internal representation (tm_tag_..._t).

I'll update this PR once all the parsers are merged.

techee avatar Apr 26 '22 12:04 techee