• 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 / 20850367140
63%

Build:
DEFAULT BRANCH: main
Ran 09 Jan 2026 11:27AM 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

09 Jan 2026 11:13AM UTC coverage: 62.657%. First build
20850367140

Pull #399

github

altergui
fix(csp): prevent authentication for zero-weight voters

Add validation to reject authentication attempts from users with zero
weight in weighted censuses. Users with zero weight should not be able
to participate in the voting process as they have no voting power.

Changes:
- Add check in authFirstStep to return ErrZeroWeightVoter when a user
  has zero weight in a weighted census
- Add test case "User with Phone Only" to verify zero-weight users
  cannot authenticate and receive empty auth tokens

This ensures data integrity by preventing invalid voting attempts from
users who should not have voting privileges.
Pull Request #399: v2.2.2 dev to stage

13 of 20 new or added lines in 5 files covered. (65.0%)

6819 of 10883 relevant lines covered (62.66%)

37.31 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
62.28
csp/auth.go
1
58.88
csp/handlers/handlers.go
5
76.92
errors/errors.go
Jobs
ID Job ID Ran Files Coverage
1 20850367140.1 09 Jan 2026 11:27AM UTC 80
62.66
GitHub Action Run
Source Files on build 20850367140
  • Tree
  • List 80
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #399
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