Branch Coverage

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


line true false branch
190 2 9 if ($self->_has_class_names) { }
220 150 18 unless $self->$pred
225 3 9 if ($self->_has_class_names)
229 1 11 if ($args{'methods'})
235 1 11 if ($args{'exclude_methods'})
261 1 11 if (-d $path)
265 5 6 if ($path =~ /\.pm$/)
267 5 1 if ($path =~ s/^.*\Q$dir\E//)
291 1 2 unless /\.pm$/
309 11 1 unless $self->_has_timing_data_file
312 0 1 unless open my $fh, '>', $file
313 0 1 unless print {$fh;} &encode_json({'process_name', $0, 'start_time', $self->_start_time, 'timing', $self->_runner->test_report->timing_data})
319 0 1 unless close $fh