Geoffrey/Role/Changelog.pm

filter: Statementstmt 84.2% 32 / 38 Branchbran n/a Conditioncond 33.3% 2 / 6 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 81.2% 13 / 16 Podpod 100% 12 / 12 totaltotal 77.6% 59 / 76 CC 3 SCAR 5.8
CC
3
Cov
77%
extension
6.0
ending
2.0
write
2.0
CRAP 1.8
« Geoffrey/Action/Constraint/PrimaryKey.pm ↑ Summary Geoffrey/Exception/RequiredValue.pm »
1 package Geoffrey::Role::Changelog;
2  
3 5 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 5 ▶use 5.016;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 5 $Geoffrey::Role::Changelog::VERSION = '0.000206';
9  
10 7 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
11 7 my $class = shift;
12 7 my $self = {@_};
13 7 $self->{needs_converter} = 0;
14 7 $self->{needs_dbh} = 0;
15 7 return bless $self, $class;
16 }
17  
18 1 ▶sub tpl_main {
Subroutine tpl_main: called CC=1 SCAR=0.0
Pod documented
19 1 require Geoffrey::Exception::NotSupportedException;
20 1 return Geoffrey::Exception::NotSupportedException::throw_file('tpl_main', $_[0]);
21 }
22  
23 1 ▶sub tpl_sub {
Subroutine tpl_sub: called CC=1 SCAR=0.0
Pod documented
24 1 require Geoffrey::Exception::NotSupportedException;
25 1 return Geoffrey::Exception::NotSupportedException::throw_file('tpl_sub', $_[0]);
26 }
27  
28 1 ▶sub load {
Subroutine load: called CC=1 SCAR=0.0
Pod documented
29 1 require Geoffrey::Exception::NotSupportedException;
30 1 return Geoffrey::Exception::NotSupportedException::throw_file('load', $_[0]);
31 }
32  
33 0 ▶sub write {
Subroutine write: not called CC=1 SCAR=6.9
Pod documented
34 0 require Geoffrey::Exception::NotSupportedException;
35 0 return Geoffrey::Exception::NotSupportedException::throw_file('write', $_[0]);
36 }
37  
38 1 ▶sub insert {
Subroutine insert: called CC=1 SCAR=0.0
Pod documented
39 1 require Geoffrey::Exception::NotSupportedException;
40 1 return Geoffrey::Exception::NotSupportedException::throw_changelog('insert', shift);
41 }
42  
43 2 ▶sub delete {
Subroutine delete: called CC=1 SCAR=0.0
Pod documented
44 2 require Geoffrey::Exception::NotSupportedException;
45 2 return Geoffrey::Exception::NotSupportedException::throw_changelog('delete', shift);
46 }
47  
48 0 ▶sub load_changeset {
Subroutine load_changeset: not called CC=1 SCAR=6.9
Pod documented
49 0 require Geoffrey::Exception::NotSupportedException;
50 0 return Geoffrey::Exception::NotSupportedException::throw_io_call('load_changeset', shift);
51 }
52  
53 8 ▶sub ending { $_[0]->{extension} //= $_[0]->{ending}; return $_[0]->{extension}; }
Subroutine ending: called CC=2 SCAR=7.1
Pod documented
Condition66%2/3
$_[0]{"extension"} //= $_[0]{"ending"}
l!l&&r!l&&!r
620
MC/DC0%0/2
$_[0]{"extension"} //= $_[0]{"ending"}
$_[0]{"extension"} $_[0]{"ending"}
Truth table66%2/3
A //= B
A= $_[0]{"extension"}B= $_[0]{"ending"}
ABresult
1X1
011
000
54  
55 0 ▶sub extension { $_[0]->{extension} //= $_[0]->{ending}; return $_[0]->{extension}; }
Subroutine extension: not called CC=2 SCAR=17.9
Pod documented
Condition0%0/3
$_[0]{"extension"} //= $_[0]{"ending"}
l!l&&r!l&&!r
000
MC/DC0%0/2
$_[0]{"extension"} //= $_[0]{"ending"}
$_[0]{"extension"} $_[0]{"ending"}
Truth table0%0/3
A //= B
A= $_[0]{"extension"}B= $_[0]{"ending"}
ABresult
1X1
011
000
56  
57 12 ▶sub needs_converter { return $_[0]->{needs_converter}; }
Subroutine needs_converter: called CC=1 SCAR=0.0
Pod documented
58  
59 13 ▶sub needs_dbh { return $_[0]->{needs_dbh}; }
Subroutine needs_dbh: called CC=1 SCAR=0.0
Pod documented
60  
61  
62 5 1; # End of Geoffrey::Role::Changelog
63  
64 __END__
« Geoffrey/Action/Constraint/PrimaryKey.pm ↑ Summary Geoffrey/Exception/RequiredValue.pm »