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

hyperscale-stack / businessid
94%
main: 94%

Build:
Build:
LAST BUILD BRANCH: feature/add-more-tests
DEFAULT BRANCH: main
Repo Added 02 Jul 2026 12:17AM UTC
Token nxC3ync7mSVcGKtFnMKhvUu7OO5e4EDal regen
Build 13 Last
Files 21
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

LAST BUILD ON BRANCH feature/add-more-tests
branch: feature/add-more-tests
CHANGE BRANCH
x
Reset
Sync Branches
  • feature/add-more-tests
  • dependabot/github_actions/actions/checkout-7
  • feature/base
  • feature/more-test
  • main

03 Jul 2026 12:48PM UTC coverage: 94.171% (-5.8%) from 100.0%
28661634249

Pull #4

github

euskadi31
feat(testdata): real-world business-id corpus + integration tests

Add a hand-collected corpus of ~1300 real business identifiers (SIREN,
SIRET, VAT, national register numbers for BE/DE/ES/FR/IT/NL) sourced
from official registries, Wikipedia infoboxes and corporate legal
notices. The corpus lives under testdata/ and is consumed by four new
real-world tests (one per provider) plus a native-algorithm test under
providers/euid/. This gives the library a broader real-world safety
net than the current ~10 known-values-per-country coverage.

Layout:
  testdata/
    registers/<cc>-valide.txt   raw national register (source of truth)
    euid/<cc>-valide.txt        derived from registers, "<CC><REG>." prefix
    vat/<cc>-valide.txt         hand-collected VAT numbers (~25 per country)
    siret/fr-valide.txt         FR SIRETs (source of truth for FR)
    siren/fr-valide.txt         derived from SIRETs (siret[:9], dedupped)
    MANIFEST.md                 sources, counts, gaps

The derived files (euid/, siren/fr, registers/fr) are regenerated by
`go run ./hack/derive-corpus`, itself packaged as a separate module
under a Go workspace so its dev-tool dependencies stay isolated from
the library.

Countries covered (initial pass): BE (42), DE (100), ES (26), FR (113
SIRETs), IT (100), NL (81) for registers; ~25 VAT each. Remaining 21
EU countries: to be added later.

Data-quality notes:
- Numbers are collected first, tests run second, and failing entries
  are triaged one by one: real lib bug → fix; wrong transcription →
  remove. That process surfaced the ES CIF letter-check fix (separate
  commit) and revealed a batch of fabricated Wikipedia-sourced NL VAT
  numbers, replaced by btw-zoeken.nl-verified values.

Workspace / tooling:
- go.work + hack/derive-corpus/go.mod isolate the CLI.
- CI's go-version-file switched from go.mod to go.work.
- Makefile's `generate` target now loops over both modules like the
  other targets.

Tests: 2027 passing, 100 % statement c... (continued)
Pull Request #4: feat(testdata): real-world corpus + ES CIF letter-check fix

10 of 159 new or added lines in 3 files covered. (6.29%)

2407 of 2556 relevant lines covered (94.17%)

55.78 hits per line

Relevant lines Covered
Build:
Build:
2556 RELEVANT LINES 2407 COVERED LINES
55.78 HITS PER LINE
Source Files on feature/add-more-tests
  • Tree
  • List 21
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
28661634249 feature/add-more-tests feat(testdata): real-world business-id corpus + integration tests Add a hand-collected corpus of ~1300 real business identifiers (SIREN, SIRET, VAT, national register numbers for BE/DE/ES/FR/IT/NL) sourced from official registries, Wikipedia info... Pull #4 03 Jul 2026 12:49PM UTC euskadi31 github
94.17
See All Builds (13)

Badge your Repo: businessid

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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