Skip to content

Add missing test coverage - #318

Merged
dblock merged 1 commit into
codegram:masterfrom
dblock:add-missing-test-coverage
Aug 15, 2026
Merged

Add missing test coverage#318
dblock merged 1 commit into
codegram:masterfrom
dblock:add-missing-test-coverage

Conversation

@dblock

@dblock dblock commented Aug 15, 2026

Copy link
Copy Markdown
Collaborator

Adds tests for previously uncovered branches identified from https://coveralls.io/jobs/186251746, bringing line coverage from 94.68% to 100%:

  • Collection#to_s and #method_missing raise path
  • Attributes#initialize when representation is not a Hash
  • Curie#inspect
  • Resource#inspect
  • LinkCollection#initialize invalid response error
  • EntryPoint::ConnectionAlreadyInitializedError#message and #faraday_block= (both the raise and the set path)
  • Link#each pagination across pages and the no-block Enumerator path
  • Link#method_missing / #delegate_method / #respond_to_missing? for all remaining branches

No production code changes, tests only. All tests and RuboCop pass.

Adds tests for previously uncovered branches identified from
https://coveralls.io/jobs/186251746, bringing line coverage from
94.68% to 100%:

* Collection#to_s and #method_missing raise path
* Attributes#initialize when representation is not a Hash
* Curie#inspect
* Resource#inspect
* LinkCollection#initialize invalid response error
* EntryPoint::ConnectionAlreadyInitializedError#message and
  #faraday_block= (both the raise and the set path)
* Link#each pagination across pages and the no-block Enumerator path
* Link#method_missing / #delegate_method / #respond_to_missing? for
  all remaining branches

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

Danger Report

Warnings

  • Unless you're refactoring existing code or improving documentation, please update CHANGELOG.md.

Markdowns

Here's an example of a CHANGELOG.md entry:

* [#318](https://github.com/codegram/hyperclient/pull/318): Add missing test coverage - [@dblock](https://github.com/dblock).

View run

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 100.0% (+5.3%) from 94.7% — dblock:add-missing-test-coverage into codegram:master

@dblock
dblock merged commit dc6253a into codegram:master Aug 15, 2026
9 checks passed
@dblock
dblock deleted the add-missing-test-coverage branch August 15, 2026 00:44
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.

2 participants