Condition Coverage

blib/lib/AI/Anthropic.pm
Criterion Covered Total %
condition 9 43 20.9


and 3 conditions

line !l l&&!r l&&r condition
215 0 0 0 $part->{'type'} eq "image" and $part->{'path'}
0 0 0 $part->{'type'} eq "image" and $part->{'url'}
0 0 0 $part->{'type'} eq "image" and $part->{'base64'}

or 2 conditions

line l !l condition
105 0 2 $args{'model'} // "claude-sonnet-4-20250514"
0 2 $args{'max_tokens'} // 4096
0 2 $args{'timeout'} // 120
0 2 $args{'api_base'} // "https://api.anthropic.com"
0 2 $args{'timeout'} // 120
229 0 0 $part->{'media_type'} // "image/png"
325 0 0 $event->{'delta'}{'text'} // ""
367 0 0 ($data->{'error'}{'message'} // $response->{'content'}) // "Unknown error"
377 0 0 $data->{'content'}[0]{'text'} // ""
403 2 0 +(shift())->{'usage'}{'input_tokens'} // 0
404 2 0 +(shift())->{'usage'}{'output_tokens'} // 0

or 3 conditions

line l !l&&r !l&&!r condition
96 2 0 1 $args{'api_key'} // $ENV{'ANTHROPIC_API_KEY'}
161 0 0 0 $args{'model'} // $self->{'model'}
0 0 0 $args{'max_tokens'} // $self->{'max_tokens'}
367 0 0 0 $data->{'error'}{'message'} // $response->{'content'}