Name : perl-Test-Fatal-matchfor
| |
Version : 0.001
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.1.1
| Date : 2023-01-27 17:37:07
|
Group : Development/Libraries/Perl
| Source RPM : perl-Test-Fatal-matchfor-0.001-lp154.1.1.src.rpm
|
Size : 0.03 MB
| |
Packager : https://www_suse_com/
| |
Summary : match exceptions by class name or regexp
|
Description :
Test::Fatal::matchfor exports the \'matchfor\' function which accepts a list of class/role names and regular expressions, and constructs an object overloading \'==\' and \'eq\' to return true if compared for equality against a string that matches one of those regular expressions, or an object that isa/does one of those class/role names.
So for example, to check a type constraint error in Moose, you might use:
my $tc_err = matchfor( \'Moose::Exception::ValidationFailedForTypeConstraint\', \'Moose::Exception::ValidationFailedForInlinedTypeConstraint\', qr{does not pass the type constraint}, ),
is($exception, $tc_err, \"encountered error as expected\");
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.4/noarch |