Skip to content

test: remove dead pre_rename test, add Error and alias coverage#74

Draft
toddr-bot wants to merge 1 commit intomainfrom
koan.toddr.bot/test-cleanup-and-error-coverage
Draft

test: remove dead pre_rename test, add Error and alias coverage#74
toddr-bot wants to merge 1 commit intomainfrom
koan.toddr.bot/test-cleanup-and-error-coverage

Conversation

@toddr-bot
Copy link
Copy Markdown
Contributor

@toddr-bot toddr-bot commented Apr 8, 2026

What

Removes dead test file and fills test coverage gaps in Error.pm and legacy method aliases.

Why

  • t/Net-ACME2_pre_rename.t was a strict subset of Net-ACME2.t, leftover from the create_new_account/create_new_order rename. It tested the new names, not the old aliases — so the legacy aliases had zero test coverage.
  • Error.pm's description() method (which maps ACME URN types to human-readable text and feeds into to_string()) had no direct tests.
  • type() defaulting to about:blank was untested.

How

  • Delete t/Net-ACME2_pre_rename.t, remove from MANIFEST
  • Add create_new_account() and create_new_order() alias tests to Net-ACME2.t
  • Expand Net-ACME2-Error.t with 16 new tests covering description(), type() defaults, and to_string() with descriptions

Testing

make test passes. Error.t: 21 tests (was 5). Net-ACME2.t: 63 tests (was 60 non-RSA).

🤖 Generated with Claude Code


Quality Report

Changes: 4 files changed, 100 insertions(+), 131 deletions(-)

Code scan: clean

Tests: passed (OK)

Branch hygiene: clean

Generated by Kōan post-mission quality pipeline

…lias coverage

Remove t/Net-ACME2_pre_rename.t — it was a strict subset of
Net-ACME2.t, leftover from the create_new_account/create_new_order
rename. It tested the new names, not the old aliases.

Add tests for the legacy aliases (create_new_account, create_new_order)
to Net-ACME2.t so they're actually verified.

Expand Error.t with:
- type() default to 'about:blank'
- description() for 9 known ACME URN error types
- description() returning undef for unknown types
- to_string() including description text
- subproblems() empty list behavior

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