Commit graph

10 commits

Author SHA1 Message Date
Chris White
7613d5be61 Remove duplicate test [minor]
Apparently a copy-and-paste error --- we were running one test twice.
Remove the second test, since I can't think of any reason we would need it.
2020-10-26 21:48:42 -04:00
Chris White
868b8676b8 Add test of #192 2020-10-26 21:43:11 -04:00
Chris White
ff6a55bb57 Added test of #188 2020-10-15 20:32:04 -04:00
Chris White
90392b543d doc-comment tests: add counterexamples for issue186
Issue 186 relates to symbols that are not documented.  Add tests for
symbols that are documented in a file of the same structure.
2020-10-10 17:22:26 -04:00
Chris White
68232f8fba Added test file and test for #186 2020-10-10 17:04:26 -04:00
Chris White
224ec06ced Add tests for struct, enum, macro doc comments 2020-10-03 22:01:36 -04:00
Maxime Chretien
fbe9fa0e72 tests: Add support for file families
And fix a problem in a test where an ident where wrongly identified by
ctags. It is fixed in the new ctags version.

Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
2020-05-22 10:29:24 +02:00
Chris White
a171485c4f doc-comments: support uncommented first function
If the first function in a file does not have a doc comment, do not
run off the beginning of the file.  Fixes #102.

Also:
- Add t/tree/issue102.c that exhibits this bug.
- in find-file-doc-comments.pl and script.sh, exit with a nonzero code
  if this should recur.
2020-04-04 12:21:45 -04:00
Christopher White
8a6031c8a1 Add doc-comment extraction
- find-file-doc-comments.pl: new file
- data.py: Add database to store doc-comment locations
- script.sh: Add parse-docs subcommand
- update.py:
  - Add code to process doc comments
  - Update some variable names in hopes of reducing confusion
- query.py:
  - Add code to report doc comments
  - Update some variable names in hopes of reducing confusion

Also:
- t/TestEnvironment.pm: Add find_doc attribute
- t/interact.pl: Don't die if update.py fails
- t/TestHelpers.pm: Permit checking specific sections of query.py output
- t/300: update regexes per the preceding
- gitignore tags (ctags output) and .cache (api_test.py output)
2020-04-02 13:03:03 -04:00
Christopher White
14dc250744 Added initial test of doc-comment extraction
Test does not currently pass, in true TDD style.
2020-04-02 12:37:32 -04:00