StackExchange2/V2/Comments.pm

filter: Statementstmt 66.6% 16 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 67.7% 21 / 31 CC 1 SCAR 1.5
CC
1
Cov
67%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« StackExchange2/V2/Posts.pm ↑ Summary StackExchange2/V2/Answers.pm »
1 package Net::StackExchange2::V2::Comments;
2  
3 1 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Sub::Name qw(subname);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Net::StackExchange2::V2::Common qw(query no_params one_param);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 our $VERSION = "0.05";
10  
11 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
12 0 my ($class, $params) = @_;
13 0 my $self = $params;
14 0 bless $self, $class;
15  
16 0 *comments_all = subname(
17 "Net::StackExchange2::V2::Comments::comments_all",
18 no_params("comments"),
19 );
20 0 *comments = subname(
21 "Net::StackExchange2::V2::Comments::comments",
22 one_param("comments"),
23 );
24 0 *comments_delete = subname(
25 "Net::StackExchange2::V2::Comments::comments_delete",
26 one_param("comments", "delete", {post => 1}),
27 );
28 0 *comments_edit = subname(
29 "Net::StackExchange2::V2::Comments::comments_edit",
30 one_param("comments", "edit", {post => 1}),
31 );
32 0 return $self;
33 }
34 1 1; #END of Net::StackExchange2::V2::Comments
35 __END__
« StackExchange2/V2/Posts.pm ↑ Summary StackExchange2/V2/Answers.pm »