Condition Coverage

blib/lib/Marpa/R2/HTML.pm
Criterion Covered Total %
condition 44 94 46.8


and 3 conditions

line !l l&&!r l&&r condition
173 98 317 0 $pseudoclass and not exists $allowed_pseudoclasses->{$pseudoclass}
180 98 317 0 $pseudoclass and $element
266 180 0 0 $trace_handlers and defined $handler
288 495 0 0 $trace_handlers and defined $handler
1021 2680 741 747 defined $action and index($action, "ELE_") == 0
1028 0 346 401 defined $start_tag_type and $start_tag_type eq "PHYSICAL_TOKEN"
1043 2680 747 741 defined $action and index($action, "SPE_") == 0
1078 4168 0 0 $trace_handlers and $handler

or 2 conditions

line l !l condition
119 415 0 ref $handler_description || 'not a reference'
142 5 93 $class //= "*"
150 0 0 ref $handler_specs || 'not a reference'
207 93 0 ref $arg || 'not a reference'
216 2 0 ref $option_hash || 'not a reference'
257 1341 0 $class //= "*"
296 0 0 $action // "*"
385 5 5 $tdesc_item->[3] // ""
441 0 94 $self->{'trace_terminals'} // 0
570 25 0 $primary_group_by_tag->{$tag_name} // "GRP_anywhere"
572 25 0 $runtime_tag->{$tag_name} // "FLO_mixed"
709 0 368 $ruby_vectors{'!non_element'} // \@no_ruby_slippers_vector
1048 246 3922 $attributes->{'class'} // "*"
1078 0 0 $class // "*"

or 3 conditions

line l !l&&r !l&&!r condition
165 5 317 93 ($element, $class) = $specifier =~ /\A ([^.]*) [.] (.*) \z/mosx or ($element, $pseudoclass) = $specifier =~ /\A ([^:]*) [:] (.*) \z/mosx
266 0 0 0 say {*STDERR;} qq[Rule ${rule_id}: Found handler by species: "$species"] or Carp::croak("Cannot print: $Marpa::R2::HTML::Internal::ERRNO")
288 0 0 0 say {*STDERR;} qq[Rule ${rule_id}: Found handler by action and class: "], (grep {defined $self->{'handler_by_element_and_class'}{$_};} @handler_keys)[0], "\"" or Carp::croak("Cannot print: $Marpa::R2::HTML::Internal::ERRNO")
296 0 0 0 say {*STDERR;} qq[Rule ${rule_id}: Using default handler for action "], $action // "*", qq[" and class: "$class"] or Carp::croak("Cannot print: $Marpa::R2::HTML::Internal::ERRNO")
450 0 0 94 not $ref_type or $ref_type ne "SCALAR"
0 0 94 not $ref_type or $ref_type ne "SCALAR" or not defined ${$document_ref;}
475 17204 14352 92 $tracer->symbol_by_name($symbol_name) // $tracer->symbol_new($symbol_name)
554 337 402 5 $token_type eq "E" or $token_type eq "S"
649 92 92 2601 $symbol_name eq "E_body" or $symbol_name eq "E_html"
917 0 0 3 $trace_cruft or $fatal_cruft_error
978 0 0 0 say {*STDERR;} join(" ", $type, @step_data, $tracer->symbol_name($step_data[0])) or Carp::croak("Cannot print: $Marpa::R2::HTML::Internal::ERRNO")
985 0 0 0 say {*STDERR;} "Stack:\n", Data::Dumper::Dumper(\@stack) or Carp::croak("Cannot print: $Marpa::R2::HTML::Internal::ERRNO")
1002 0 0 0 say {*STDERR;} "Stack:\n", Data::Dumper::Dumper(\@stack) or Carp::croak("Cannot print: $Marpa::R2::HTML::Internal::ERRNO")
1008 0 0 0 say {*STDERR;} join(" ", ($type, @step_data)) or Carp::croak("Cannot print: $Marpa::R2::HTML::Internal::ERRNO")