File Coverage

blib/lib/Net/StackExchange2/V2/Answers.pm
Criterion Covered Total %
statement 15 22 68.1
branch n/a
condition n/a
subroutine 5 6 83.3
pod 0 1 0.0
total 20 29 68.9


line stmt bran cond sub pod time code
1             package Net::StackExchange2::V2::Answers;
2              
3 1     1   26 use 5.006;
  1         4  
  1         39  
4 1     1   5 use strict;
  1         2  
  1         37  
5 1     1   4 use warnings FATAL => 'all';
  1         2  
  1         43  
6 1     1   1088 use Sub::Name qw(subname);
  1         1423  
  1         87  
7 1     1   657 use Net::StackExchange2::V2::Common qw(query no_params one_param);
  1         272  
  1         773  
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           *answers_comments = subname(
17             "Net::StackExchange2::V2::Answers::answers_comments",
18             one_param("answers","comments"),
19             );
20 0           *answers = subname(
21             "Net::StackExchange2::V2::Answers::answers",
22             one_param("answers"),
23             );
24 0           *answers_all = subname(
25             "Net::StackExchange2::V2::Answers::answers_all",
26             no_params("answers"),
27             );
28 0           return $self;
29             }
30              
31             1; #END of Net::StackExchange2::V2::Answers
32             __END__