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   3612 use strict;
  8         16  
  8         236  
4 8     8   40 use warnings;
  8         16  
  8         212  
5              
6 8     8   64 use constant INITIAL_RESPONSE => ();
  8         28  
  8         408  
7 8     8   44 use constant AFTER_AUTH => ();
  8         12  
  8         1128  
8              
9             sub new {
10 6     6 0 439 my $self = bless {}, shift;
11              
12 6         40 return $self;
13             }
14              
15             sub label {
16 7   33 7 0 31 my $class = ref($_[0]) || $_[0];
17              
18 7         49 return substr( $class, 1 + rindex($class, ':') );
19             }
20              
21             1;