1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-08-10 22:31:50 +02:00

Remove harness from internaltest and add doc template (#6599)

Remove harness.go from internaltest and create doc.go for package
documentation.

Fixes #6522

---------

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
This commit is contained in:
Stoo Johnston
2025-05-01 17:29:14 +02:00
committed by GitHub
parent 7483f794e3
commit 6849a0ae29
8 changed files with 26 additions and 338 deletions

View File

@@ -8,6 +8,7 @@ package internal // import "go.opentelemetry.io/otel/sdk/internal"
//go:generate gotmpl --body=../../internal/shared/matchers/expecter.go.tmpl "--data={}" --out=matchers/expecter.go
//go:generate gotmpl --body=../../internal/shared/matchers/temporal_matcher.go.tmpl "--data={}" --out=matchers/temporal_matcher.go
//go:generate gotmpl --body=../../internal/shared/internaltest/doc.go.tmpl "--data={}" --out=internaltest/doc.go
//go:generate gotmpl --body=../../internal/shared/internaltest/env.go.tmpl "--data={}" --out=internaltest/env.go
//go:generate gotmpl --body=../../internal/shared/internaltest/env_test.go.tmpl "--data={}" --out=internaltest/env_test.go
//go:generate gotmpl --body=../../internal/shared/internaltest/errors.go.tmpl "--data={}" --out=internaltest/errors.go

View File

@@ -0,0 +1,8 @@
// Code created by gotmpl. DO NOT MODIFY.
// source: internal/shared/internaltest/doc.go.tmpl
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
// Package internaltest provides testing functionality.
package internaltest // import "go.opentelemetry.io/otel/sdk/internal/internaltest"

View File

@@ -4,7 +4,6 @@
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
// Package internaltest provides testing functionality.
package internaltest // import "go.opentelemetry.io/otel/sdk/internal/internaltest"
import (