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

vocdoni / saas-backend / 28981808076
62%
main: 62%

Build:
Build:
LAST BUILD BRANCH: fix/trim-member-whitespace
DEFAULT BRANCH: main
Ran 08 Jul 2026 11:14PM UTC
Jobs 1
Files 125
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

08 Jul 2026 10:58PM UTC coverage: 61.138% (-1.8%) from 62.898%
28981808076

Pull #571

github

lucasmenendez
test(processes): swagger + unit/integration tests

- Regenerate docs/swagger.yaml for the new /processes endpoints.
- account/ballot_test.go: VoteTypeFromQuestion (singlechoice/multichoice/ballotProtocol/
  unsupported/no-choices), ElectionTypeFromQuestion, ComputeMaxCensusSize.
- subscriptions: OrgCanCreateVotingProcessDraft (MaxDrafts) and OrgAllowsVotingType tests.
- db/voting_processes_test.go: CRUD + ordered hydration + CountVotingProcesses +
  QuestionByUpstreamID + publish/reset + claim guard (Mongo via testcontainers).
- api/processes_test.go: end-to-end authoring/read/list/validate/public-question-read,
  draft update, and error paths (0 questions, eligibility not in census -> 400,
  non-admin -> 401, unauthenticated read -> 401) against the live server.
- api/processes_publish_test.go: end-to-end batch publish -- create a 2-question process,
  publish, poll the job to completion, assert both questions get an on-chain upstreamId
  and become ready, the process is published, and re-publish is idempotent.
- resolveEligibleMemberIDs returns a typed 400 (ErrInvalidData) for a member outside
  the census; gofumpt touch-ups.
Pull Request #571: feat: multi-question /processes API

717 of 1626 new or added lines in 16 files covered. (44.1%)

3 existing lines in 1 file now uncovered.

11033 of 18046 relevant lines covered (61.14%)

42.32 hits per line

Uncovered Changes

Lines Coverage ∆ File
287
33.26
api/processes_publish.go
280
0.0
csp/handlers/processes.go
145
54.83
api/processes.go
62
53.03
db/voting_processes.go
47
56.48
db/processes_questions.go
29
55.38
api/processes_census.go
24
67.47
-23.96% test/voconed.go
10
69.7
account/batch.go
10
68.36
0.95% subscriptions/subscriptions.go
8
71.43
migrations/0017_voting_processes.go
5
38.86
0.15% api/process_vote.go
2
81.61
0.43% account/process.go

Coverage Regressions

Lines Coverage ∆ File
3
67.47
-23.96% test/voconed.go
Jobs
ID Job ID Ran Files Coverage
1 28981808076.1 08 Jul 2026 11:14PM UTC 125
61.14
GitHub Action Run
Source Files on build 28981808076
  • Tree
  • List 125
  • Changed 11
  • Source Changed 0
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #571
  • PR Base - main (#28877362097)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc