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 5     5   2389 use strict;
  5         15  
  5         135  
4 5     5   25 use warnings;
  5         15  
  5         158  
5              
6 5     5   91 use constant INITIAL_RESPONSE => ();
  5         25  
  5         433  
7 5     5   30 use constant AFTER_AUTH => ();
  5         10  
  5         670  
8              
9             sub new {
10 2     2 0 9 my $self = bless {}, shift;
11              
12 2         20 return $self;
13             }
14              
15             sub label {
16 7   33 7 0 37 my $class = ref($_[0]) || $_[0];
17              
18 7         41 return substr( $class, 1 + rindex($class, ':') );
19             }
20              
21             1;