Condition Coverage

blib/lib/HTML/LinkAdd.pm
Criterion Covered Total %
condition 7 24 29.1


and 2 conditions

line l !l condition
57 0 0 warn 'HTML::LinkAdd::new called without a class ref?' and return undef
58 0 0 warn "Useage: new $class (\$path_to_file or \\\$HTML)" and return undef
68 0 0 warn 'new requires a hash (or ref to such) as parameter.' and return undef
77 0 0 warn "Counldn't instantiate HTML::TokeParser!\n$!" and return undef
153 0 0 warn 'HTML::LinkAdd::save requires a filename as parameter 1' and return undef
155 0 0 warn "HTML::LinkAdd::save could not open the file <$filename> for writing.\n$!" and return undef

and 3 conditions

line !l l&&!r l&&r condition
81 26 0 0 @$token[1] eq 'html' && @$token[0] eq 'E'
4 0 26 $token = $p->get_token and not @$token[1] eq 'html' && @$token[0] eq 'E'
85 15 5 6 @$token[0] eq 'T' and not @{$$self{'skipto'};}
119 0 0 7 @{$$self{'skipto'};} and @$token[1] eq $$self{'skipto'}[0]