Branch Coverage

blib/lib/Google/Tasks.pm
Criterion Covered Total %
branch 1 64 1.5


line true false branch
38 0 1 if $self->user and $self->passwd
44 0 0 if $user
45 0 0 if $passwd
47 0 0 unless $self->user and $self->passwd
59 0 0 if $res->content =~ /Sign in/ </td> </tr> <a name=""> </a> <tr> <td class="h"> <a href="blib-lib-Google-Tasks-pm.html#63">63</a> </td> <td class="c0"> 0 </td> <td class="c0"> 0 </td> <td class="s"> $res->content =~ /\{_setup\((.*)\)\}/ ? : </td> </tr> <a name=""> </a> <tr> <td class="h"> <a href="blib-lib-Google-Tasks-pm.html#101">101</a> </td> <td class="c0"> 0 </td> <td class="c0"> 0 </td> <td class="s"> unless $self->is_authed </td> </tr> <a name=""> </a> <tr> <td class="h"> <a href="blib-lib-Google-Tasks-pm.html#126">126</a> </td> <td class="c0"> 0 </td> <td class="c0"> 0 </td> <td class="s"> if ($list_name) </td> </tr> <a name=""> </a> <tr> <td class="h"> <a href="blib-lib-Google-Tasks-pm.html#129">129</a> </td> <td class="c0"> 0 </td> <td class="c0"> 0 </td> <td class="s"> unless ref $list eq 'Google::Tasks::List' and $list->id </td> </tr> <a name=""> </a> <tr> <td class="h"> <a href="blib-lib-Google-Tasks-pm.html#133">133</a> </td> <td class="c0"> 0 </td> <td class="c0"> 0 </td> <td class="s"> $show_deleted ? : </td> </tr> <a name=""> </a> <tr> <td class="h"> <a href="blib-lib-Google-Tasks-pm.html#138">138</a> </td> <td class="c0"> 0 </td> <td class="c0"> 0 </td> <td class="s"> if ref $list eq 'Google::Tasks::List' and $list->id </td> </tr> <a name=""> </a> <tr> <td class="h"> <a href="blib-lib-Google-Tasks-pm.html#153">153</a> </td> <td class="c0"> 0 </td> <td class="c0"> 0 </td> <td class="s"> if (not $self->id) { } </td> </tr> <a name=""> </a> <tr> <td class="h"> <a href="blib-lib-Google-Tasks-pm.html#192">192</a> </td> <td class="c0"> 0 </td> <td class="c0"> 0 </td> <td class="s"> if $self->root->active_list->id eq $self->id </td> </tr> <a name=""> </a> <tr> <td class="h"> <a href="blib-lib-Google-Tasks-pm.html#219">219</a> </td> <td class="c0"> 0 </td> <td class="c0"> 0 </td> <td class="s"> unless ref $list eq 'Google::Tasks::List' and $list->id </td> </tr> <a name=""> </a> <tr> <td class="h"> <a href="blib-lib-Google-Tasks-pm.html#229">229</a> </td> <td class="c0"> 0 </td> <td class="c0"> 0 </td> <td class="s"> unless ref $list eq 'Google::Tasks::List' and $list->id </td> </tr> <a name=""> </a> <tr> <td class="h"> <a href="blib-lib-Google-Tasks-pm.html#239">239</a> </td> <td class="c0"> 0 </td> <td class="c0"> 0 </td> <td class="s"> unless ref $list eq 'Google::Tasks::List' and $list->id </td> </tr> <a name=""> </a> <tr> <td class="h"> <a href="blib-lib-Google-Tasks-pm.html#268">268</a> </td> <td class="c0"> 0 </td> <td class="c0"> 0 </td> <td class="s"> if ($self->list_id) { } </td> </tr> <a name=""> </a> <tr> <td class="h"> <a href="blib-lib-Google-Tasks-pm.html#"></a> </td> <td class="c0"> 0 </td> <td class="c0"> 0 </td> <td class="s"> elsif ($self->list) { } </td> </tr> <a name=""> </a> <tr> <td class="h"> <a href="blib-lib-Google-Tasks-pm.html#270">270</a> </td> <td class="c0"> 0 </td> <td class="c0"> 0 </td> <td class="s"> unless $list </td> </tr> <a name=""> </a> <tr> <td class="h"> <a href="blib-lib-Google-Tasks-pm.html#276">276</a> </td> <td class="c0"> 0 </td> <td class="c0"> 0 </td> <td class="s"> if ref $self->list ne 'Google::Tasks::List' </td> </tr> <a name=""> </a> <tr> <td class="h"> <a href="blib-lib-Google-Tasks-pm.html#291">291</a> </td> <td class="c0"> 0 </td> <td class="c0"> 0 </td> <td class="s"> if defined $self->task_date </td> </tr> <a name=""> </a> <tr> <td class="h"> <a href="blib-lib-Google-Tasks-pm.html#293">293</a> </td> <td class="c0"> 0 </td> <td class="c0"> 0 </td> <td class="s"> if (not $self->id) { } </td> </tr> <a name=""> </a> <tr> <td class="h"> <a href="blib-lib-Google-Tasks-pm.html#295">295</a> </td> <td class="c0"> 0 </td> <td class="c0"> 0 </td> <td class="s"> if $self->index </td> </tr> <a name=""> </a> <tr> <td class="h"> <a href="blib-lib-Google-Tasks-pm.html#327">327</a> </td> <td class="c0"> 0 </td> <td class="c0"> 0 </td> <td class="s"> unless defined $command </td> </tr> <a name=""> </a> <tr> <td class="h"> <a href="blib-lib-Google-Tasks-pm.html#329">329</a> </td> <td class="c0"> 0 </td> <td class="c0"> 0 </td> <td class="s"> if ($command =~ /^\d+$/) { } </td> </tr> <a name=""> </a> <tr> <td class="h"> <a href="blib-lib-Google-Tasks-pm.html#"></a> </td> <td class="c0"> 0 </td> <td class="c0"> 0 </td> <td class="s"> elsif ($command eq 'down') { } </td> </tr> <a name=""> </a> <tr> <td class="h"> <a href="blib-lib-Google-Tasks-pm.html#"></a> </td> <td class="c0"> 0 </td> <td class="c0"> 0 </td> <td class="s"> elsif ($command eq 'up') { } </td> </tr> <a name=""> </a> <tr> <td class="h"> <a href="blib-lib-Google-Tasks-pm.html#"></a> </td> <td class="c0"> 0 </td> <td class="c0"> 0 </td> <td class="s"> elsif (ref $command eq 'Google::Tasks::Task' or ref $command eq 'Google::Tasks::List') { } </td> </tr> <a name=""> </a> <tr> <td class="h"> <a href="blib-lib-Google-Tasks-pm.html#330">330</a> </td> <td class="c0"> 0 </td> <td class="c0"> 0 </td> <td class="s"> if $command and not defined $self->root->tasks->[$command] </td> </tr> <a name=""> </a> <tr> <td class="h"> <a href="blib-lib-Google-Tasks-pm.html#333">333</a> </td> <td class="c0"> 0 </td> <td class="c0"> 0 </td> <td class="s"> $command ? : </td> </tr> <a name=""> </a> <tr> <td class="h"> <a href="blib-lib-Google-Tasks-pm.html#355">355</a> </td> <td class="c0"> 0 </td> <td class="c0"> 0 </td> <td class="s"> if $idx < 0 </td> </tr> <a name=""> </a> <tr> <td class="h"> <a href="blib-lib-Google-Tasks-pm.html#408">408</a> </td> <td class="c0"> 0 </td> <td class="c0"> 0 </td> <td class="s"> unless ref $task eq 'Google::Tasks::Task' </td> </tr> </table> </body> </html>