Skip to content

test: add coverage for reap_nb() method - #298

Draft
toddr-bot wants to merge 1 commit into
cpan-authors:mainfrom
toddr-bot:koan.toddr.bot/test-reap-nb
Draft

test: add coverage for reap_nb() method#298
toddr-bot wants to merge 1 commit into
cpan-authors:mainfrom
toddr-bot:koan.toddr.bot/test-reap-nb

Conversation

@toddr-bot

@toddr-bot toddr-bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

What

Adds t/reap_nb.t — the first test coverage for the reap_nb() method.

Why

reap_nb() is exported in @API and documented in the POD, but had zero
test coverage. This is the only public API function in IPC::Run with no tests.

How

Ten tests covering:

  • Non-blocking behavior when child is still running
  • Exit status collection after child exits
  • Idempotent calling (multiple reap_nb calls are safe)
  • Non-zero exit codes propagating through finish()/result()/full_result()

Testing

  • prove -Ilib t/reap_nb.t — 10/10 pass
  • Full make test — all tests pass
  • Skipped on Win32 (signals not available)

Quality Report

Changes: 1 file changed, 112 insertions(+)

Code scan: clean

Tests: passed (OK)

Branch hygiene: clean

Generated by Kōan

reap_nb() is exported in @API but had zero test coverage.
Add tests for: non-blocking behavior on running children,
exit status collection, idempotent calling, and non-zero
exit codes propagating through finish()/result().
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