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   3815 use strict;
  9         22  
  9         250  
4 9     9   47 use warnings;
  9         22  
  9         237  
5              
6 9     9   65 use constant INITIAL_RESPONSE => ();
  9         34  
  9         481  
7 9     9   59 use constant AFTER_AUTH => ();
  9         18  
  9         411  
8              
9 9     9   54 use constant on_rejected => ();
  9         10  
  9         1222  
10              
11             sub new {
12 6     6 0 374 my $self = bless {}, shift;
13              
14 6         47 return $self;
15             }
16              
17             sub label {
18 7   33 7 0 39 my $class = ref($_[0]) || $_[0];
19              
20 7         53 return substr( $class, 1 + rindex($class, ':') );
21             }
22              
23             1;