File Coverage

blib/lib/Protocol/DBus/Authn/Mechanism.pm
Criterion Covered Total %
statement 19 19 100.0
branch n/a
condition 1 3 33.3
subroutine 7 7 100.0
pod 0 2 0.0
total 27 31 87.1


line stmt bran cond sub pod time code
1             package Protocol::DBus::Authn::Mechanism;
2              
3 9     9   3889 use strict;
  9         26  
  9         251  
4 9     9   41 use warnings;
  9         22  
  9         238  
5              
6 9     9   74 use constant INITIAL_RESPONSE => ();
  9         29  
  9         570  
7 9     9   59 use constant AFTER_AUTH => ();
  9         22  
  9         543  
8              
9 9     9   62 use constant on_rejected => ();
  9         22  
  9         1193  
10              
11             sub new {
12 6     6 0 418 my $self = bless {}, shift;
13              
14 6         47 return $self;
15             }
16              
17             sub label {
18 7   33 7 0 34 my $class = ref($_[0]) || $_[0];
19              
20 7         54 return substr( $class, 1 + rindex($class, ':') );
21             }
22              
23             1;