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

peczenyj / GDPR-IAB-TCFv2 / 25525224521
96%
main: 96%

Build:
Build:
LAST BUILD BRANCH: devel
DEFAULT BRANCH: main
Ran 07 May 2026 10:29PM UTC
Jobs 1
Files 16
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

07 May 2026 10:19PM UTC coverage: 95.596% (-0.05%) from 95.648%
25525224521

push

github

web-flow
feat(validator): emit ReasonLegitimateInterestNotPermittedForPurpose for TCF carve-out (Phase 6.3) (#67)

The TCF spec forbids the legitimate-interest legal basis for Purpose 1
at any policy version, and for Purposes 3-6 at TcfPolicyVersion >= 4
(TCF v2.2+). Previously the Validator delegated to the parser and
emitted the generic ReasonVendorNotAllowedLegitimateInterest, which
could not be told apart from "vendor missing the LI bit".

The Validator now detects the carve-out itself before delegating and
pushes a Failure with code ReasonLegitimateInterestNotPermittedForPurpose,
matching the Go validator's signal so downstream callers can react to
"spec forbids this" specifically.

Notes:
* Limited to non-flexible purposes in legitimate_interest_purpose_ids.
  Flexible-purpose interaction with publisher restrictions is left for
  Phase 6.4.
* Existing t/06-validator.t case for the P1 carve-out updated to match
  the new message; the old "purpose 1 (legitimate interest)" wording is
  gone for this code path.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>

10 of 11 new or added lines in 1 file covered. (90.91%)

1042 of 1090 relevant lines covered (95.6%)

10991.93 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
99.01
-0.99% lib/GDPR/IAB/TCFv2/Validator.pm
Jobs
ID Job ID Ran Files Coverage
1 25525224521.1 07 May 2026 10:29PM UTC 16
95.6
GitHub Action Run
Source Files on build 25525224521
  • Tree
  • List 16
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 29856bc7 on github
  • Prev Build on devel (#25524252473)
  • Next Build on devel (#25532590212)
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