Branch Coverage

blib/lib/CGI/Application/Plugin/LinkIntegrity.pm
Criterion Covered Total %
branch 34 42 80.9


line true false branch
332 0 66 if (ref $_[0] eq 'HASH') { }
346 12 54 unless ($run_modes{$$config{'link_tampered_run_mode'}})
358 140 66 if ($$self{'__PACKAGE__'}{'__CONFIG'})
363 66 0 if ($args)
366 0 93 unless (exists $$config{$key})
372 1 65 if (exists $$args{'checksum_generator'})
373 0 1 unless (ref $$args{'checksum_generator'} eq 'CODE')
380 0 66 unless $$config{'secret'}
416 1 17 if ref $additional_data eq 'CODE'
436 1 64 if ($$config{'checksum_generator'}) { }
442 0 63 if ($@)
500 1 1 if @_
546 1 3 if ($path_info)
552 1 0 unless $path_info[0]
557 3 1 if @_
565 0 57 unless ($$self{'__PACKAGE__'}{'__CONFIG'})
572 5 52 if $$config{'disable'}
579 4 48 unless $self->query->url_param
586 4 44 if (@param == 1 and $param[0] eq 'keywords')
588 1 3 if not defined $keywords or $keywords eq ''
602 25 22 if (($uri_checksum || '') ne ($expected_checksum || ''))