DJabberd/SASL/ManagerBase.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 5 totaltotal 0.0% 0 / 36 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
plugin
2.0
is_mechanism_supported
2.0
CRAP 2.0
1 package DJabberd::SASL::ManagerBase;
2  
3 use strict;
4 use warnings;
5  
6 sub new {
7 my $class = shift;
8 my $plugin = shift;
9 my $self = bless {
10 __sasl_plugin => $plugin,
11 }, ref $class || $class;
12 $self->{impl} = $self->manager_implementation(@_);
13 return $self;
14 }
15  
16 sub plugin {
17 my $mgr = shift;
18 return $mgr->{__sasl_plugin};
19 }
20 sub is_mechanism_supported { die "implement" }
21  
22 sub DESTROY { }
23  
24 sub AUTOLOAD {
25 my $obj = shift;
26 (my $meth = our $AUTOLOAD) =~ s/^.*:://;
27 return $obj->{impl}->$meth(@_);
28 }
29  
30 1;
31 __END__