Branch Coverage

lib/App/wsgetmail/MS365.pm
Criterion Covered Total %
branch 15 100 15.0


line true false branch
372 1 1 unless ($message_details)
373 1 0 if ($self->_have_messages_to_fetch)
378 2 0 if (defined $message_details)
392 0 0 $self->global_access ? :
395 0 0 unless ($response->is_success)
396 0 0 if ($self->_check_matrix("get_message_mime_content", $response->code) eq "ignore")
401 0 0 if $self->debug
405 0 0 if ($self->size_limit > 0 and length $response->content > $self->size_limit)
406 0 0 if $self->debug
411 0 0 if ($self->body_size_limit > 0 and length $response->content > $self->body_size_limit)
417 0 0 if ($@)
424 0 0 if ($entity->parts) { }
0 0 elsif (($entity->mime_type // '') =~ m[^text/(?:plain|html)$]i and length $entity->stringify_body > $self->body_size_limit) { }
426 0 0 if (($_->mime_type // '') =~ m[^multipart/alternative$]i) { }
428 0 0 unless ($part->mime_type // "") =~ m[^text/(?:plain|html)$]i
429 0 0 if ($part->head->get("Content-Disposition") // "") =~ /attachment/i
430 0 0 if (length $part->stringify_body > $self->body_size_limit)
444 0 0 if ($exceeded_size)
445 0 0 if $self->debug
457 0 0 if $self->stripcr
470 0 0 $self->global_access ? :
472 0 0 unless ($response->is_success)
473 0 0 if ($self->_check_matrix('delete_message', $response->code) eq 'ignore') { }
478 0 0 if $self->debug
493 0 0 $self->global_access ? :
497 0 0 unless ($response->is_success)
498 0 0 if ($self->_check_matrix('mark_message_as_read', $response->code) eq 'ignore') { }
503 0 0 if $self->debug
520 0 1 $self->global_access ? :
524 0 1 unless ($response->is_success)
525 0 0 if ($self->_check_matrix("get_folder_details", $response->code) eq "ignore")
530 0 0 if $self->debug
549 0 0 if (exists $matrix->{$label} and exists $matrix->{$label}{$code}) { }
0 0 elsif (exists $matrix->{'default'} and exists $matrix->{'default'}{$code}) { }
0 0 elsif (exists $matrix->{$label} and exists $matrix->{$label}{$code_category}) { }
0 0 elsif (exists $matrix->{'default'} and exists $matrix->{'default'}{$code_category}) { }
571 0 1 if ($self->_next_fetch_url) { }
573 0 0 unless ($response->is_success)
574 0 0 if ($self->_check_matrix("_fetch_messages", $response->code) ne "ignore")
576 0 0 if $self->debug
589 0 1 if ($decoded_response->{'@odata.nextLink'}) { }
603 0 1 unless ($folder)
608 0 1 unless ($folder->{'totalItemCount'} > 0)
614 0 1 $self->global_access ? :
617 1 0 $fields ? :
1 0 $filter ? :
626 0 1 unless ($response->is_success)
627 0 0 if ($self->_check_matrix("_get_message_list", $response->code) ne "ignore")
629 0 0 if $self->debug
641 1 0 if ($self->post_fetch_action and $self->post_fetch_action eq "mark_message_as_read")