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   3737 use strict;
  9         19  
  9         247  
4 9     9   44 use warnings;
  9         18  
  9         285  
5              
6 9     9   77 use constant INITIAL_RESPONSE => ();
  9         30  
  9         551  
7 9     9   50 use constant AFTER_AUTH => ();
  9         22  
  9         417  
8              
9 9     9   49 use constant on_rejected => ();
  9         66  
  9         1134  
10              
11             sub new {
12 6     6 0 410 my $self = bless {}, shift;
13              
14 6         59 return $self;
15             }
16              
17             sub label {
18 7   33 7 0 30 my $class = ref($_[0]) || $_[0];
19              
20 7         52 return substr( $class, 1 + rindex($class, ':') );
21             }
22              
23             1;