Condition Coverage

blib/lib/EBook/Ishmael.pm
Criterion Covered Total %
condition 14 29 48.2


and 3 conditions

line !l l&&!r l&&r condition
203 93 22 0 defined $self->{'Encode'} and not defined &find_encoding($self->{'Encode'})
207 110 5 0 defined $self->{'FileEnc'} and not defined &find_encoding($self->{'FileEnc'})

or 2 conditions

line l !l condition
165 33 0 lc $_[1] || 'ishmael'

or 3 conditions

line l !l&&r !l&&!r condition
164 0 33 0 not $_[1] or exists $META_MODES{lc $_[1]}
182 11 0 0 $self->{'Output'} //= (fileparse($self->{'Ebook'}, qr/\.[^.]*/u))[0] . '.-'
184 11 0 0 $self->{'Output'} //= (fileparse($self->{'Ebook'}, qr/\.[^.]*/u))[0]
186 82 11 0 $self->{'Output'} //= $STDOUT
266 0 0 33 $self->{'Meta'} eq "pxml" or $self->{'Meta'} eq "pjson"
270 11 0 11 $self->{'Meta'} eq "json" or $self->{'Meta'} eq "pjson"
11 0 0 $self->{'Meta'} eq "xml" or $self->{'Meta'} eq "pxml"