FICHA · MANJARO

perl-test-trap

Trap exit codes, exceptions, output, etc.

  • Library
  • NONE
  • Dev
  • Dependency only
official+codex · reviewed · May 28, 2026 description in en

Description

Perl tests can trap exits, exceptions, and output so code paths can be checked without stopping the entire test run. This is useful for command-line tools and error-handling behavior.

It is a developer testing library. Trapping control flow can hide real failures if assertions are too broad, so tests should check the expected code, message, and output.

Permissions

Permissions not analysed for this source yet.