Condition Coverage

blib/lib/Chemistry/OpenSMILES/Writer.pm
Criterion Covered Total %
condition 25 27 92.5


and 3 conditions

line !l l&&!r l&&r condition
123 124 8 16 scalar @{$atom->{'chirality_neighbours'};} == 3 and $_ != 0
266 333 10 2 &is_aromatic($u) && &is_aromatic($v)
270 26 17 91 $bond ne "/" and $bond ne "\\"
283 1 2 244 defined $_ && /^[0-3]$/

or 3 conditions

line l !l&&r !l&&!r condition
101 0 1 39 scalar @neighbours < 3 or scalar @neighbours > 4
229 415 73 92 $atom =~ /^[bcnosp]$/i || $atom =~ /^(F|Cl|Br|I|\*)$/
282 2 3 59 scalar @_ != 4 or &any(sub { not defined $_ && /^[0-3]$/; } , @_)
5 0 59 scalar @_ != 4 or &any(sub { not defined $_ && /^[0-3]$/; } , @_) or join(",", sort(@_)) ne "0,1,2,3"
290 27 23 59 $_[2] == 0 or $_[3] == 0