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

Function TestDrain_Train_EmptyString

pkg/drain/drain_test.go:152–160  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

150}
151
152func TestDrain_Train_EmptyString(t *testing.T) {
153 t.Parallel()
154
155 drain := New("test-tenant", DefaultConfig())
156
157 // Empty string should return nil
158 cluster := drain.Train("")
159 require.Nil(t, cluster, "should return nil for empty string")
160}
161
162func TestDrain_Train_CacheEvictionIntegration(t *testing.T) {
163 t.Parallel()

Callers

nothing calls this directly

Calls 3

DefaultConfigFunction · 0.85
TrainMethod · 0.80
NewFunction · 0.70

Tested by

no test coverage detected