Condition Coverage

blib/lib/WebService/Xero/Agent.pm
Criterion Covered Total %
condition 16 36 44.4


and 3 conditions

line !l l&&!r l&&r condition
123 0 0 0 $page_count >= 100 and my $data = $self->do_xero_api_call("https://api.xero.com/api.xro/2.0/Invoices?where=$ext&page=$page")
165 1 0 0 defined $self->{'TOKEN'} and $self->{'TOKEN'} ne $self->{'CONSUMER_KEY'}
181 1 0 0 $method eq 'POST' and defined $xml

or 2 conditions

line l !l condition
73 0 2 $params{'NAME'} || 'Unnamed Application'
1 1 $params{'CONSUMER_KEY'} || ''
1 1 $params{'CONSUMER_SECRET'} || ''
1 1 $params{'PRIVATE_KEY'} || ''
0 2 $params{'keystring'} || undef
0 2 $params{'internal_consumer_key'} || ''
0 2 $params{'internal_token'} || ''
0 2 $params{'internal_token_secret'} || ''
0 2 $params{'pko'} || undef
104 0 1 $self->do_xero_api_call('https://api.xero.com/api.xro/2.0/Items') || (return $self->_error('get_all_xero_products_from_xero() failed'))
215 0 0 &from_json(scalar $res->content) || (return $self->api_error($res->content))
282 1 0 $self->{'_status'} || 'STATUS NOT SET'

or 3 conditions

line l !l&&r !l&&!r condition
249 0 0 0 'WebService::Xero::Organisation'->new_from_api_data($self->do_xero_api_call('https://api.xero.com/api.xro/2.0/organisation')) || $self->_error('FAILED TO CREATE ORGANISATION OBJECT FROM AGENT')