Branch Coverage

blib/lib/AI/Image.pm
Criterion Covered Total %
branch 9 18 50.0


line true false branch
25 1 2 unless $attr{'api'}
26 1 2 unless $attr{'api'} eq "OpenAI"
27 1 2 unless $attr{'key'}
29 3 0 unless $attr{'model'}
30 3 0 unless $attr{'size'}
60 3 0 unless defined $self->{'key'}
82 0 0 if ($response->{'content'} =~ /invalid_api_key/)
86 0 0 if ($self->{'debug'} and not $response->{'success'})
87 0 0 if $self->{'debug'} eq "verbose"