blib/lib/Chemistry/OpenSMILES/Writer.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 25 | 27 | 92.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
121 | 124 | 8 | 16 | scalar @{$atom->{'chirality_neighbours'};} == 3 and $_ != 0 |
263 | 333 | 10 | 2 | &is_aromatic($u) && &is_aromatic($v) |
267 | 26 | 17 | 91 | $bond ne "/" and $bond ne "\\" |
280 | 1 | 2 | 244 | defined $_ && /^[0-3]$/ |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
99 | 0 | 1 | 39 | scalar @neighbours < 3 or scalar @neighbours > 4 |
226 | 415 | 73 | 92 | $atom =~ /^[bcnosp]$/i || $atom =~ /^(F|Cl|Br|I|\*)$/ |
279 | 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" | |
287 | 27 | 23 | 59 | $_[2] == 0 or $_[3] == 0 |