2020-03-23 22:41:10 -07:00
|
|
|
// Copyright The OpenTelemetry Authors
|
2019-10-17 11:13:57 -07:00
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
2020-11-04 18:10:58 +01:00
|
|
|
package oteltest // import "go.opentelemetry.io/otel/oteltest"
|
2019-10-17 11:13:57 -07:00
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
2019-10-24 16:05:26 -07:00
|
|
|
|
2021-07-26 08:40:36 -07:00
|
|
|
"go.opentelemetry.io/otel/internal/internaltest"
|
2019-10-17 11:13:57 -07:00
|
|
|
)
|
|
|
|
|
2020-10-12 08:47:41 -07:00
|
|
|
// Harness is a testing harness used to test implementations of the
|
|
|
|
// OpenTelemetry API.
|
2021-07-26 08:40:36 -07:00
|
|
|
//
|
|
|
|
// Deprecated: this will be removed in the next major release.
|
|
|
|
type Harness = internaltest.Harness
|
2019-10-17 11:13:57 -07:00
|
|
|
|
2020-10-12 08:47:41 -07:00
|
|
|
// NewHarness returns an instantiated *Harness using t.
|
2021-07-26 08:40:36 -07:00
|
|
|
//
|
|
|
|
// Deprecated: this will be removed in the next major release.
|
2019-10-17 11:13:57 -07:00
|
|
|
func NewHarness(t *testing.T) *Harness {
|
2021-07-26 08:40:36 -07:00
|
|
|
return internaltest.NewHarness(t)
|
2021-03-03 20:09:58 +00:00
|
|
|
}
|