Description
Perl tests can assert that code throws, does not throw, or reports expected exceptions. This helps developers verify error handling paths instead of testing only successful behavior.
It is a developer testing library. Exception tests should check meaningful failure conditions so broad catches do not hide real bugs.