Branch Coverage

blib/lib/Jemplate.pm
Criterion Covered Total %
branch 5 132 3.7


line true false branch
85 0 0 if ($runtime)
87 0 0 unless $compile
91 0 0 unless @$templates
93 0 0 if ($list)
100 0 0 if ($compile)
105 0 0 if ($content)
125 0 0 exists $ENV{'JEMPLATE_START_TAG'} ? :
128 0 0 exists $ENV{'JEMPLATE_END_TAG'} ? :
131 0 0 exists $ENV{'JEMPLATE_PRE_CHOMP'} ? :
134 0 0 exists $ENV{'JEMPLATE_POST_CHOMP'} ? :
137 0 0 exists $ENV{'JEMPLATE_TRIM'} ? :
140 0 0 exists $ENV{'JEMPLATE_ANYCASE'} ? :
143 0 0 exists $ENV{'JEMPLATE_EVAL_JAVASCRIPT'} ? :
152 0 0 unless GetOptions 'compile|c', \$compile, 'list|l', \$list, 'runtime|r:s', \$runtime, 'start-tag=s', \$start_tag, 'end-tag=s', \$end_tag, 'trim=s', \$trim, 'pre-chomp', \$pre_chomp, 'post-chomp', \$post_chomp, 'any-case', \$anycase, 'eval!', \$eval_javascript, 'source|s', \$source, 'ajax:s', \$ajax, 'json:s', \$json, 'xxx', \$xxx, 'xhr:s', \$xhr, 'compact', \$compact, 'minify:s', \$minify, 'help|?', \$help
178 0 0 if ($help)
182 0 0 defined $_ && !length($_) ? :
183 0 0 if $runtime and $runtime eq 1
185 0 0 if defined $runtime and not grep({$runtime =~ /$_/;} 'standard', 'lite', 'jquery', 'yui', 'legacy')
186 0 0 if $list and $runtime || $compile
187 0 0 unless $list or $runtime or $compile
189 0 0 $list ? :
0 0 $compile ? :
0 0 $runtime ? :
196 0 0 if defined $start_tag
197 0 0 if defined $end_tag
198 0 0 if defined $pre_chomp
199 0 0 if defined $post_chomp
200 0 0 if defined $trim
201 0 0 if defined $anycase
202 0 0 if defined $eval_javascript
216 0 0 unless open F, '<', $filepath
228 2 1 if (m[/\.[^\.]+]) { }
242 0 0 unless (-e $arg)
243 0 0 unless (-s $arg or -d $arg)
245 0 0 if (-d $arg) { }
264 0 0 if @_
273 0 0 unless @_
275 0 0 defined $_ ? :
277 0 0 $compact ? :
279 0 0 if ($runtime eq 'standard') { }
0 0 elsif ($runtime eq 'jquery') { }
0 0 elsif ($runtime eq 'yui') { }
0 0 elsif ($runtime eq 'legacy') { }
0 0 elsif ($runtime eq 'lite') { }
300 0 0 if $ajax eq 1
301 0 0 if $ajax eq 'xhr'
302 0 0 if $json eq 1
303 0 0 if $xhr eq 1
307 0 0 if $runtime
309 0 0 if $json =~ /^json2?$/i
311 0 0 if $ajax eq 'xhr'
312 0 0 if $ajax eq 'jquery'
313 0 0 if $ajax eq 'yui'
315 0 0 if $json =~ /^json2?$/i
316 0 0 if $json =~ /^json2?[_-]?internal$/i
317 0 0 if $json eq 'yui'
319 0 0 if $xhr eq 'ilinsky'
320 0 0 if $xhr eq 'gregory'
322 0 0 if $xxx
336 0 0 unless my $result = $self->compile_template_files(@$template_file_paths)
338 0 0 unless open MODULE, "> $module_path"
348 0 0 unless grep {-M $_ < $m;} @$template_file_paths
358 0 0 unless open FILE, $filepath
369 0 5 unless @_ == 3
372 1 4 ref $self ? :
373 0 0 unless my $parse_tree = $parser->parse($template_content, {'name', $template_name})