Branch Coverage

blib/lib/Perl/Critic/Config.pm
Criterion Covered Total %
branch 92 104 88.4


line true false branch
54 55 2866 if (defined $args{'-top'} or defined $args{'-theme'})
139 81 2840 if (not defined $profile_source or $profile_source ne "NONE")
144 4 2917 if ($errors->has_exceptions)
154 9 14596 $_[0] ? :
163 1 10540 unless ($args{'-policy'})
170 7742 2798 if (&blessed($policy))
191 0 10537 unless my $config = $policy_object->__get_config
197 10441 96 if ($policy_object->initialize_if_enabled($config)) { }
216 2 79 if $errors->has_exceptions
221 580 10875 if ($self->single_policy)
222 147 433 if ($self->_policy_is_single_policy($policy))
229 1 10874 unless $policy->is_safe or $self->unsafe_allowed
232 579 10295 $self->only ? :
235 229 10645 if $self->_policy_is_disabled($policy)
236 1599 9275 if $self->_policy_is_enabled($policy)
237 2538 8336 if $self->_policy_is_unimportant($policy)
238 145 10729 unless $self->_policy_is_thematic($policy)
239 38 10836 if $self->_policy_is_included($policy)
240 36 10838 if $self->_policy_is_excluded($policy)
243 3279 7595 unless $load_me
248 2 77 if ($self->single_policy and scalar $self->policies != 1)
312 0 580 unless @patterns
336 1 1 if (scalar $self->policies == 0) { }
366 8 8755 if ($args_value)
369 4 4 if (ref $args_value) { }
377 8755 8 unless (@regexes)
381 5838 2917 if (ref $default_value) { }
1 2916 elsif ($default_value) { }
392 3 15 unless (eval {
410 8760 3 unless ($found_errors)
429 0 2921 if ($args_value) { }
441 1 2920 unless ($Perl::Critic::Config::PROFILE_STRICTNESSES{$profile_strictness})
470 0 2921 if ($args_value) { }
482 1 2920 if (is_integer($verbosity) and not is_valid_numeric_verbosity($verbosity)) { }
512 67 2854 if ($args_value) { }
524 2915 6 if (is_integer($severity)) { }
1 5 elsif (not &any(sub {
525 2914 1 if ($severity >= $Perl::Critic::Config::SEVERITY_LOWEST and $severity <= $Perl::Critic::Config::SEVERITY_HIGHEST) { }
571 2 2919 if (defined $args_value and $args_value ne '') { }
583 2920 1 if (is_integer($top) and $top >= 0) { }
609 52 2869 if ($args_value) { }
621 0 2921 if ($theme_rule =~ /$Perl::Critic::Config::RULE_INVALID_CHARACTER_REGEX/msx) { }
642 1 2920 if ($Perl::Critic::Config::EVAL_ERROR) { }
657 0 2920 unless (eval {
672 0 2921 if ($args_value) { }
0 2921 elsif ($ENV{'PERLCRITIC_PAGER'}) { }
683 0 2921 if ($pager eq "\$PAGER")
702 5 14600 if (defined $args_value) { }
718 14605 0 if (eval {
732 5 14600 if ($found_errors) { }
760 0 2921 'ARRAY' eq ref $args_value ? :
945 0 2727 if $self->{'_program_extensions_as_regexes'}