StackExchange2/V2/Tags.pm

filter: Statementstmt 51.6% 16 / 31 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 55.2% 21 / 38 CC 1 SCAR 1.5
CC
1
Cov
52%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« StackExchange2/V2/Users.pm ↑ Summary StackExchange2/V2/Questions.pm »
1 package Net::StackExchange2::V2::Tags;
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 two_params);
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 *tags_all = subname(
17 "Net::StackExchange2::V2::Tags::tags_all",
18 no_params("tags"),
19 );
20 0 *tags_info = subname(
21 "Net::StackExchange2::V2::Tags::tags_info",
22 one_param("tags", "info"),
23 );
24 0 *tags_moderator_only = subname(
25 "Net::StackExchange2::V2::Tags::tags_moderator_only",
26 no_params("tags/moderator-only"),
27 );
28 0 *tags_required = subname(
29 "Net::StackExchange2::V2::Tags::tags_required",
30 no_params("tags/required"),
31 );
32 0 *tags_synonyms_all = subname(
33 "Net::StackExchange2::V2::Tags::tags_synonyms_all",
34 no_params("tags/synonyms"),
35 );
36 0 *tags_faq = subname(
37 "Net::StackExchange2::V2::Tags::tags_faq",
38 one_param("tags", "faq"),
39 );
40 0 *tags_related = subname(
41 "Net::StackExchange2::V2::Tags::tags_related",
42 one_param("tags", "related"),
43 );
44 0 *tags_synonyms = subname(
45 "Net::StackExchange2::V2::Tags::tags_synonyms",
46 one_param("tags", "synonyms"),
47 );
48 0 *tags_top_answerers = subname(
49 "Net::StackExchange2::V2::Tags::tags_top_answerers",
50 two_params("tags", "top-answerers"),
51 );
52 0 *tags_top_askers = subname(
53 "Net::StackExchange2::V2::Tags::tags_top_askers",
54 two_params("tags", "top-askers"),
55 );
56 0 *tags_wikis = subname(
57 "Net::StackExchange2::V2::Tags::tags_wikis",
58 one_param("tags", "wikis"),
59 );
60 0 return $self;
61 }
62 1 1; # End of Net::StackExchange2::V2::Tags
63 __END__
« StackExchange2/V2/Users.pm ↑ Summary StackExchange2/V2/Questions.pm »