Condition Coverage

blib/lib/Persevere/Client.pm
Criterion Covered Total %
condition 0 23 0.0


or 2 conditions

line l !l condition
37 0 0 $opt{'scheme'} || 'http'
0 0 $opt{'host'} || 'localhost'
0 0 $opt{'port'} || '8080'
54 0 0 $opt{'auth_type'} || 'basic'

or 3 conditions

line l !l&&r !l&&!r condition
41 0 0 0 $opt{'json'} || 'JSON'->new->utf8->allow_blessed
42 0 0 0 $opt{'ua'} || 'LWP::UserAgent'->new('agent', $self{'agent'} || "Persevere::Client/$VERSION")
55 0 0 0 $self{'auth_type'} eq 'json-rpc' || $self{'auth_type'} eq 'basic' || $self{'auth_type'} eq 'none'
58 0 0 0 $opt{'username'} || confess('A username must be provided if auth_type is not set to none')
59 0 0 0 $opt{'password'} || confess('A password must be provided if auth_type is not set to none')