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

vocdoni / saas-backend / 20263746296
63%

Build:
DEFAULT BRANCH: main
Ran 16 Dec 2025 09:57AM UTC
Jobs 1
Files 80
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

11 Dec 2025 05:33PM UTC coverage: 63.071% (+0.3%) from 62.747%
20263746296

Pull #365

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 #365: v2.2.0

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

7 existing lines in 3 files now uncovered.

6794 of 10772 relevant lines covered (63.07%)

34.68 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
91.43
-0.24% test/voconed.go
2
87.5
-1.31% api/apicommon/types.go
2
85.49
-0.82% api/helpers.go
2
60.61
-0.51% csp/auth.go
2
58.43
-0.1% csp/handlers/handlers.go
2
85.11
0.16% csp/sign.go
2
88.24
migrations/0006_add_members_weight.go
2
62.79
-1.5% migrations/mongo_helpers.go
2
86.67
-13.33% test/mail.go
2
90.32
-5.13% 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
1.73% db/mongo.go
8
87.0
-8.92% internal/utils.go
24
41.18
-0.78% api/users.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
41.18
-0.78% api/users.go
3
18.78
1.73% db/mongo.go
3
87.0
-8.92% internal/utils.go
Jobs
ID Job ID Ran Files Coverage
1 20263746296.1 16 Dec 2025 09:57AM UTC 80
63.07
GitHub Action Run
Source Files on build 20263746296
  • Tree
  • List 80
  • Changed 18
  • Source Changed 0
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #365
  • PR Base - stage (#20070822400)
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