Name : perl-Test-AbstractMethod
| |
Version : 0.01
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.7.1
| Date : 2023-01-27 17:29:07
|
Group : Development/Libraries/Perl
| Source RPM : perl-Test-AbstractMethod-0.01-lp154.7.1.src.rpm
|
Size : 0.01 MB
| |
Packager : https://www_suse_com/
| |
Summary : Make sure your abstract methods croaks like they should
|
Description :
This module is a Test::Builder compatible testing module for testing calling abstract methods.
Abstract methods are methods that must be overridden by subclasses otherwise they throw an exception when called. This module can currently check that methods implemented as for example:
package MyPackage;
use Carp qw(croak);
sub my_method { my $self = shift; $self = ref $self || $self; croak \"my_method() should not be called as a function\" if !$self; croak \"Class \'$self\' does not override my_method()\"; }
The test functions in this module checks the exception thrown and not the implementation of a subroutine.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.4/noarch |