// Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 package zipkinreceiver import ( "context" "testing" "github.com/stretchr/testify/assert" "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/consumer/consumertest" "go.opentelemetry.io/collector/receiver/receivertest" ) func TestCreateDefaultConfig(t *testing.T) { cfg := createDefaultConfig() assert.NotNil(t, cfg, "failed to create default config") assert.NoError(t, componenttest.CheckConfigStruct(cfg)) } func TestCreateReceiver(t *testing.T) { cfg := createDefaultConfig() tReceiver, err := createTracesReceiver( context.Background(), receivertest.NewNopCreateSettings(), cfg, consumertest.NewNop()) assert.NoError(t, err, "receiver creation failed") assert.NotNil(t, tReceiver, "receiver creation failed") tReceiver, err = createTracesReceiver( context.Background(), receivertest.NewNopCreateSettings(), cfg, consumertest.NewNop()) assert.NoError(t, err, "receiver creation failed") assert.NotNil(t, tReceiver, "receiver creation failed") }