blib/lib/Bootylicious/Pingback.pm

filter: Statementstmt 100% 19 / 19 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 92.5% 25 / 27 CC 2 SCAR 2.9
CC
2
Cov
95%
create
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« blib/lib/Bootylicious/PingbackIteratorFinder.pm ↑ Summary blib/lib/Bootylicious/ArticleArchive.pm »
1 package Bootylicious::Pingback;
2  
3 13 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 13 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 13 ▶use base 'Mojo::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 13 __PACKAGE__->attr('created');
9 13 __PACKAGE__->attr('source_uri');
10  
11 sub create {
12 3 ▶ my $self = shift;
Subroutine create: called CC=2 SCAR=7.0
Pod undocumented
13 3 my $path = shift;
14  
15 3 ▶ open my $file, '>>:encoding(UTF-8)', $path or return;
Subroutine BEGIN: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
open my $file, ">>:encoding(UTF-8)", $path or return 0 3 3
16  
17 3 print $file $self->created->timestamp . ' ' . $self->source_uri . "\n";
18 }
19  
20 13 1;
« blib/lib/Bootylicious/PingbackIteratorFinder.pm ↑ Summary blib/lib/Bootylicious/ArticleArchive.pm »