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
410 1 0 1 $opts->{'sharepoint_client_secret'} and $opts->{'sharepoint_client_secret'} =~ /^(\S){43}\=/
413 1 0 1 $opts->{'sharepoint_access_url'} and $opts->{'sharepoint_access_url'} =~ m[^https://]
418 1 0 1 $opts->{'sharepoint_site'} and $opts->{'sharepoint_site'} =~ m[^sites/.+]
526 0 0 0 time > $self->{'token'}{'ts'} - 1200 and not $self->update_token
558 1 0 38 $opts and $opts->{'pattern'} || $opts->{'type'}
570 1 0 20 $opts->{'subtype'} and $PATTERNS{$opts->{'type'}}{$opts->{'subtype'}}
753 0 0 0 not $object and $opts->{'type'} ne 'file'

or 2 conditions

line l !l condition
272 0 1 shift() || 0
336 7 1 shift() || {}
346 4 4 $self->{'config'} ||= {}
379 121 0 $self->{'config'}{$opt} || 'undef'
439 3 0 shift() || 'info'
441 2 1 $self->{'log'} ||= []
559 18 20 $opts->{'folder'} || ''
561 18 20 $opts->{'object'} || ''
752 0 0 $opts->{'type'} ||= ''
792 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
820 0 0 shift() || ''

or 3 conditions

line l !l&&r !l&&!r condition
192 1 1 2 $ENV{'NET_SHAREPOINT_VERBOSE'} or $ENV{'NET_SHAREPOINT_DEBUG'}
355 4 4 0 $self->{'config'}{'token_file'} ||= $DEFAULT_SHAREPOINT_TOKEN_FILE
356 1 7 0 $self->{'config'}{'max_log_size'} ||= $MAX_LOG_SIZE
357 1 7 0 $self->{'config'}{'chunk_size'} ||= $DEFAULT_CHUNK_SIZE
358 0 8 0 $self->{'config'}{'retries'} ||= $DEFAULT_RETRIES
359 0 0 8 $ENV{'NET_SHAREPOINT_DEBUG'} ||= $opts->{'debug'}
360 0 0 8 $ENV{'NET_SHAREPOINT_VERBOSE'} ||= $opts->{'verbose'}
484 0 0 0 $self->{'ua'} ||= 'LWP::UserAgent'->new
485 0 0 0 $self->{'token'}{'payload'} ||= $self->create_payload
558 0 38 0 $opts->{'pattern'} || $opts->{'type'}
587 36 0 0 $object // ()
621 0 0 0 $self->{'ua'} ||= 'LWP::UserAgent'->new
622 0 0 0 $opts->{'retries'} ||= $DEFAULT_RETRIES
624 0 0 0 $opts->{'action'} eq 'download' || $opts->{'action'} eq 'list'
632 0 0 0 $http_opts{'Authorization'} ||= $DEFAULT_SHAREPOINT_POST_PARAMS{'Authorization'}
693 0 0 0 shift() || $self->{'config'}{'chunk_size'} || $DEFAULT_CHUNK_SIZE
718 0 0 0 $opts->{'retries'} || $self->{'config'}{'retries'}
757 0 0 0 $object ||= basename($item)
776 0 0 0 $opts->{'retries'} || $self->{'config'}{'retries'}
834 0 0 0 $opts->{'retries'} || $self->{'config'}{'retries'}
860 0 0 0 shift() || $opts->{'path'}
874 0 0 0 $opts->{'retries'} || $self->{'config'}{'retries'}
909 0 0 0 $opts->{'retries'} || $self->{'config'}{'retries'}
940 0 0 0 $opts->{'retries'} || $self->{'config'}{'retries'}
973 0 0 0 $opts->{'retries'} || $self->{'config'}{'retries'}
1006 0 0 0 $opts->{'retries'} || $self->{'config'}{'retries'}