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

vocdoni / saas-backend / 21037910437
61%
main: 63%

Build:
Build:
LAST BUILD BRANCH: cli
DEFAULT BRANCH: main
Ran 15 Jan 2026 04:10PM UTC
Jobs 1
Files 83
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

15 Jan 2026 04:06PM UTC coverage: 61.142% (-1.7%) from 62.888%
21037910437

Pull #402

github

emmdim
refactor(db): move CSP process ID calculation into fetch function

Move the `cspAuthTokenStatusID` calculation from all call sites into the
`fetchCSPProcessFromDB` function itself. This refactoring:

- Changes `fetchCSPProcessFromDB` signature to accept `userID` and `processID`
  parameters instead of a pre-calculated ID
- Eliminates duplicate ID calculation logic across multiple functions
  (CSPProcess, IsCSPProcessConsumed, ConsumeCSPProcess, CSPProcessByUserAndProcess)
- Improves code maintainability by centralizing the ID generation logic
- Maintains the same functionality while reducing code duplication

The ID calculation now happens in one place, making the code easier to
maintain and reducing the chance of inconsistencies.
Pull Request #402: feat(cli): add voting process and voter information query tool

7 of 321 new or added lines in 2 files covered. (2.18%)

17 existing lines in 1 file now uncovered.

6887 of 11264 relevant lines covered (61.14%)

36.74 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
50
69.78
-19.82% db/csp.go
264
0.0
cmd/cli/main.go

Uncovered Existing Lines

Lines Coverage ∆ File
17
69.78
-19.82% db/csp.go
Jobs
ID Job ID Ran Files Coverage
1 21037910437.1 15 Jan 2026 04:10PM UTC 83
61.14
GitHub Action Run
Source Files on build 21037910437
  • Tree
  • List 83
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #402
  • PR Base - main (#21022639309)
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