Branch Coverage

lib/App/wsgetmail/MS365.pm
Criterion Covered Total %
branch 19 104 18.2


line true false branch
399 2 1 unless ($message_details)
400 2 0 if ($self->_have_messages_to_fetch)
405 3 0 if (defined $message_details)
419 0 0 $self->global_access ? :
422 0 0 unless ($response->is_success)
423 0 0 if ($self->_check_matrix("get_message_mime_content", $response->code) eq "ignore")
428 0 0 if $self->debug
432 0 0 if ($self->size_limit > 0 and length $response->content > $self->size_limit)
433 0 0 if $self->debug
438 0 0 if ($self->body_size_limit > 0 and length $response->content > $self->body_size_limit)
444 0 0 if ($@)
451 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) { }
453 0 0 if (($_->mime_type // '') =~ m[^multipart/alternative$]i) { }
455 0 0 unless ($part->mime_type // "") =~ m[^text/(?:plain|html)$]i
456 0 0 if ($part->head->get("Content-Disposition") // "") =~ /attachment/i
457 0 0 if (length $part->stringify_body > $self->body_size_limit)
471 0 0 if ($exceeded_size)
472 0 0 if $self->debug
484 0 0 if $self->stripcr
497 0 0 $self->global_access ? :
499 0 0 unless ($response->is_success)
500 0 0 if ($self->_check_matrix('delete_message', $response->code) eq 'ignore') { }
505 0 0 if $self->debug
520 0 0 $self->global_access ? :
524 0 0 unless ($response->is_success)
525 0 0 if ($self->_check_matrix('mark_message_as_read', $response->code) eq 'ignore') { }
530 0 0 if $self->debug
547 0 2 $self->global_access ? :
551 0 2 unless ($response->is_success)
552 0 0 if ($self->_check_matrix("get_folder_details", $response->code) eq "ignore")
557 0 0 if $self->debug
576 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}) { }
598 0 2 if ($self->_next_fetch_url) { }
600 0 0 unless ($response->is_success)
601 0 0 if ($self->_check_matrix("_fetch_messages", $response->code) ne "ignore")
603 0 0 if $self->debug
616 0 2 if ($decoded_response->{'@odata.nextLink'}) { }
630 0 2 unless ($folder)
635 0 2 unless ($folder->{'totalItemCount'} > 0)
641 0 2 $self->global_access ? :
644 2 0 $fields ? :
2 0 $filter ? :
653 0 2 unless ($response->is_success)
654 0 0 if ($self->_check_matrix("_get_message_list", $response->code) ne "ignore")
656 0 0 if $self->debug
668 2 0 if ($self->post_fetch_action and $self->post_fetch_action eq "mark_message_as_read")
678 1 1 defined $self->resource_url ? :
1 1 defined $self->login_base_url ? :