MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / hasSuggestion

Function hasSuggestion

pkg/advisor/optimizer_test.go:36–43  ·  view source on GitHub ↗
(result *OptimizationResult, ruleID string)

Source from the content-addressed store, hash-verified

34}
35
36func hasSuggestion(result *OptimizationResult, ruleID string) bool {
37 for _, s := range result.Suggestions {
38 if s.RuleID == ruleID {
39 return true
40 }
41 }
42 return false
43}
44
45// ---------------------------------------------------------------------------
46// OPT-001: SELECT * Detection

Callers 6

TestSelectStarRuleFunction · 0.85
TestMissingWhereRuleFunction · 0.85
TestCartesianProductRuleFunction · 0.85
TestDistinctOveruseRuleFunction · 0.85
TestNewWithCustomRulesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected