Branch Coverage

blib/lib/WWW/Shopify/Liquid/Tag/If.pm
Criterion Covered Total %
branch 26 32 81.2


line true false branch
31 0 190 unless $token
33 62 128 if (int @tokens > 0)
34 0 62 if $tokens[0][0]->tag eq 'else' and int @tokens > 1
35 12 50 if ($tokens[0][0]->tag eq 'elsif') { }
48 0 412 if $renderer->state and $renderer->state->value($self)
52 76 336 !$self->inversion && $arguments->[0] || $self->inversion && !$arguments->[0] ? :
53 88 324 $path && !$self->is_processed($path) ? :
55 4 408 if (my $exp = $@)
56 0 4 if &blessed($exp) and $exp->isa('WWW::Shopify::Liquid::Exception::Control::Pause')
59 85 323 defined $result ? :
66 43 0 unless $self->is_processed($self->{'arguments'}[0])
67 24 19 if ($self->is_processed($self->{'arguments'}[0]))
68 10 14 !$self->inversion && $self->{'arguments'}[0] || $self->inversion && !$self->{'arguments'}[0] ? :
69 14 10 $self->is_processed($path) ? :
71 1 18 unless ($self->is_processed($self->{'false_path'}))
76 19 0 unless ($self->is_processed($self->{'true_path'}))