blib/lib/Weightbot/API.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 11 | 24 | 45.8 |
line | true | false | branch |
---|---|---|---|
20 | 0 | 1 | unless $$self{'email'} |
21 | 0 | 1 | unless $$self{'password'} |
44 | 1 | 0 | unless ($$self{'data'}) |
53 | 1 | 4 | if $line =~ /^date, kilograms, pounds$/ |
58 | 3 | 1 | if ($prev_date) |
59 | 0 | 3 | if ($d < $prev_date) |
98 | 0 | 1 | if ($$self{'use_cache_file'}) |
99 | 0 | 0 | defined $$self{'cache_file'} ? : |
104 | 0 | 0 | if (-e $cache_filename) |
109 | 0 | 1 | unless ($$self{'raw_data'}) |
128 | 0 | 0 | unless ($mech->content =~ /^date, kilograms, pounds\n/) |
135 | 0 | 1 | if ($$self{'use_cache_file'}) |