Branch Coverage

blib/lib/Dancer/Plugin/Piwik.pm
Criterion Covered Total %
branch 25 32 78.1


line true false branch
127 1 6 unless ($category)
143 0 5 unless ($search and ref $search eq 'HASH' and $search->{'query'})
148 5 0 defined $search->{'matches'} ? :
156 0 5 unless ($product)
172 0 5 unless ($cart and defined $subtotal)
222 0 8 unless ($cart and $order)
228 2 14 unless defined $order->{$i}
230 1 7 if (@missing)
239 12 16 if (defined $order->{$i}) { }
262 10 26 unless ($piwik_url and defined $piwik_id)
263 5 5 $ajax ? :
265 7 19 if (my $session_key = plugin_setting()->{'username_session_key'})
266 7 0 if (my $username = session($session_key))
270 34 0 if ref $_ eq 'ARRAY'
21 5 unless (scalar grep({$_->[0] eq 'trackSiteSearch' if ref $_ eq 'ARRAY';} @args))
274 2 24 if ($ajax)