|
Ran
|
Jobs
1
|
Files
139
|
Run time
1min
|
Badge
README BADGES
|
push
github
feat: hooks round 2 - remove indirection and simplify error handling (#2025) ## Hooks Round 2 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 Remove indirection and simplify error handling: * update pkg `internal/api` to: * uses `internal/hooks/v0hooks.Manager` instead of `internal/hooks/hooks.Manager` [aec5995](https://github.com/supabase/auth/pull/2025/commits/aec59956b) * remove pkg `internal/hooks/hooks.Manager` [062da5d](https://github.com/supabase/auth/pull/2025/commits/062da5da5) * add pkg `internal/hooks/hookserrors` [7e80afc](https://github.com/supabase/auth/pull/2025/commits/7e80afc35) * use pkg `internal/hooks/hookserrors` in `internal/hooks/v0hooks` [57744e8](https://github.com/supabase/auth/pull/2025/commits/57744e8c4) * update pkg `internal/hooks/v0hooks` with an `Enabled` method [16cc4c9](https://github.com/supabase/auth/pull/2025/commits/16cc4c912) ### Depends on [feat: hooks round 1](https://github.com/supabase/auth/pull/2023) - prepare package structure * Renamed pkg `internal/hooks/v0hooks/v0http` -> `internal/hooks/hookshttp` [8a398ab](https://github.com/supabase/auth/pull/2023/commits/<a class=hub.com/supabase/auth/commit/8a398aba564267e4caa4c32bf661699d47d29174">8a398aba5) * Renamed pkg `internal/hooks/v0hooks/v0pgfunc` -> `internal/hooks/hookspgfunc` [8a398ab](https://github.com/supabase/auth/pull/2023/commits/8a398aba564267e4caa4c32bf661699d47d29174) * Use pkg `internal/e2e` for test setup in: * pkg `internal/hooks/hookspgfunc` [4d60288](https://github.com/supabase/auth/pull/2023/commits/4d6028869) * pkg `internal/hooks/v0hooks` [4a7432b](https://github.com/supabase/auth/pull/2023/commits/4a7432b66a767c57d25423b1e13708c47cc3a6... (continued)
319 of 321 new or added lines in 11 files covered. (99.38%)
4 existing lines in 2 files now uncovered.11129 of 15895 relevant lines covered (70.02%)
64.96 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 2 |
70.68 |
0.98% | internal/api/token.go |
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 2 |
84.55 |
-0.73% | internal/api/api.go |
| 2 |
67.69 |
-0.51% | internal/api/token_refresh.go |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 15118456097.1 | 139 |
70.02 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|