Plugin.pm

filter: Statementstmt 84.6% 11 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 83.3% 15 / 18 CC 1 SCAR 2.2
CC
1
Cov
85%
init
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Plugin/ExportList.pm ↑ Summary Plugin/Useful/Meta.pm »
1 #!/usr/bin/perl
2 # $Id: Plugin.pm,v 1.17 2003/12/10 03:52:30 nothingmuch Exp $
3  
4 package Object::Meta::Plugin; # base class for a plugin
5  
6 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 4 ▶use autouse Carp => qw(croak);
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 4 our $VERSION = "0.02_04";
12  
13 0 ▶sub init { # defined.
Subroutine init: not called CC=1 SCAR=6.9
Pod documented
14 0 my $self = shift;
15 0 croak "init must be defined by sublclass";
16 }
17  
18 4 1; # Keep your mother happy.
19  
20 __END__
« Plugin/ExportList.pm ↑ Summary Plugin/Useful/Meta.pm »