Branch Coverage

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


line true false branch
47 0 0 unless $self->has_prompt($name)
55 0 0 unless defined $name and length $name
68 0 0 unless $self->has_macro($name)
76 0 0 unless defined $name and length $name
87 0 0 unless $a->{'type'} eq "match"
88 0 0 unless ref $a->{'value'} eq ref []
92 0 0 if ($v =~ m[^/] and $v =~ m[/$]) { }
111 0 0 unless ref $data eq ref {} and keys %$data
137 0 0 if /^(?:#|\s*$)/
139 0 0 if (/^(prompt|macro)\s+(\w+)\s*$/) { }
0 0 elsif (/^\w/) { }
140 0 0 if (scalar keys %$data)
153 0 0 if (/^\s+send\s+(.+)$/)
162 0 0 if (/^\s+put\s+(.+)$/)
171 0 0 if (/^\s+match\s+(.+)\s*$/)
173 0 0 if (scalar @vals)
180 0 0 if (m[^\s+follow\s+/(.+)/\s+with\s+(.+)\s*$])
209 0 0 ref $self->library ? :
210 0 0 ref $self->add_library ? :
216 0 0 unless $target
220 0 0 unless scalar @files
232 0 0 unless $_[0]->is_dir
233 0 0 if $_[0]->dir_list(-1) eq $self->personality
236 0 0 if defined $target
245 0 0 unless $target->isa("Path::Class::Dir") and $target->is_relative
253 0 0 unless -d $root->stringify