(t *testing.T)
| 94 | } |
| 95 | |
| 96 | func 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 | |
| 111 | func TestLogCluster_ingestTokens_PatternMerging(t *testing.T) { |
| 112 | t.Parallel() |
nothing calls this directly
no test coverage detected