Skip to content

test: cover remaining six uncovered lines to reach 100%#70

Merged
benner merged 1 commit into
mainfrom
test/cover-remaining-lines
May 1, 2026
Merged

test: cover remaining six uncovered lines to reach 100%#70
benner merged 1 commit into
mainfrom
test/cover-remaining-lines

Conversation

@benner
Copy link
Copy Markdown
Owner

@benner benner commented May 1, 2026

Add tests for the six branches that were at 98% coverage:

  • check_imperative POS fallback (line 218): mock wordnet.morphy + pos_tag
    to simulate a word unknown to WordNet tagged non-VB
  • _resolve_require_lowercase (lines 354, 356): TestResolveRequireLowercase
    covers CLI flag and config-file branches
  • _resolve_no_trailing_chars (lines 362, 364): TestResolveNoTrailingChars
    covers CLI flag and config-file branches
  • range + JSONL failing commit (line 641): assert main() == 1 when a
    commit in a range fails with --output jsonl

Add tests for the six branches that were at 98% coverage:
- check_imperative POS fallback (line 218): mock wordnet.morphy + pos_tag
  to simulate a word unknown to WordNet tagged non-VB
- _resolve_require_lowercase (lines 354, 356): TestResolveRequireLowercase
  covers CLI flag and config-file branches
- _resolve_no_trailing_chars (lines 362, 364): TestResolveNoTrailingChars
  covers CLI flag and config-file branches
- range + JSONL failing commit (line 641): assert main() == 1 when a
  commit in a range fails with --output jsonl

Signed-off-by: Nerijus Bendžiūnas <nerijus.bendziunas@gmail.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

Coverage

Coverage Report (Δ +1.6%)
FileStmtsMissCoverMissing
src/git_commit_guard
   __init__.py3630100% 
TOTAL3630100% 

@benner benner marked this pull request as ready for review May 1, 2026 05:14
@benner benner merged commit 6c48f47 into main May 1, 2026
6 checks passed
@benner benner deleted the test/cover-remaining-lines branch May 1, 2026 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant