Branch Coverage

blib/lib/Text/Amuse/Compile/TemplateOptions.pm
Criterion Covered Total %
branch 41 42 97.6


line true false branch
118 527 2 if ($paper) { }
120 156 371 if ($aliases{$paper}) { }
364 7 elsif ($paper =~ /\A$tex_measure:$tex_measure\z/) { }
147 1 532 unless $_[0] =~ /[0-9]+(\.[0-9]+)?(cm|mm|in|pt)/
152 8 4 if $_[0]
156 4 252 unless &is_Int($_[0]) and $_[0] > -1 and $_[0] < 10001
309 1233 223 unless $filename
313 32 191 if ($filename =~ m[/]) { }
185 6 elsif ($filename =~ /\A ( [a-zA-Z0-9] [a-zA-Z0-9-]* [a-zA-Z0-9] (\.(pdf|jpe?g|png))? ) \z/x) { }
314 24 8 if (-f $filename and $filename =~ /[a-zA-Z0-9]+\.(pdf|jpe?g|png)\z/ and 'File::Spec'->file_name_is_absolute($filename)) { }
489 0 282 unless $width
490 270 12 if ($width =~ /\A[01](\.[0-9][0-9]?)?\z/) { }
491 1 269 unless $width <= 1 and $width > 0
770 4 249 if ($self->twoside and $self->oneside)
773 35 214 if ($self->twoside) { }
812 1 248 if ($self->areaset_height and $self->areaset_width and $self->geometry_outer_margin and $self->geometry_top_margin) { }
831 249 10209 if (my $alias = $replace{$method}) { }
249 9960 elsif ($method eq 'headings') { }
249 9711 elsif ($method eq 'format_id') { }
836 34 215 if (my $value = $self->headings)
837 5 29 if ($value eq 1)