Branch Coverage

blib/lib/App/DuckPAN/Cmd/New.pm
Criterion Covered Total %
branch 0 52 0.0


line true false branch
71 0 0 if ($error =~ /no such file/i) { }
106 0 0 unless ($template_set)
137 0 0 if ($self->cheatsheet or $self->template eq 'cheatsheet')
138 0 0 if ($type->{'name'} ne 'Goodie')
149 0 0 if $self->list_templates
153 0 0 if ($ORIG_ARGV[$#ORIG_ARGV] // '') eq '--template'
165 0 0 @args ? :
168 0 0 unless $entered_name
169 0 0 unless $entered_name =~ m[^( [a-zA-Z0-9\s] | (?<![:/])(::|/)(?![:/]) )+$]x
173 0 0 if not $template_set->subdir_support and $entered_name =~ m[[/:]]
185 0 0 if ($package_name =~ /::/)
187 0 0 if (scalar @path_parts > 1) { }
198 0 0 $path ? :
199 0 0 $lc_path ? :
200 0 0 if (scalar $lc_path)
205 0 0 unless $self->no_optionals
217 0 0 if ($self->template eq 'cheatsheet')
224 0 0 unless ($no_handler)
236 0 0 unless @created_files
238 0 0 if (my $error = $generate_result{'error'})
242 0 0 unless $self->app->verbose
277 0 0 unless ($res =~ /^([^:]+)/)
281 0 0 &any(sub { $handler eq $_; } , 'words', 'query_parts', 'query_raw_parts', 'matches') ? :
282 0 0 $handler eq 'matches' ? :
301 0 0 unless @$combinations
308 0 0 if ($show_optional_templates)