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

vocdoni / saas-backend / 20850104693
63%

Build:
DEFAULT BRANCH: main
Ran 09 Jan 2026 11:16AM 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% (-0.005%) from 62.662%
20850104693

push

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.

3 of 3 new or added lines in 1 file covered. (100.0%)

113 existing lines in 3 files now uncovered.

6819 of 10883 relevant lines covered (62.66%)

37.3 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
11
62.28
0.0% csp/auth.go
20
76.92
-2.42% errors/errors.go
82
58.88
0.3% csp/handlers/handlers.go
Jobs
ID Job ID Ran Files Coverage
1 20850104693.1 09 Jan 2026 11:16AM UTC 80
62.66
GitHub Action Run
Source Files on build 20850104693
  • Tree
  • List 80
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 99667da2 on github
  • Prev Build on main (#20785635569)
  • Next Build on main (#21003246304)
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