blib/lib/Ukigumo/Agent/View.pm

filter: Statementstmt 91.6% 22 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 77.7% 7 / 9 Podpod 0.0% 0 / 1 totaltotal 85.2% 29 / 34 SCAR 0.0
CC
1
Cov
92%
__ANON__
2.0
__ANON__
2.0
make_instance
1.1
CRAP 1.0
« blib/lib/Ukigumo/Agent/Cleaner.pm ↑ Summary Build »
1 package Ukigumo::Agent::View;
2 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 6 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 6 ▶use Text::Xslate;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 6 ▶use List::Util qw(first);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 6 ▶use File::Spec;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 sub make_instance {
10 6 ▶ my ($class, $c) = @_;
Subroutine make_instance: called CC=1 SCAR=0.6
Pod undocumented
11  
12 6 my $path = File::Spec->catdir($c->share_dir, 'tmpl');
13 my $xslate = Text::Xslate->new(
14 syntax => 'TTerse',
15 path => ["$path"],
16 module => [
17 'Text::Xslate::Bridge::Star',
18 'Time::Piece' => ['localtime'],
19 'Time::Duration' => ['duration'],
20 ],
21 function => {
22 0 ▶ time => sub { time() },
Subroutine __ANON__: not called CC=1 SCAR=6.9
23 0 ▶ uri_for => sub { Amon2->context()->uri_for(@_) },
Subroutine __ANON__: not called CC=1 SCAR=6.9
24 },
25 6 );
26 }
27  
28 6 1;
29  
« blib/lib/Ukigumo/Agent/Cleaner.pm ↑ Summary Build »