Branch Coverage

blib/lib/Catalyst/Plugin/Shorten.pm
Criterion Covered Total %
branch 36 36 100.0


line true false branch
15 1 5 if ($config->{'set'})
19 1 5 if ($config->{'offset'})
44 1 18 $args{'uri'} ? :
1 18 $args{'store'} ? :
50 1 17 $args{'uri'} ? :
18 1 $args{'as_uri'} ? :
58 2 1 unless ($args{$short})
59 1 1 unless ($args{$short} = $c->req->param($short))
71 8 2 unless $args{'params'}
73 8 1 if (my $sparams = $c->shorten_params(%args))
75 5 3 unless $args{'no_merge'}
84 10 12 unless $args{'params'}
85 20 2 if ($args{'params'}{$short})
88 4 15 if (exists $args{'cb'})
91 14 5 if $shorten
96 1 1 unless $args{'allow_missing'}
104 2 3 if (exists $args{'cb'})
107 4 1 if $shorten