CPAN/DownloadUrl.pm

filter: Statementstmt 97.6% 41 / 42 Branchbran 50.0% 8 / 16 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 93.7% 15 / 16 Podpod 100% 9 / 9 totaltotal 87.9% 73 / 83 CC 9 SCAR 15.3
CC
9
Cov
84%
init
10.5
object
2.0
BEGIN
1.0
CRAP 4.6
« CPAN/Rating.pm ↑ Summary CPAN/Release/Recent.pm »
1 ##----------------------------------------------------------------------------
2 ## Meta CPAN API - ~/lib/Net/API/CPAN/DownloadUrl.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::DownloadUrl;
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::Generic );
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=9 SCAR=23.5
Pod documented
31 1 my $self = shift( @_ );
32 1 ▶ $self->{checksum_md5} = undef unless( CORE::exists( $self->{checksum_md5} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"checksum_md5"} 1 0 1
33 1 ▶ $self->{checksum_sha256} = undef unless( CORE::exists( $self->{checksum_sha256} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"checksum_sha256"} 1 0 1
34 1 ▶ $self->{date} = undef unless( CORE::exists( $self->{date} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"date"} 1 0 1
35 1 ▶ $self->{download_url} = undef unless( CORE::exists( $self->{download_url} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"download_url"} 1 0 1
36 1 $self->{object} = 'download_url';
37 1 ▶ $self->{release} = undef unless( CORE::exists( $self->{release} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"release"} 1 0 1
38 1 ▶ $self->{status} = undef unless( CORE::exists( $self->{status} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"status"} 1 0 1
39 1 ▶ $self->{version} = '' unless( CORE::exists( $self->{version} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"version"} 1 0 1
40 1 $self->{_init_strict_use_sub} = 1;
41 1 $self->{_exception_class} = 'Net::API::CPAN::Exception';
42 1 ▶ $self->SUPER::init( @_ ) || return( $self->pass_error );
Branch: 1 branch
BranchTrueFalseTotal
$self->SUPER::init(@_) or return $self->pass_error 1 0 1
43 1 $self->{fields} = [qw(
44 checksum_md5 checksum_sha256 date download_url release status version
45 )];
46 1 return( $self );
47 }
48  
49 2 ▶sub checksum_md5 { return( shift->_set_get_scalar_as_object( 'checksum_md5', @_ ) ); }
Subroutine checksum_md5: called CC=1 SCAR=0.0
Pod documented
50  
51 2 ▶sub checksum_sha256 { return( shift->_set_get_scalar_as_object( 'checksum_sha256', @_ ) ); }
Subroutine checksum_sha256: called CC=1 SCAR=0.0
Pod documented
52  
53 2 ▶sub date { return( shift->_set_get_datetime( 'date', @_ ) ); }
Subroutine date: called CC=1 SCAR=0.0
Pod documented
54  
55 2 ▶sub download_url { return( shift->_set_get_uri( 'download_url', @_ ) ); }
Subroutine download_url: called CC=1 SCAR=0.0
Pod documented
56  
57 0 ▶sub object { return( shift->_set_get_scalar_as_object( 'object', @_ ) ); }
Subroutine object: not called CC=1 SCAR=6.9
Pod documented
58  
59 2 ▶sub release { return( shift->_set_get_scalar_as_object( 'release', @_ ) ); }
Subroutine release: called CC=1 SCAR=0.0
Pod documented
60  
61 2 ▶sub status { return( shift->_set_get_scalar_as_object( 'status', @_ ) ); }
Subroutine status: called CC=1 SCAR=0.0
Pod documented
62  
63 2 ▶sub version { return( shift->_set_get_version( { class => "Changes::Version", field => "version" }, @_ ) ); }
Subroutine version: called CC=1 SCAR=0.0
Pod documented
64  
65 2 1;
66 # NOTE: POD
67 __END__
« CPAN/Rating.pm ↑ Summary CPAN/Release/Recent.pm »