blib/lib/Text/Nunjucks/Nodes/For.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 2 totaltotal 90.4% 19 / 21 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
typename
1.0
CRAP 1.0
« blib/lib/Text/Nunjucks/Nodes/Switch.pm ↑ Summary blib/lib/Text/Nunjucks/Nodes/Add.pm »
1 package Text::Nunjucks::Nodes::For;
2 # ABSTRACT: AST node For (fields arr, name, body, else_), ported from nodes.js
3  
4 20 our $VERSION = '0.001';
5  
6 20 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 20 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 20 extends 'Text::Nunjucks::Nodes::Node';
10  
11 # nodes.js: const For = Node.extend('For', { fields: ['arr', 'name', 'body', 'else_'] });
12  
13 20 has arr => ( is => 'rw' );
14 20 has name => ( is => 'rw' );
15 20 has body => ( is => 'rw' );
16 20 has else_ => ( is => 'rw' );
17  
18 832 ▶sub typename { 'For' }
Subroutine typename: called CC=1 SCAR=0.0
Pod undocumented
19 10149 ▶sub fields { [ 'arr', 'name', 'body', 'else_' ] }
Subroutine fields: called CC=1 SCAR=0.0
Pod undocumented
20  
21 20 1;
22  
23 __END__
« blib/lib/Text/Nunjucks/Nodes/Switch.pm ↑ Summary blib/lib/Text/Nunjucks/Nodes/Add.pm »