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 12     12   3851 use strict;
  12         21  
  12         285  
4 12     12   44 use warnings;
  12         21  
  12         233  
5              
6 12     12   59 use constant INITIAL_RESPONSE => ();
  12         55  
  12         580  
7 12     12   51 use constant AFTER_AUTH => ();
  12         19  
  12         405  
8              
9 12     12   53 use constant on_rejected => ();
  12         30  
  12         1260  
10              
11             sub new {
12 6     6 0 1319 my $self = bless {}, shift;
13              
14 6         36 return $self;
15             }
16              
17             sub label {
18 8   33 8 0 35 my $class = ref($_[0]) || $_[0];
19              
20 8         49 return substr( $class, 1 + rindex($class, ':') );
21             }
22              
23             1;