ZofCMS/Plugin/RandomBashOrgQuote.pm

filter: Statementstmt 68.7% 11 / 16 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 56.0% 14 / 25 CC 2 SCAR 10.4
CC
2
Cov
61%
process
6.0
new
2.0
BEGIN
1.0
CRAP 2.8
« ZofCMS/Plugin/QueryToTemplate.pm ↑ Summary ZofCMS/Plugin/HTMLFactory/Entry.pm »
1 package App::ZofCMS::Plugin::RandomBashOrgQuote;
2  
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 our $VERSION = '1.001010'; # VERSION
7  
8 1 ▶use WWW::BashOrg;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 0 ▶sub new { bless {}, shift }
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
11  
12 0 ▶sub process {
Subroutine process: not called CC=2 SCAR=17.9
Pod undocumented
13 0 my ( $self, $t ) = @_;
14  
15 0 my $b = WWW::BashOrg->new;
16 0 my $quote = $b->random;
17  
18 0 ▶ $t->{t}{plug_random_bash_org_quote} = $quote ? $quote : "Error: " . $b->error;
Branch: 1 branch
BranchTrueFalseTotal
$quote ? : 0 0 0
19 }
20  
21 1 1;
22 __END__
« ZofCMS/Plugin/QueryToTemplate.pm ↑ Summary ZofCMS/Plugin/HTMLFactory/Entry.pm »