Branch Coverage

blib/lib/CSS/Yamaantaka.pm
Criterion Covered Total %
branch 81 106 76.4


line true false branch
152 472 105 if ($src)
154 472 0 if ($dest)
163 472 0 unless ($src and $dest and $src eq $dest)
164 0 577 unless $$self{'adaptor'}
167 577 0 if ($$self{'adaptor'} and not ref $$self{'adaptor'})
169 0 577 if $@
174 2692 193 unless defined $$self{$o}
199 2 9 if ($1 eq '(') { }
4 5 elsif ($1 eq ')') { }
223 184 434 unless $adaptor->willReverseGlobalDirection
239 12 12 if (defined $m[0]) { }
240 4 8 if (not $adaptor->willSwapHorizontalVertical) { }
248 4 8 if (not $adaptor->willSwapHorizontalVertical) { }
264 12 12 if (defined $7) { }
265 4 8 if (not $adaptor->willSwapHorizontalVertical) { }
295 159 48 if (defined $4) { }
32 16 elsif ($adaptor->willSwapHorizontalVertical) { }
338 22 44 unless $adaptor->willReverseGlobalDirection
456 185 57 if defined $_
458 0 62 unless $adaptor
461 4 58 if (scalar @part == 0)
464 8 50 if (scalar @part == 1)
467 16 42 if (scalar @part == 2)
470 23 35 if (scalar @part == 3)
476 18 40 if ($part[3] eq $part[1])
478 16 2 if ($part[2] eq $part[0])
480 8 8 if ($part[1] eq $part[0])
496 4 25 if ($second_group eq '') { }
16 9 elsif ($adaptor->willSwapHorizontalVertical) { }
558 0 1 if ($$self{'ignore_bad_bgp'}) { }
608 0 2 unless ($m[2] =~ /^$CSS::Yamaantaka::ZERO_LENGTH/)
629 9 12 if ($pos[3] =~ /^($CSS::Yamaantaka::NUM)\%$/) { }
11 1 elsif ($pos[3] =~ /^$CSS::Yamaantaka::ZERO_LENGTH/) { }
0 1 elsif ($pos[3] =~ /auto|inherit/) { }
636 15 6 if ($pos[0] =~ /^($CSS::Yamaantaka::NUM)\%$/) { }
4 2 elsif ($pos[0] =~ /^$CSS::Yamaantaka::ZERO_LENGTH/) { }
2 0 elsif ($pos[0] =~ /auto|inherit/) { }
646 1 20 unless (defined $pos[0] and defined $pos[3])
670 0 0 unless (shift())->{'body_direction'}
685 0 0 unless (shift())->{'text_orientation'}
722 0 618 unless defined $line
723 0 618 unless $$self{'adaptor'}
732 0 618 if (defined $opts{'swap_left_right_in_url'})
736 618 0 unless (defined $swap_ltr_rtl_in_url)
739 618 0 unless (defined $flip_url)
742 618 0 unless (defined $flip_cursor)
745 618 0 unless (defined $flip_bg)
787 472 146 unless ($$self{'adaptor'}->willReverseLineRelativeDirection)
804 66 552 if ($flip_url)
808 66 552 if ($swap_ltr_rtl_in_url)
823 618 0 if ($flip_cursor)
838 618 0 if ($flip_bg)
879 0 0 unless (shift())->{'writing_mode'}