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

Function TestValidateCompactorConfig

tempodb/config_test.go:179–188  ·  tempodb/config_test.go::TestValidateCompactorConfig
(t *testing.T)

Source from the content-addressed store, hash-verified

177}
178
179func TestValidateCompactorConfig(t *testing.T) {
180 compactorConfig := CompactorConfig{
181 MaxCompactionRange: 0,
182 }
183
184 expected := errors.New("compaction window can't be 0")
185 actual := compactorConfig.validate()
186
187 require.Equal(t, expected, actual)
188}

Callers

nothing calls this directly

Calls 2

validateMethod · 0.95
EqualMethod · 0.45

Tested by

no test coverage detected