Condition Coverage

blib/lib/MToken/Config.pm
Criterion Covered Total %
condition 0 28 0.0


and 3 conditions

line !l l&&!r l&&r condition
220 0 0 0 $file and -f $file
232 0 0 0 $gconf and $gconf->can("getall")
246 0 0 0 $config and ref $config eq "HASH"

or 2 conditions

line l !l condition
136 0 0 $args{'name'} || 'noname'
139 0 0 $name ||= "noname"

or 3 conditions

line l !l&&r !l&&!r condition
127 0 0 0 $args{'file'} || $args{'config_file'} || $args{'device_file'} || 'File::Spec'->catfile(cwd(), '.mtoken', 'mtoken.conf')
131 0 0 0 $dev{'token'} || $dev{'token_name'} || $dev{'name'}
136 0 0 0 $name ||= $args{'name'} || 'noname'
146 0 0 0 $dev{$k} //= $v
165 0 0 0 not $self->{'name'} or $self->{'name'} eq "noname"