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
409 1 0 1 $opts->{'sharepoint_client_secret'} and $opts->{'sharepoint_client_secret'} =~ /^(\S){43}\=/
412 1 0 1 $opts->{'sharepoint_access_url'} and $opts->{'sharepoint_access_url'} =~ m[^https://]
417 1 0 1 $opts->{'sharepoint_site'} and $opts->{'sharepoint_site'} =~ m[^sites/.+]
525 0 0 0 time > $self->{'token'}{'ts'} - 1200 and not $self->update_token
557 1 0 38 $opts and $opts->{'pattern'} || $opts->{'type'}
569 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
271 0 1 shift() || 0
335 7 1 shift() || {}
345 4 4 $self->{'config'} ||= {}
378 121 0 $self->{'config'}{$opt} || 'undef'
438 3 0 shift() || 'info'
440 2 1 $self->{'log'} ||= []
558 18 20 $opts->{'folder'} || ''
560 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
191 1 1 2 $ENV{'NET_SHAREPOINT_VERBOSE'} or $ENV{'NET_SHAREPOINT_DEBUG'}
354 4 4 0 $self->{'config'}{'token_file'} ||= $DEFAULT_SHAREPOINT_TOKEN_FILE
355 1 7 0 $self->{'config'}{'max_log_size'} ||= $MAX_LOG_SIZE
356 1 7 0 $self->{'config'}{'chunk_size'} ||= $DEFAULT_CHUNK_SIZE
357 0 8 0 $self->{'config'}{'retries'} ||= $DEFAULT_RETRIES
358 0 0 8 $ENV{'NET_SHAREPOINT_DEBUG'} ||= $opts->{'debug'}
359 0 0 8 $ENV{'NET_SHAREPOINT_VERBOSE'} ||= $opts->{'verbose'}
483 0 0 0 $self->{'ua'} ||= "LWP::UserAgent"->new
484 0 0 0 $self->{'token'}{'payload'} ||= $self->create_payload
557 0 38 0 $opts->{'pattern'} || $opts->{'type'}
586 36 0 0 $object // ()
620 0 0 0 $self->{'ua'} ||= "LWP::UserAgent"->new
621 0 0 0 $opts->{'retries'} ||= $DEFAULT_RETRIES
623 0 0 0 $opts->{'action'} eq 'download' || $opts->{'action'} eq 'list'
631 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'}