MCPcopy
hub / github.com/grafana/tempo / randomSQLKeyword

Function randomSQLKeyword

pkg/drain/testdata/generate-random-span-names/main.go:81–90  ·  view source on GitHub ↗
(r *rand.Rand)

Source from the content-addressed store, hash-verified

79}
80
81func randomSQLKeyword(r *rand.Rand) string {
82 statements := []string{
83 "SELECT",
84 "INSERT",
85 "UPDATE",
86 "DELETE",
87 "CREATE",
88 }
89 return statements[r.Intn(len(statements))]
90}
91
92func randomSQL(r *rand.Rand) string {
93 keyword := randomSQLKeyword(r)

Callers 2

generateFeatureFunction · 0.85
randomSQLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected