Branch Coverage

lib/AnyEvent/SMTP/Conn.pm
Criterion Covered Total %
branch 31 60 51.6


line true false branch
25 0 0 if $$self{'h'}
32 45 0 if $$self{'h'}
37 41 47 if $$self{'timeout'}
44 42 0 if $$self{'h'}
54 0 205 unless defined $args{'ok'}
55 0 205 unless $args{'cb'}
56 0 205 unless $$self{'h'}
59 0 205 if $$self{'debug'}
62 0 205 if $$self{'debug'} and $$self{'debug'} > 1
68 205 0 if substr($_, -1, 1) eq "\r"
70 0 205 if $$self{'debug'}
72 205 0 if (substr($line, 0, length($args{'ok'}) + 1) eq $args{'ok'} . ' ') { }
83 0 41 unless defined $args{'ok'}
84 0 41 unless $args{'cb'}
85 0 41 if $$self{'debug'} and $$self{'debug'} > 1
91 41 0 if substr($_, -1, 1) eq "\r"
93 0 41 if $$self{'debug'}
95 41 0 if (substr($line, 0, length($args{'ok'}) + 1) eq $args{'ok'} . ' ') { }
106 0 211 unless $$self{'h'}
112 164 0 if substr($_, -1, 1) eq "\r"
114 0 164 if $$self{'debug'}
116 164 0 if $$self{'h'}
122 0 164 unless $$self{'h'}
123 82 82 unless @_
125 0 164 if $$self{'debug'}
130 0 129 unless $$self{'h'}
132 0 129 if $$self{'debug'}
138 0 41 unless $args{'cb'}
139 0 41 unless $$self{'h'}
140 0 41 if $$self{'debug'}