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

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

Build:
Build:
LAST BUILD BRANCH: devel
DEFAULT BRANCH: main
Ran 06 May 2026 01:22PM UTC
Jobs 1
Files 11
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

06 May 2026 01:15PM UTC coverage: 95.613%. Remained the same
25437541712

push

github

web-flow
fix(cli): stop short -v from being shadowed by global --version|-V (#51)

bin/iabtcfv2's global Getopt::Long was configured with `:config
pass_through` only, leaving Getopt::Long's defaults (ignore_case ON,
no require_order) in effect.  That made `iabtcfv2 dump -v 284 <tc>`
behave as follows:

  1. Global GetOptions scans the entire @ARGV (no require_order).
  2. ignore_case matches `-v` against the `'version|V'` short
     alias case-insensitively.
  3. \$global_opts{version} flips on, the script prints the
     version string, and exits before `dump` is dispatched.

Adding `require_order` to the config makes the global GetOptions
stop scanning at the first non-option argument (`dump`), leaving
`-v 284 <tc>` for the subcommand's own GetOptionsFromArray to
parse — where `'vendor-id|v=i'` matches it correctly.

Regression test in t/09-predicates.t covers:
  - `dump -v <id> <tc>` does NOT print the version string
  - `dump -v 1 <tc>` produces the same vendor isolation as
    `dump --vendor-id 1 <tc>`

Verified locally that reverting the require_order change makes both
new assertions fail.

1 of 1 new or added line in 1 file covered. (100.0%)

1 existing line in 1 file now uncovered.

741 of 775 relevant lines covered (95.61%)

11586.79 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
89.16
0.0% bin/iabtcfv2
Jobs
ID Job ID Ran Files Coverage
1 25437541712.1 06 May 2026 01:22PM UTC 11
95.61
GitHub Action Run
Source Files on build 25437541712
  • Tree
  • List 11
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 224e649a on github
  • Prev Build on devel (#25436506195)
  • Next Build on devel (#25438426682)
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