Skip to content

Commit 87349a7

Browse files
committed
Add separate module for test utilities
1 parent 51635fc commit 87349a7

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

confmap/provider/internal/configurablehttpprovider/provider_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525

2626
"go.opentelemetry.io/collector/confmap"
2727
"go.opentelemetry.io/collector/confmap/confmaptest"
28-
"go.opentelemetry.io/collector/confmap/provider/testutils"
28+
"go.opentelemetry.io/collector/testutils"
2929
)
3030

3131
func newConfigurableHTTPProvider(scheme SchemeType, set confmap.ProviderSettings) *provider {

testutils/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## Test Utilities
2+
3+
The `go.opentelemetry.io/collector/testutils` module provides utility functions, etc. for use by tests in other
4+
OpenTelemetry Collector modules.

confmap/provider/testutils/fips.go renamed to testutils/fips.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright The OpenTelemetry Authors
22
// SPDX-License-Identifier: Apache-2.0
33

4-
package testutils // import "go.opentelemetry.io/collector/confmap/provider/testutils"
4+
package testutils // import "go.opentelemetry.io/collector/testutils"
55

66
import (
77
"os"

testutils/go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module go.opentelemetry.io/collector/testutils
2+
3+
go 1.24.0

0 commit comments

Comments
 (0)