File Coverage

blib/lib/Protocol/DBus/Authn/Mechanism.pm
Criterion Covered Total %
statement 16 16 100.0
branch n/a
condition 1 3 33.3
subroutine 6 6 100.0
pod 0 2 0.0
total 23 27 85.1


line stmt bran cond sub pod time code
1             package Protocol::DBus::Authn::Mechanism;
2              
3 8     8   3520 use strict;
  8         20  
  8         224  
4 8     8   40 use warnings;
  8         16  
  8         208  
5              
6 8     8   104 use constant INITIAL_RESPONSE => ();
  8         32  
  8         500  
7 8     8   48 use constant AFTER_AUTH => ();
  8         16  
  8         996  
8              
9             sub new {
10 6     6 0 401 my $self = bless {}, shift;
11              
12 6         58 return $self;
13             }
14              
15             sub label {
16 7   33 7 0 37 my $class = ref($_[0]) || $_[0];
17              
18 7         54 return substr( $class, 1 + rindex($class, ':') );
19             }
20              
21             1;