CPAN/Diff.pm

filter: Statementstmt 97.2% 35 / 36 Branchbran 50.0% 5 / 10 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 92.3% 12 / 13 Podpod 100% 6 / 6 totaltotal 89.2% 58 / 65 CC 6 SCAR 10.6
CC
6
Cov
87%
init
6.5
object
2.0
BEGIN
1.0
CRAP 2.9
« CPAN/Contributor.pm ↑ Summary CPAN/Mirrors.pm »
1 ##----------------------------------------------------------------------------
2 ## Meta CPAN API - ~/lib/Net/API/CPAN/Diff.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::Diff;
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=6 SCAR=18.7
Pod documented
31 1 my $self = shift( @_ );
32 1 ▶ $self->{diff} = undef unless( CORE::exists( $self->{diff} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"diff"} 1 0 1
33 1 $self->{object} = 'diff';
34 1 ▶ $self->{source} = undef unless( CORE::exists( $self->{source} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"source"} 1 0 1
35 1 ▶ $self->{statistics} = [] unless( CORE::exists( $self->{statistics} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"statistics"} 1 0 1
36 1 ▶ $self->{target} = undef unless( CORE::exists( $self->{target} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->{"target"} 1 0 1
37 1 $self->{_init_strict_use_sub} = 1;
38 1 $self->{_exception_class} = 'Net::API::CPAN::Exception';
39 1 ▶ $self->SUPER::init( @_ ) || return( $self->pass_error );
Branch: 1 branch
BranchTrueFalseTotal
$self->SUPER::init(@_) or return $self->pass_error 1 0 1
40 1 $self->{fields} = [qw( diff source statistics target )];
41 1 return( $self );
42 }
43  
44 1 ▶sub diff { return( shift->_set_get_scalar_as_object( 'diff', @_ ) ); }
Subroutine diff: called CC=1 SCAR=0.0
Pod documented
45  
46 0 ▶sub object { return( shift->_set_get_scalar_as_object( 'object', @_ ) ); }
Subroutine object: not called CC=1 SCAR=6.9
Pod documented
47  
48 2 ▶sub source { return( shift->_set_get_scalar_as_object( 'source', @_ ) ); }
Subroutine source: called CC=1 SCAR=0.0
Pod documented
49  
50 2 ▶sub statistics { return( shift->_set_get_class_array_object( 'statistics', {
Subroutine statistics: called CC=1 SCAR=0.0
Pod documented
51 deletions => "integer",
52 diff => "scalar_as_object",
53 insertions => "integer",
54 source => "scalar_as_object",
55 target => "scalar_as_object",
56 }, @_ ) ); }
57  
58 2 ▶sub target { return( shift->_set_get_scalar_as_object( 'target', @_ ) ); }
Subroutine target: called CC=1 SCAR=0.0
Pod documented
59  
60 2 1;
61 # NOTE: POD
62 __END__
« CPAN/Contributor.pm ↑ Summary CPAN/Mirrors.pm »