Branch Coverage

blib/lib/Nagios/Scrape.pm
Criterion Covered Total %
branch 12 18 66.6


line true false branch
49 1 5 unless defined $attrs{'username'}
50 1 4 unless defined $attrs{'password'}
51 1 3 unless defined $attrs{'url'}
53 2 1 unless $attrs{'url'} =~ /^http/ and $attrs{'url'} =~ /status.cgi$/
81 1 2 if defined $state
103 1 2 if defined $state
123 0 0 unless ($response->is_success)
150 0 0 unless ($response->is_success)
205 0 0 if defined $1