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

Function TestLogCluster_ingestTokens_NoChange

pkg/drain/log_cluster_test.go:96–109  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

94}
95
96func TestLogCluster_ingestTokens_NoChange(t *testing.T) {
97 t.Parallel()
98
99 cluster := &LogCluster{
100 Tokens: []string{"GET", "/users"},
101 ParamString: "<_>",
102 Size: 1,
103 }
104
105 cluster.ingestTokens([]string{"GET", "/users"})
106
107 assert.Equal(t, []string{"GET", "/users"}, cluster.Tokens)
108 assert.Equal(t, 2, cluster.Size)
109}
110
111func TestLogCluster_ingestTokens_PatternMerging(t *testing.T) {
112 t.Parallel()

Callers

nothing calls this directly

Calls 2

ingestTokensMethod · 0.95
EqualMethod · 0.45

Tested by

no test coverage detected