• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Warning: This build has drifted.
The coverage report for this pull request build may be inaccurate because its base commit is no longer the HEAD of its target branch.
This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

    • Learn more: For more information on this, see Tracking coverage changes for pull request builds.
    • Fix now: For a quick fix, rebase this PR at GitHub. Your next report should be accurate.
    • Prevent going forward: To avoid this issue with future PRs, see these Recommended CI Configurations.
New Repo Setting:
INCLUDE COVERAGE % WITH WARNINGS ABOUT DRIFTED BUILDS?

Enabling this setting will include a (potentially inaccurate) coverage % with warning messages in status updates for drifted builds.

Adjust setting

supabase / auth / 15118259181
70%
master: 69%

Build:
Build:
LAST BUILD BRANCH: cs/bump-go-1.25.5
DEFAULT BRANCH: master
Ran 19 May 2025 04:33PM UTC
Jobs 1
Files 139
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

19 May 2025 04:27PM UTC coverage: 70.016% (+0.4%) from 69.643%
15118259181

Pull #2025

github

web-flow
feat: hooks round 3 - begin adding the Before and After user created hooks (#2028)

## Hooks Round 3

This PR will contain a series of commits preparing for the
implementation of before & after user created hooks. It takes the
feedback from https://github.com/supabase/auth/pull/2012 into
consideration.

### Summary

Begin adding the Before and After user created hooks:
* update pkg `internal/conf`
[d5f5436](https://github.com/supabase/auth/pull/2028/commits/d5f5436ce)
* add `BeforeUserCreated` and `AfterUserCreated` to `HookConfiguration`
struct
* add test cases for `EmailValidationBlockedMX` to restore 100% test
coverage
* update pkg `internal/hooks/v0hooks`
[bd37fe2](https://github.com/supabase/auth/pull/2028/commits/bd37fe23c)
    * add `BeforeUserCreated` method to `v0hooks.Manager` struct
    * add `AfterUserCreated` method to `v0hooks.Manager` struct
    * add tests to reach 100% coverage
* add pkg `internal/e2e/e2ehooks`
[903e623](https://github.com/supabase/auth/pull/2028/commits/903e623ea)
    * add `HookCall` to record calls to hooks
    * add `Hook` struct to hold `[]*HookCall` for a given hook name
    * add `HookRecorder` to hold one `Hook` object per hook name
* add `Instance` struct to hold the `httptest.Server` and `HookRecorder`
    * add `AfterUserCreated` method to `v0hooks.Manager` struct
    * add tests to reach 100% coverage in all `internal/e2e` packages
* update pkg `internal/hooks/v0hooks`
[829aec6](https://github.com/supabase/auth/pull/2028/commits/829aec6bb)
    * fix struct and json tag to match to match the Metadata type
* update pkg `internal/hooks/v0hooks`
[ca67be0](https://github.com/supabase/auth/pull/2028/commits/ca67be0db)
    * remove `BeforeUserCreated` and `AfterUserCreated` methods
    * add Before & After user created hooks in `InvokeHook`
* update pkg `intern... (continued)
Pull Request #2025: feat: hooks round 2 - remove indirection and simplify error handling

319 of 321 new or added lines in 11 files covered. (99.38%)

13 existing lines in 3 files now uncovered.

11129 of 15895 relevant lines covered (70.02%)

64.96 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
70.68
0.98% internal/api/token.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
84.55
-0.73% internal/api/api.go
2
67.69
-0.51% internal/api/token_refresh.go
9
88.98
-0.27% internal/api/web3.go
Jobs
ID Job ID Ran Files Coverage
1 15118259181.1 19 May 2025 04:33PM UTC 139
70.02
GitHub Action Run
Source Files on build 15118259181
  • Tree
  • List 139
  • Changed 10
  • Source Changed 0
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #2025
  • PR Base - master (#15049009181)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc