Skip to content

Improve test coverage to 100% - #21

Merged
dblock merged 1 commit into
mainfrom
improve-test-coverage
Aug 18, 2026
Merged

dblock merged 1 commit into
mainfrom
improve-test-coverage

Conversation

@dblock

@dblock dblock commented Aug 18, 2026

Copy link
Copy Markdown
Owner

Adds missing specs to bring line coverage from 97.69% to 100%:

  • Base LinkChecker::Result/ResultError default methods
  • LinkChecker::Task#run! raising NotImplementedError
  • RedirectLoopError#url/#message
  • Callbacks#method_missing (bang vs non-bang) and its rescue branch
  • Tasks#retries
  • .config accessor and Result#code rescue branch for Net::HTTP, Typhoeus::Hydra, and Async::HTTP checkers
  • Typhoeus::Hydra::Checker#run delegating to @hydra.run

Also adds a SimpleCov filter (add_filter '/spec/') so spec/support helper files (VCR hooks, request-matcher lambdas) are no longer counted toward coverage, since they're test infrastructure, not library code.

@dblock
dblock force-pushed the improve-test-coverage branch from 9c99d77 to 34ca1fd Compare August 18, 2026 01:49
@github-actions

github-actions Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Danger Report

No issues found.

View run

Add missing specs for base Result/ResultError, Task#run!, RedirectLoopError,
Callbacks method_missing and rescue branch, Tasks#retries, and .config /
Result#code rescue branches across all three checkers. Also cover
Typhoeus::Hydra::Checker#run and add a SimpleCov filter to exclude spec/
files from coverage measurement.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dblock
dblock force-pushed the improve-test-coverage branch from 34ca1fd to fa0e72e Compare August 18, 2026 01:50
@dblock
dblock merged commit 23f5ea9 into main Aug 18, 2026
10 checks passed
@dblock
dblock deleted the improve-test-coverage branch August 18, 2026 01:51
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