Branch Coverage

lib/PDF/WebKit.pm
Criterion Covered Total %
branch 12 38 31.5


line true false branch
45 0 17 if (not -x $self->configuration->wkhtmltopdf)
66 7 2 if ($self->source->is_html) { }
81 9 0 unless $default =~ m[^/]
82 0 0 if (-e $default) { }
97 0 0 $self->source->is_html ? :
103 0 0 if ($path)
107 0 0 unless (defined $output and length $output)
125 2 15 if $self->source->is_url
128 0 15 $@ ? :
133 15 0 unless eval { do { require XML::LibXML } }
148 0 0 $source->is_file ? :
0 0 $source->is_html ? :
155 0 0 unless $name and $name =~ s/^\Q$prefix\E//s
170 0 0 if (@{$self->stylesheets;} and not $self->source->is_html)
173 0 0 unless $self->source->is_html
176 0 0 unless length $styles > 0
181 0 0 unless ($html =~ s[(?=)][$styles])
192 2 64 unless defined $val and length $val
193 8 56 if (lc $val eq 'yes') { }