Branch Coverage

blib/lib/CGI/Application/Plugin/Config/General.pm
Criterion Covered Total %
branch 54 64 84.3


line true false branch
400 75 26 if (defined $conf_name) { }
402 27 48 unless (exists $$self{$CGIAPP_Namespace}{'__NAMED_CONFIGS'}{$conf_name})
404 27 0 if ($self->can('add_callback'))
413 11 15 unless (exists $$self{$CGIAPP_Namespace}{'__DEFAULT_CONFIG'})
415 11 0 if ($self->can('add_callback'))
530 0 36 unless my $config_file = delete $args{'-ConfigFile'}
532 14 22 exists $args{'-CacheConfigFiles'} ? :
533 8 28 exists $args{'-StatConfig'} ? :
534 3 33 exists $args{'-Options'} ? :
535 1 35 exists $args{'-SiteVar'} ? :
536 2 34 exists $args{'-SiteSectionName'} ? :
537 0 36 exists $args{'-NestingDepth'} ? :
539 0 36 if (keys %args)
548 22 14 if ($cache_config_files)
549 8 14 if ($self->_cgm_cache_check_valid($config_file, $stat_config))
558 28 8 unless ($cg_obj)
562 27 1 unless ($$options{'-MatchSections'})
577 14 13 if ($cache_config_files)
648 14 0 if ($cg_obj->can('files'))
692 10 12 unless exists $CGM_Cache{$abs_path}
693 0 12 unless ref $CGM_Cache{$abs_path}{'__FILES'} eq 'ARRAY'
701 8 5 if $$fileinfo{'__MTIME'} + $stat_config >= $time
706 3 2 if $size != $$fileinfo{'__SIZE'}
707 1 1 if $mtime != $$fileinfo{'__MTIME'}
725 0 35 if ($ENV{'MOD_PERL'})
729 35 0 unless ($value)
755 2 24 if wantarray
775 13 1 if (@_) { }
833 25 10 if (defined $name) { }
853 1 3 if (defined $name) { }
854 1 0 if (exists $Current_Config{$name}) { }
865 1 3 if wantarray