Skip to content

Remove dead Bignum availability guards from tests#197

Draft
toddr-bot wants to merge 1 commit into
cpan-authors:mainfrom
toddr-bot:koan.toddr.bot/remove-dead-bignum-guards
Draft

Remove dead Bignum availability guards from tests#197
toddr-bot wants to merge 1 commit into
cpan-authors:mainfrom
toddr-bot:koan.toddr.bot/remove-dead-bignum-guards

Conversation

@toddr-bot
Copy link
Copy Markdown
Contributor

@toddr-bot toddr-bot commented May 25, 2026

Summary

  • Remove t/fakelib/ (mock Bignum that returns false — dead since use Crypt::OpenSSL::Bignum in RSA.pm)
  • Remove dead skip_all / $HAS_BIGNUM guards in bignum.t, check_param.t, keygen.t, key_lifecycle.t

Why

Crypt::OpenSSL::Bignum is a hard compile-time dependency (use on line 7 of RSA.pm). The fakelib mock and all Bignum-availability checks in test files are dead code — they can never trigger because RSA.pm won't compile without the real module. These guards mislead readers into thinking Bignum is optional.

Testing

Full test suite passes (666 tests across 23 files). Kwalitee checks pass with updated MANIFEST.

🤖 Generated with Claude Code


Quality Report

Changes: 6 files changed, 7 insertions(+), 33 deletions(-)

Code scan: clean

Tests: passed (OK)

Branch hygiene: clean

Generated by Kōan post-mission quality pipeline

Crypt::OpenSSL::Bignum is a hard compile-time dependency via
`use Crypt::OpenSSL::Bignum` in RSA.pm. The t/fakelib/ mock and
all $HAS_BIGNUM / skip_all checks in tests are dead code — they
can never trigger because RSA.pm won't compile without the real
Bignum module.

- Remove t/fakelib/ (mock Bignum that returns false)
- Remove dead skip_all in bignum.t and check_param.t
- Remove $HAS_BIGNUM variable and SKIP guards in keygen.t
  and key_lifecycle.t

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant