// Code generated by "go.opentelemetry.io/collector/cmd/builder". DO NOT EDIT.

package main

import (
	"testing"

	"github.com/stretchr/testify/assert"

	"go.opentelemetry.io/collector/component/componenttest"
)

func TestValidateConfigs(t *testing.T) {
	factories, err := components()
	assert.NoError(t, err)

	for k, factory := range factories.Receivers {
		assert.Equal(t, k, factory.Type())
		assert.NoError(t, componenttest.CheckConfigStruct(factory.CreateDefaultConfig()))
	}

	for k, factory := range factories.Processors {
		assert.Equal(t, k, factory.Type())
		assert.NoError(t, componenttest.CheckConfigStruct(factory.CreateDefaultConfig()))
	}

	for k, factory := range factories.Exporters {
		assert.Equal(t, k, factory.Type())
		assert.NoError(t, componenttest.CheckConfigStruct(factory.CreateDefaultConfig()))
	}

	for k, factory := range factories.Connectors {
		assert.Equal(t, k, factory.Type())
		assert.NoError(t, componenttest.CheckConfigStruct(factory.CreateDefaultConfig()))
	}

	for k, factory := range factories.Extensions {
		assert.Equal(t, k, factory.Type())
		assert.NoError(t, componenttest.CheckConfigStruct(factory.CreateDefaultConfig()))
	}
}
