You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-08-10 22:31:50 +02:00
internal/internaltest: Remove errors.go (#6559)
This PR removes the errors.go from the /internal/internaltest directory, as they are no longer used in the project. Additionally, this PR updates the gen.go file in the internal package to reflect the removal of these unused files. Closes https://github.com/open-telemetry/opentelemetry-go/issues/6521. Co-authored-by: Robert Pająk <pellared@hotmail.com>
This commit is contained in:
@@ -7,7 +7,6 @@ package internal // import "go.opentelemetry.io/otel/internal"
|
||||
//go:generate gotmpl --body=./shared/matchers/expecter.go.tmpl "--data={}" --out=matchers/expecter.go
|
||||
//go:generate gotmpl --body=./shared/matchers/temporal_matcher.go.tmpl "--data={}" --out=matchers/temporal_matcher.go
|
||||
|
||||
//go:generate gotmpl --body=./shared/internaltest/errors.go.tmpl "--data={}" --out=internaltest/errors.go
|
||||
//go:generate gotmpl --body=./shared/internaltest/harness.go.tmpl "--data={\"matchersImportPath\": \"go.opentelemetry.io/otel/internal/matchers\"}" --out=internaltest/harness.go
|
||||
//go:generate gotmpl --body=./shared/internaltest/text_map_carrier.go.tmpl "--data={}" --out=internaltest/text_map_carrier.go
|
||||
//go:generate gotmpl --body=./shared/internaltest/text_map_carrier_test.go.tmpl "--data={}" --out=internaltest/text_map_carrier_test.go
|
||||
|
@@ -1,19 +0,0 @@
|
||||
// Code created by gotmpl. DO NOT MODIFY.
|
||||
// source: internal/shared/internaltest/errors.go.tmpl
|
||||
|
||||
// Copyright The OpenTelemetry Authors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package internaltest // import "go.opentelemetry.io/otel/internal/internaltest"
|
||||
|
||||
type TestError string
|
||||
|
||||
var _ error = TestError("")
|
||||
|
||||
func NewTestError(s string) error {
|
||||
return TestError(s)
|
||||
}
|
||||
|
||||
func (e TestError) Error() string {
|
||||
return string(e)
|
||||
}
|
Reference in New Issue
Block a user