Branch Coverage

lib/HTTP/Router/Declare.pm
Criterion Covered Total %
branch 43 46 93.4


line true false branch
49 9 0 if ($block)
71 15 2 if exists $args{'path'}
72 3 14 if exists $args{'conditions'}
73 14 3 if exists $args{'params'}
75 4 13 defined $block ? :
81 3 13 ref $_[-1] eq 'CODE' ? :
83 15 1 unless ref $_[0]
84 3 13 if ref $_[0] eq 'HASH'
92 1 0 ref $_[-1] eq 'CODE' ? :
136 6 78 unless ref $config
138 78 6 exists $$config{'action'} ? :
139 78 6 exists $$config{'suffix'} ? :
166 10 4 unless $$args{'only'}
167 12 2 unless $$args{'except'}
173 14 14 exists $$args{'singleton'} ? :
175 8 20 if (exists $$args{'only'}) { }
4 16 elsif (exists $$args{'except'}) { }
189 6 22 if defined $extra
195 0 14 exists $$args{'path_prefix'} ? :
197 7 7 exists $$args{'singleton'} ? :
204 2 12 if (defined $block)
213 1 6 ref $_[-1] eq 'CODE' ? :
224 1 6 ref $_[-1] eq 'CODE' ? :