Branch Coverage

File:blib/lib/Database/BI/Summary.pm
Coverage:92.9%

line%coveragebranch
39100TF$args{'use_ai'} && $args{'ai_config'} && length($args{'ai_config'}{'api_key'} // '') ? :
41100TF$use_ai ? :
44100TFif (my $cached = $_cache{$fp})
4550TFif (time - $$cached{"ts"} < $CACHE_TTL_S)
51100TFif ($use_ai and ref $args{"ai_allowed"} eq "CODE" and not $args{"ai_allowed"}())
55100TFif ($use_ai) { }
57100TFif ($@)
81100TF$use_ai ? :
91100TF$row_count == 1 ? :
10150TFif $count >= $MAX_SUMMARY_INSIGHTS
102100TFunless my $items = $by_kind{$kind}
104100TFif ($kind eq 'outlier') { }
100TFelsif ($kind eq 'period_delta') { }
100TFelsif ($kind eq 'top_mover') { }
50TFelsif ($kind eq 'seasonality') { }
106100TFif ($n == 1) { }
121100TFif $count == 0
135100TFunless $provider eq "anthropic"
138100TFif $n > $MAX_SUMMARY_INSIGHTS
186100TFunless $resp->is_success
190100TFunless defined $text and length $text