Branch Coverage

blib/lib/Net/CLI/Interact/Phrasebook.pm
Criterion Covered Total %
branch 0 52 0.0


line true false branch
46 0 0 unless $self->has_prompt($name)
54 0 0 unless defined $name and length $name
67 0 0 unless $self->has_macro($name)
75 0 0 unless defined $name and length $name
86 0 0 unless $a->{'type'} eq "match"
87 0 0 unless ref $a->{'value'} eq ref []
91 0 0 if ($v =~ m[^/] and $v =~ m[/$]) { }
110 0 0 unless ref $data eq ref {} and keys %$data
136 0 0 if /^(?:#|\s*$)/
138 0 0 if (/^(prompt|macro)\s+(\w+)\s*$/) { }
0 0 elsif (/^\w/) { }
139 0 0 if (scalar keys %$data)
152 0 0 if (/^\s+send\s+(.+)$/)
161 0 0 if (/^\s+put\s+(.+)$/)
170 0 0 if (/^\s+match\s+(.+)\s*$/)
172 0 0 if (scalar @vals)
179 0 0 if (m[^\s+follow\s+/(.+)/\s+with\s+(.+)\s*$])
210 0 0 ref $self->library ? :
211 0 0 ref $self->add_library ? :
217 0 0 unless $target
221 0 0 unless scalar @files
233 0 0 unless $_[0]->is_dir
234 0 0 if $_[0]->dir_list(-1) eq $self->personality
237 0 0 if defined $target
246 0 0 unless $target->isa("Path::Class::Dir") and $target->is_relative
254 0 0 unless -d $root->stringify