Skip to content

Bring test coverage to 100% - #107

Merged
dblock merged 1 commit into
masterfrom
dblock/add-coveralls
Aug 25, 2026
Merged

Bring test coverage to 100%#107
dblock merged 1 commit into
masterfrom
dblock/add-coveralls

Conversation

@dblock

@dblock dblock commented Aug 24, 2026

Copy link
Copy Markdown
Owner

Summary

Now that #106 added coveralls.io reporting, this brings line coverage to 100%.

  • Adds tests for previously untested code: Client.configure/.config, explore_segments/star_segment bounds checks, Pagination, Ratelimit, Response, RaiseResponseError, Webhooks::Models::Challenge, and mixins (AverageSpeed, SportType, StartDateLocal) using real model instances (no dummy mixin-only classes).
  • Fixes explore_segments and star_segment raising UncaughtThrowError instead of ArgumentError for missing required arguments (throw was used where raise was intended).
  • Fixes start_date_local to always derive the timezone offset from the difference between start_date and start_date_local, since Strava's timezone property only reflects the zone's standard GMT offset and does not account for daylight saving time.

Closes discovery from #54 coverage follow-up work.

@dblock
dblock force-pushed the dblock/add-coveralls branch from fa59e58 to b1ece3e Compare August 24, 2026 21:16
@github-actions

github-actions Bot commented Aug 24, 2026

Copy link
Copy Markdown

Danger Report

No issues found.

View run

@dblock
dblock force-pushed the dblock/add-coveralls branch 2 times, most recently from 3237566 to 3b48d70 Compare August 25, 2026 02:10
- Adds tests for previously untested code: Client.configure/.config,
  segments explore/star bounds checks, Pagination, Ratelimit, Response,
  RaiseResponseError, Webhooks::Models::Challenge, and mixins
  (AverageSpeed, SportType, StartDateLocal) using real model instances.
- Fixes explore_segments and star_segment raising UncaughtThrowError
  instead of ArgumentError for missing required arguments.
- Fixes start_date_local to always derive the timezone offset from the
  difference between start_date and start_date_local, since Strava's
  timezone property does not account for daylight saving time.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dblock
dblock force-pushed the dblock/add-coveralls branch from 3b48d70 to 3976324 Compare August 25, 2026 02:11
@dblock
dblock merged commit 0ae5c7d into master Aug 25, 2026
20 checks passed
@dblock
dblock deleted the dblock/add-coveralls branch August 25, 2026 02:13
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