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

hyperscale-stack / businessid / 28644725413
100%
main: 94%

Build:
Build:
LAST BUILD BRANCH: feature/add-more-tests
DEFAULT BRANCH: main
Ran 03 Jul 2026 07:12AM UTC
Jobs 1
Files 19
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

03 Jul 2026 07:08AM UTC coverage: 92.685% (-7.3%) from 100.0%
28644725413

Pull #3

github

euskadi31
feat: strengthen EUID/VAT/SIREN/SIRET reliability

Reach ~90% checksum confidence on EU business identifiers by
implementing per-country VAT algorithms, delegating EUID
validation to national sub-validators, and hardening SIREN/SIRET
with reserved-NIC rejection and an extensible dérogation table.

Changes per provider:

* VAT: implement checksums for 28 codes (EU-27 + XI + GB). Each
  algorithm sourced from the national tax authority and
  cross-verified against python-stdnum test vectors. Add GR→EL
  alias in Canonicalize. Add WithLegacy() option accepting the
  pre-2013 Irish '+' and '*' position-2 characters. NO/IS/LI stay
  format-only (no published algorithm).
* EUID: reframe as a meta-format. Country code selects a
  sub-validator (SIREN wired for FR by defaults.New). ValidateFormat
  and ValidateChecksum delegate the REGISTRATION segment. Add
  WithSubValidator() option. Registration charset now accepts '+'.
* SIRET: reject NIC "00000" (INSEE-reserved) at Format level. Move
  La Poste rule to an extensible dérogation table. Add
  WithDerogation() option for client-registered exceptions.
* SIREN: add WithDerogation() option and dérogation table
  (empty by default; extensible for historical entities).
* All 4 providers gain New(opts ...Option) constructors.

Testing:

* +250 new test cases (per-country VAT format + checksum, EUID
  meta-format delegation, SIREN/SIRET dérogation and NIC).
* Fuzz tests on the 4 providers via `make fuzz`.
* All 556 tests pass with -race, lint clean.
* Per-country VAT vectors documented with `// Source: <URL>`
  comments referencing national tax authorities and imprints.

Docs: README expanded with a per-country checksum coverage
statement and the option-pattern examples.
Pull Request #3: feat: strengthen EUID/VAT/SIREN/SIRET reliability

735 of 875 new or added lines in 10 files covered. (84.0%)

10 existing lines in 2 files now uncovered.

1774 of 1914 relevant lines covered (92.69%)

16.31 hits per line

Uncovered Changes

Lines Coverage ∆ File
102
77.03
providers/vat/checksums.go
17
91.5
-8.5% providers/euid/euid.go
10
89.36
-10.64% providers/siren/siren.go
7
94.53
providers/vat/countries.go
2
98.13
-1.87% providers/siret/siret.go
2
99.24
-0.76% providers/vat/vat.go

Coverage Regressions

Lines Coverage ∆ File
8
91.5
-8.5% providers/euid/euid.go
2
99.24
-0.76% providers/vat/vat.go
Jobs
ID Job ID Ran Files Coverage
1 28644725413.1 03 Jul 2026 07:12AM UTC 19
92.69
GitHub Action Run
Source Files on build 28644725413
  • Tree
  • List 19
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #3
  • PR Base - main (#28557907829)
  • Delete
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