Branch Coverage

blib/lib/CGI/Application/Plugin/FormState.pm
Criterion Covered Total %
branch 33 36 91.6


line true false branch
26 15 0 if ($caller->can('add_callback')) { }
263 9 100 unless (exists $$self{$CGIAPP_Namespace}{'__DEFAULT_CONFIG'})
320 7 6 if exists $args{'name'}
321 2 11 if exists $args{'expires'}
323 2 11 if (keys %args)
358 2 9 if ($storage_hash)
361 2 0 if (ref $webapp->session->param($storage_key) eq 'HASH')
366 9 2 unless ($already_exists)
385 2 9 if $already_exists
415 2 63 unless ($$self{'__CONFIGURED'})
423 45 20 if (@_) { }
425 4 41 if (ref $_[0] eq 'HASH') { }
27 14 elsif (@_ == 1) { }
458 0 4 unless ($$self{'__CONFIGURED'})
482 1 1 if ($$self{'__STORAGE_KEY'})
500 1 13 unless ($$self{'__CONFIGURED'})
518 1 8 unless ($$self{'__CONFIGURED'})
545 1 4 unless ($$self{'__CONFIGURED'})