Condition Coverage

blib/lib/Net/SharePoint/Basic.pm
Criterion Covered Total %
condition 37 121 30.5


and 3 conditions

line !l l&&!r l&&r condition
406 1 0 1 $opts->{'sharepoint_client_secret'} and $opts->{'sharepoint_client_secret'} =~ /^(\S){43}\=/
409 1 0 1 $opts->{'sharepoint_access_url'} and $opts->{'sharepoint_access_url'} =~ m[^https://]
414 1 0 1 $opts->{'sharepoint_site'} and $opts->{'sharepoint_site'} =~ m[^sites/.+]
522 0 0 0 time > $self->{'token'}{'ts'} - 1200 and not $self->update_token
554 1 0 38 $opts and $opts->{'pattern'} || $opts->{'type'}
566 1 0 20 $opts->{'subtype'} and $PATTERNS{$opts->{'type'}}{$opts->{'subtype'}}
749 0 0 0 not $object and $opts->{'type'} ne 'file'

or 2 conditions

line l !l condition
268 0 1 shift() || 0
332 7 1 shift() || {}
342 4 4 $self->{'config'} ||= {}
375 121 0 $self->{'config'}{$opt} || 'undef'
435 3 0 shift() || 'info'
437 2 1 $self->{'log'} ||= []
555 18 20 $opts->{'folder'} || ''
557 18 20 $opts->{'object'} || ''
748 0 0 $opts->{'type'} ||= ''
788 0 0 $self->try({'action', 'upload', 'retries', $opts->{'retries'} || $self->{'config'}{'retries'}}, $upload_url, (%DEFAULT_SHAREPOINT_POST_PARAMS, 'Content_Length', length $item, 'Content', ref $item ? $$item : $item)) || 0
816 0 0 shift() || ''

or 3 conditions

line l !l&&r !l&&!r condition
188 1 1 2 $ENV{'NET_SHAREPOINT_VERBOSE'} or $ENV{'NET_SHAREPOINT_DEBUG'}
351 4 4 0 $self->{'config'}{'token_file'} ||= $DEFAULT_SHAREPOINT_TOKEN_FILE
352 1 7 0 $self->{'config'}{'max_log_size'} ||= $MAX_LOG_SIZE
353 1 7 0 $self->{'config'}{'chunk_size'} ||= $DEFAULT_CHUNK_SIZE
354 0 8 0 $self->{'config'}{'retries'} ||= $DEFAULT_RETRIES
355 0 0 8 $ENV{'NET_SHAREPOINT_DEBUG'} ||= $opts->{'debug'}
356 0 0 8 $ENV{'NET_SHAREPOINT_VERBOSE'} ||= $opts->{'verbose'}
480 0 0 0 $self->{'ua'} ||= 'LWP::UserAgent'->new
481 0 0 0 $self->{'token'}{'payload'} ||= $self->create_payload
554 0 38 0 $opts->{'pattern'} || $opts->{'type'}
583 36 0 0 $object // ()
617 0 0 0 $self->{'ua'} ||= 'LWP::UserAgent'->new
618 0 0 0 $opts->{'retries'} ||= $DEFAULT_RETRIES
620 0 0 0 $opts->{'action'} eq 'download' || $opts->{'action'} eq 'list'
628 0 0 0 $http_opts{'Authorization'} ||= $DEFAULT_SHAREPOINT_POST_PARAMS{'Authorization'}
689 0 0 0 shift() || $self->{'config'}{'chunk_size'} || $DEFAULT_CHUNK_SIZE
714 0 0 0 $opts->{'retries'} || $self->{'config'}{'retries'}
753 0 0 0 $object ||= basename($item)
772 0 0 0 $opts->{'retries'} || $self->{'config'}{'retries'}
830 0 0 0 $opts->{'retries'} || $self->{'config'}{'retries'}
856 0 0 0 shift() || $opts->{'path'}
870 0 0 0 $opts->{'retries'} || $self->{'config'}{'retries'}
905 0 0 0 $opts->{'retries'} || $self->{'config'}{'retries'}
936 0 0 0 $opts->{'retries'} || $self->{'config'}{'retries'}
969 0 0 0 $opts->{'retries'} || $self->{'config'}{'retries'}
1002 0 0 0 $opts->{'retries'} || $self->{'config'}{'retries'}