diff --git a/galley/pkg/config/analysis/analyzers/analyzers_test.go b/galley/pkg/config/analysis/analyzers/analyzers_test.go index 05d3e8833fdd..85a9ef8f119b 100644 --- a/galley/pkg/config/analysis/analyzers/analyzers_test.go +++ b/galley/pkg/config/analysis/analyzers/analyzers_test.go @@ -381,6 +381,20 @@ func TestAnalyzers(t *testing.T) { }) } +// Verify that all of the analyzers tested here are also registered in All() +func TestAnalyzersInAll(t *testing.T) { + g := NewGomegaWithT(t) + + var allNames []string + for _, a := range All() { + allNames = append(allNames, a.Metadata().Name) + } + + for _, tc := range testGrid { + g.Expect(allNames).To(ContainElement(tc.analyzer.Metadata().Name)) + } +} + func TestAnalyzersHaveUniqueNames(t *testing.T) { g := NewGomegaWithT(t)