You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-11-27 22:49:15 +02:00
Go documents the following regex pattern for identifying generated code: ^// Code generated .* DO NOT EDIT\.$ This convention is used go APIs and tooling. References: https://pkg.go.dev/go/ast#IsGenerated https://pkg.go.dev/cmd/go#hdr-Generate_Go_files_by_processing_source Co-authored-by: Damien Mathieu <42@dmathieu.com>
29 lines
510 B
Go
29 lines
510 B
Go
// Code generated by gotmpl. DO NOT MODIFY.
|
|
// source: internal/shared/matchers/expecter.go.tmpl
|
|
|
|
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package matchers // import "go.opentelemetry.io/otel/internal/matchers"
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
type Expecter struct {
|
|
t *testing.T
|
|
}
|
|
|
|
func NewExpecter(t *testing.T) *Expecter {
|
|
return &Expecter{
|
|
t: t,
|
|
}
|
|
}
|
|
|
|
func (a *Expecter) Expect(actual interface{}) *Expectation {
|
|
return &Expectation{
|
|
t: a.t,
|
|
actual: actual,
|
|
}
|
|
}
|