CPAN/Changes.pm

filter: Statementstmt 98.2% 56 / 57 Branchbran 50.0% 29 / 58 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 90.0% 9 / 10 Podpod 100% 3 / 3 totaltotal 75.7% 97 / 128 CC 30 SCAR 37.9
CC
30
Cov
74%
init
57.3
object
2.0
BEGIN
1.0
CRAP 44.3
« CPAN/Module.pm ↑ Summary CPAN/Scroll.pm »
1 ##----------------------------------------------------------------------------
2 ## Meta CPAN API - ~/lib/Net/API/CPAN/Changes.pm
3 ## Version v0.1.0
4 ## Copyright(c) 2023 DEGUEST Pte. Ltd.
5 ## Author: Jacques Deguest <jack@deguest.jp>
6 ## Created 2023/07/25
7 ## Modified 2023/11/24
8 ## All rights reserved
9 ##
10 ##
11 ## This program is free software; you can redistribute it and/or modify it
12 ## under the same terms as Perl itself.
13 ##----------------------------------------------------------------------------
14 # This module file has been automatically generated. Any change made here will be lost.
15 # Edit the script in ./build/build_modules.pl instead
16 package Net::API::CPAN::Changes;
17 BEGIN
18 2 ▶{
Subroutine BEGIN: called CC=1 SCAR=0.0
19 2 ▶ use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 2 ▶ use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 2 ▶ use parent qw( Net::API::CPAN::File );
Subroutine BEGIN: called CC=1 SCAR=0.0
22 2 ▶ use vars qw( $VERSION );
Subroutine BEGIN: called CC=1 SCAR=0.0
23 2 our $VERSION = 'v0.1.0';
24 };
25  
26 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
27 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
28  
29 sub init
30 1 ▶{
Subroutine init: called CC=30 SCAR=40.5
Pod documented
31 1 my $self = shift( @_ );
32 1 ▶ $self->{author} = undef unless( CORE::exists( $self->{author} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"author"} 1 0 1
33 1 ▶ $self->{authorized} = undef unless( CORE::exists( $self->{authorized} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"authorized"} 1 0 1
34 1 ▶ $self->{binary} = undef unless( CORE::exists( $self->{binary} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"binary"} 1 0 1
35 1 ▶ $self->{category} = undef unless( CORE::exists( $self->{category} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"category"} 1 0 1
36 1 ▶ $self->{content} = undef unless( CORE::exists( $self->{content} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"content"} 1 0 1
37 1 ▶ $self->{date} = undef unless( CORE::exists( $self->{date} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"date"} 1 0 1
38 1 ▶ $self->{deprecated} = undef unless( CORE::exists( $self->{deprecated} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"deprecated"} 1 0 1
39 1 ▶ $self->{directory} = undef unless( CORE::exists( $self->{directory} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"directory"} 1 0 1
40 1 ▶ $self->{dist_fav_count} = undef unless( CORE::exists( $self->{dist_fav_count} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"dist_fav_count"} 1 0 1
41 1 ▶ $self->{distribution} = undef unless( CORE::exists( $self->{distribution} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"distribution"} 1 0 1
42 1 ▶ $self->{download_url} = undef unless( CORE::exists( $self->{download_url} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"download_url"} 1 0 1
43 1 ▶ $self->{id} = undef unless( CORE::exists( $self->{id} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"id"} 1 0 1
44 1 ▶ $self->{indexed} = undef unless( CORE::exists( $self->{indexed} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"indexed"} 1 0 1
45 1 ▶ $self->{level} = undef unless( CORE::exists( $self->{level} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"level"} 1 0 1
46 1 ▶ $self->{maturity} = undef unless( CORE::exists( $self->{maturity} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"maturity"} 1 0 1
47 1 ▶ $self->{mime} = undef unless( CORE::exists( $self->{mime} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"mime"} 1 0 1
48 1 ▶ $self->{module} = [] unless( CORE::exists( $self->{module} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"module"} 1 0 1
49 1 ▶ $self->{name} = undef unless( CORE::exists( $self->{name} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"name"} 1 0 1
50 1 $self->{object} = 'changes';
51 1 ▶ $self->{path} = undef unless( CORE::exists( $self->{path} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"path"} 1 0 1
52 1 ▶ $self->{pod} = undef unless( CORE::exists( $self->{pod} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"pod"} 1 0 1
53 1 ▶ $self->{pod_lines} = [] unless( CORE::exists( $self->{pod_lines} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"pod_lines"} 1 0 1
54 1 ▶ $self->{release} = undef unless( CORE::exists( $self->{release} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"release"} 1 0 1
55 1 ▶ $self->{sloc} = undef unless( CORE::exists( $self->{sloc} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"sloc"} 1 0 1
56 1 ▶ $self->{slop} = undef unless( CORE::exists( $self->{slop} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"slop"} 1 0 1
57 1 ▶ $self->{stat} = undef unless( CORE::exists( $self->{stat} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"stat"} 1 0 1
58 1 ▶ $self->{status} = undef unless( CORE::exists( $self->{status} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"status"} 1 0 1
59 1 ▶ $self->{version} = '' unless( CORE::exists( $self->{version} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"version"} 1 0 1
60 1 ▶ $self->{version_numified} = undef unless( CORE::exists( $self->{version_numified} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"version_numified"} 1 0 1
61 1 $self->{_init_strict_use_sub} = 1;
62 1 $self->{_exception_class} = 'Net::API::CPAN::Exception';
63 1 ▶ $self->SUPER::init( @_ ) || return( $self->pass_error );
Branch: 1 branch
BranchTrueFalseTotal
$self->SUPER::init(@_) or return $self->pass_error 1 0 1
64 1 $self->{fields} = [qw(
65 author authorized binary category content date deprecated directory dist_fav_count
66 distribution download_url id indexed level maturity mime module name path pod
67 pod_lines release sloc slop stat status version version_numified
68 )];
69 1 return( $self );
70 }
71  
72 # NOTE: sub author is inherited from Net::API::CPAN::File
73  
74 # NOTE: sub authorized is inherited from Net::API::CPAN::File
75  
76 # NOTE: sub binary is inherited from Net::API::CPAN::File
77  
78 # NOTE: sub category is inherited from Net::API::CPAN::File
79  
80 2 ▶sub content { return( shift->_set_get_scalar_as_object( 'content', @_ ) ); }
Subroutine content: called CC=1 SCAR=0.0
Pod documented
81  
82 # NOTE: sub date is inherited from Net::API::CPAN::File
83  
84 # NOTE: sub deprecated is inherited from Net::API::CPAN::File
85  
86 # NOTE: sub directory is inherited from Net::API::CPAN::File
87  
88 # NOTE: sub dist_fav_count is inherited from Net::API::CPAN::File
89  
90 # NOTE: sub distribution is inherited from Net::API::CPAN::File
91  
92 # NOTE: sub download_url is inherited from Net::API::CPAN::File
93  
94 # NOTE: sub id is inherited from Net::API::CPAN::File
95  
96 # NOTE: sub indexed is inherited from Net::API::CPAN::File
97  
98 # NOTE: sub level is inherited from Net::API::CPAN::File
99  
100 # NOTE: sub maturity is inherited from Net::API::CPAN::File
101  
102 # NOTE: sub mime is inherited from Net::API::CPAN::File
103  
104 # NOTE: sub module is inherited from Net::API::CPAN::File
105  
106 # NOTE: sub name is inherited from Net::API::CPAN::File
107  
108 0 ▶sub object { return( shift->_set_get_scalar_as_object( 'object', @_ ) ); }
Subroutine object: not called CC=1 SCAR=6.9
Pod documented
109  
110 # NOTE: sub path is inherited from Net::API::CPAN::File
111  
112 # NOTE: sub pod is inherited from Net::API::CPAN::File
113  
114 # NOTE: sub pod_lines is inherited from Net::API::CPAN::File
115  
116 # NOTE: sub release is inherited from Net::API::CPAN::File
117  
118 # NOTE: sub sloc is inherited from Net::API::CPAN::File
119  
120 # NOTE: sub slop is inherited from Net::API::CPAN::File
121  
122 # NOTE: sub stat is inherited from Net::API::CPAN::File
123  
124 # NOTE: sub status is inherited from Net::API::CPAN::File
125  
126 # NOTE: sub version is inherited from Net::API::CPAN::File
127  
128 # NOTE: sub version_numified is inherited from Net::API::CPAN::File
129  
130 2 1;
131 # NOTE: POD
132 __END__
« CPAN/Module.pm ↑ Summary CPAN/Scroll.pm »