blib/lib/auto/share/dist/Cmd-Dwarf/app/lib/Dwarf/Plugin/Error.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran 0.0% 0 / 6 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 27 CC 4 SCAR 26.4
CC
4
Cov
0%
init
20.0
BEGIN
2.0
BEGIN
2.0
CRAP 14.0
1 package Dwarf::Plugin::Error;
2 use Dwarf::Pragma;
3 use Dwarf::Util qw/add_method/;
4  
5 sub init {
6 my ($class, $c, $conf) = @_;
7 $conf ||= {};
8  
9 die "conf must be HASH" unless ref $conf eq 'HASH';
10  
11 while (my ($k, $v) = each %$conf) {
12 die "key must not be REFERENCE" if ref $k;
13 die "value must be CODE" unless ref $v eq 'CODE';
14 add_method($c->error, $k, $v);
15 }
16 }
17  
18 1;