• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sgerrand / ex_teya / 37507350008
100%

Build:
DEFAULT BRANCH: main
Ran 06 Oct 2026 05:56PM UTC
Jobs 1
Files 25
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Oct 2026 05:55PM UTC coverage: 100.0%. Remained the same
37507350008

push

github

web-flow
refactor(auth): keep less state in the auth process (#64)

* refactor(auth): keep less state in the auth process

- The refresh timer is started with :erlang.start_timer/3, whose message
  carries the timer's own ref, so refresh_tag is no longer needed to tell
  a stale refresh from the current one.
- expires_at is dropped: nothing read it, only usable_until.
- failed_at and failure, always set and cleared together, are now one
  field, failure: {failed_at, error} | nil.

No change in behaviour. One test that relied on a refresh leaving its
timer in place now drives the same path through a caller's fetch.

* refactor(auth): address review of the smaller auth state

- recent_failure/1 takes the failure tuple apart once and returns the
  held error, in place of recently_failed?/1 plus elem/2.
- The expiry tests check that a token is handed out until exactly 5
  seconds before it expires again, as the expires_at test did.
- One Teya.APICase.cancel_refresh/1 replaces five copies of the same
  timer-cancel code, and tests that put in a stand-in timer ref cancel
  any real timer first.
- The live-timer test is named for the path it covers: a caller's failed
  fetch.
- CLAUDE.md and the APICase comment describe the {:timeout, ref, :refresh}
  message and how tests fire it.

9 of 9 new or added lines in 1 file covered. (100.0%)

498 of 498 relevant lines covered (100.0%)

56.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 37507350008.1 06 Oct 2026 05:56PM UTC 25
100.0
GitHub Action Run
Source Files on build 37507350008
  • Tree
  • List 25
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #37507350008
  • 0ae035a4 on github
  • Prev Build on main (#37503376126)
  • Next Build on main (#37550752413)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc