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

Function TestNumberOfOverrides

modules/overrides/config_test.go:245–249  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

243}
244
245func TestNumberOfOverrides(t *testing.T) {
246 // Asserts that the number of overrides in the new config is the same as the
247 // number of overrides in the legacy config.
248 assert.Equal(t, countOverrides(LegacyOverrides{}), countOverrides(Overrides{}))
249}
250
251// countOverrides recursively counts the number of non-struct fields in a struct.
252func countOverrides(v any) int {

Callers

nothing calls this directly

Calls 2

countOverridesFunction · 0.85
EqualMethod · 0.45

Tested by

no test coverage detected