Branch Coverage

blib/lib/Test/Class/Moose/Role/CLI.pm
Criterion Covered Total %
branch 23 26 88.4


line true false branch
193 2 9 if ($self->_has_class_names) { }
223 150 18 unless $self->$pred
228 3 9 if ($self->_has_class_names)
232 1 11 if ($args{'methods'})
238 1 11 if ($args{'exclude_methods'})
264 1 11 if (-d $path)
268 5 6 if ($path =~ /\.pm$/)
270 5 1 if ($path =~ s/^.*\Q$dir\E//)
294 1 2 unless /\.pm$/
312 11 1 unless $self->_has_timing_data_file
315 0 1 unless open my $fh, '>', $file
316 0 1 unless print {$fh;} &encode_json({'process_name', $0, 'start_time', $self->_start_time, 'timing', $self->_runner->test_report->timing_data})
322 0 1 unless close $fh