Debian Codegraph @

confmap/provider/httpprovider/provider_test.go

raw
1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
3
4 package httpprovider
5
6 import (
7 "context"
8 "testing"
9
10 "github.com/stretchr/testify/assert"
11 "github.com/stretchr/testify/require"
12
13 "go.opentelemetry.io/collector/confmap/confmaptest"
14 )
15
16 func TestSupportedScheme(t *testing.T) {
17 fp := NewFactory().Create(confmaptest.NewNopProviderSettings())
18 assert.Equal(t, "http", fp.Scheme())
19 require.NoError(t, fp.Shutdown(context.Background()))
20 }