Branch Coverage

blib/lib/MediaWiki/Bot/Plugin/Steward.pm
Criterion Covered Total %
branch 0 80 0.0


line true false branch
29 0 0 if (-r $cookies) { }
39 0 0 if ($check_login->decoded_content =~ /wgUserName="\Q$$self{'username'}\E"/) { }
50 0 0 ref $_[0] eq 'HASH' ? :
51 0 0 exists $_[0]{'ao'} ? :
54 0 0 exists $_[0]{'clobber'} ? :
57 0 0 if ($ip =~ /-/) { }
0 0 elsif ($ip =~ m[/\d\d$]) { }
65 0 0 unless ($ip =~ m[/\d\d$] or cidrvalidate($ip))
66 0 0 if $$self{'debug'}
76 0 0 if ($res->decoded_content =~ /class="error"/)
77 0 0 if ($clobber and $res->decoded_content =~ /already blocked globally/) { }
85 0 0 if $$self{'debug'}
96 0 0 ref $_[0] eq 'HASH' ? :
100 0 0 if ($ip =~ /-/) { }
0 0 elsif ($ip =~ m[/\d\d$]) { }
108 0 0 unless ($ip =~ m[/\d\d$] or cidrvalidate($ip))
109 0 0 if $$self{'debug'}
112 0 0 if ($start)
119 0 0 unless ($ip)
120 0 0 if $$self{'debug'}
131 0 0 if ($res->decoded_content =~ /class="error"/)
133 0 0 if $$self{'debug'}
143 0 0 ref $_[0] eq 'HASH' ? :
146 0 0 defined $_[0]{'lock'} ? :
148 0 0 if ($hide == 0) { }
0 0 elsif ($hide == 1) { }
0 0 elsif ($hide == 2) { }
161 0 0 if ($res->decoded_content =~ /class="error"/)
163 0 0 if $$self{'debug'}
174 0 0 if ($res->decoded_content =~ /class="error"/)
176 0 0 if $$self{'debug'}
186 0 0 ref $_[0] eq 'HASH' ? :
189 0 0 defined $_[0]{'lock'} ? :
213 0 0 unless ref $res eq 'HTTP::Response' and $res->is_success
229 0 0 unless $no_escape
232 0 0 if $extra
233 0 0 if $$self{'debug'}
236 0 0 unless ref $res eq 'HTTP::Response' and $res->is_success
238 0 0 if ($res->decoded_content =~ /class="error"/)
240 0 0 if $$self{'debug'}