• 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

vocdoni / saas-backend / 20333253554
63%
main: 63%

Build:
Build:
LAST BUILD BRANCH: f/372-improve-csp-verification-msg
DEFAULT BRANCH: main
Ran 18 Dec 2025 10:08AM UTC
Jobs 1
Files 80
Run time 304min
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

11 Dec 2025 05:33PM UTC coverage: 63.071%. First build
20333253554

Pull #367

github

emmdim
feat(csp): add weight field to authentication response

Add weight field to AuthResponse structure and include it in the
sign-and-respond flow. This allows clients to receive the weight value
directly in the authentication response alongside the signature.

Also refactor error handling in signing functions by replacing generic
ErrStorageFailure with more specific ErrSign error type for better
error classification and debugging.

Changes:
- Add Weight field to AuthResponse struct with proper JSON and Swagger tags
- Include weight in signAndRespond HTTP response
- Replace ErrStorageFailure with ErrSign in prepareSaltedKeySigner and
  finishSaltedKeySigner functions
- Update Swagger documentation to reflect new weight field
Pull Request #367: v2.1.0 Upgrade a lts

284 of 356 new or added lines in 20 files covered. (79.78%)

6794 of 10772 relevant lines covered (63.07%)

34.68 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
91.43
test/voconed.go
2
87.5
api/apicommon/types.go
2
85.49
api/helpers.go
2
60.61
csp/auth.go
2
58.43
csp/handlers/handlers.go
2
85.11
csp/sign.go
2
88.24
migrations/0006_add_members_weight.go
2
62.79
migrations/mongo_helpers.go
2
86.67
test/mail.go
2
90.32
test/mongodb.go
4
91.11
migrations/0005_rename_verifications_code.go
4
82.61
migrations/0007_add_census_weight.go
6
82.35
internal/birthdate.go
7
18.78
db/mongo.go
8
87.0
internal/utils.go
24
41.18
api/users.go
Jobs
ID Job ID Ran Files Coverage
1 20333253554.1 18 Dec 2025 10:08AM UTC 80
63.07
GitHub Action Run
Source Files on build 20333253554
  • Tree
  • List 80
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #367
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

© 2026 Coveralls, Inc