Expand description
Line-level detectors over the base and head text of one changed file.
The detectors are syntactic. They compare token counts and added lines, and they do not parse the file. A line counts as added when its trimmed text occurs more often in head than in base, so a moved line is not added.
Structs§
- LineHit
- One detector hit on a head line.
Functions§
- added_
lines - Lines of
headthat do not occur inbase, as(1-based line, text). - added_
suppression_ hits - Added comment lines that add a suppression.
- assertion_
count - The number of assertion calls (
expect(,assert,should) in a test file, comments excluded. - code_
identifiers - The identifier tokens in the code of
src. Comments and the content of string literals do not count, so a word in a test title or a comment is not an identifier. A token that starts with a digit is a number. - is_
coverage_ config_ path - Whether
rel_pathnames a test-runner, coverage or Fallow config file. - removed_
assertion_ lines - The code lines that the change removed from a file, as
(assertion lines, code lines). Comment and blank lines do not count. - skip_
only_ hits - Added lines of a test file that add a skip or focus marker.
- test_
case_ count - The number of test-case calls in a test file, comments excluded.
- test_
only_ branch_ hits - Added lines of a non-test source file that branch on the test environment.
- weakened_
threshold_ hits - Threshold values in a coverage or quality config that the change made less strict. Occurrences of one key pair up in file order.