File Coverage

blib/lib/Net/StackExchange2/V2/Notifications.pm
Criterion Covered Total %
statement 15 21 71.4
branch n/a
condition n/a
subroutine 5 6 83.3
pod 0 1 0.0
total 20 28 71.4


line stmt bran cond sub pod time code
1             package Net::StackExchange2::V2::Notifications;
2              
3 1     1   21 use 5.006;
  1         4  
  1         52  
4 1     1   76 use strict;
  1         9  
  1         37  
5 1     1   11 use warnings FATAL => 'all';
  1         3  
  1         39  
6 1     1   6 use Sub::Name qw(subname);
  1         2  
  1         59  
7 1     1   5 use Net::StackExchange2::V2::Common qw(query no_params one_param);
  1         2  
  1         210  
8              
9             our $VERSION = "0.05";
10              
11             sub new {
12 0     0 0   my ($class, $params) = @_;
13 0           my $self = $params;
14 0           bless $self, $class;
15              
16 0           *notifcations = subname(
17             "Net::StackExchange2::V2::Notifcations::notifcations",
18             no_params("notifications", {no_site => 1}),
19             );
20 0           *notifcations_unread = subname(
21             "Net::StackExchange2::V2::Notifications::notifcations_unread",
22             no_params("notifications/unread",{no_site => 1}),
23             );
24            
25 0           return $self;
26             }
27             1; #END of Net::StackExchange2::V2::Notifications
28             __END__