Versions in this module Expand all Collapse all v1 v1.11.2 Nov 21, 2022 Changes in this version + func Aligned8Byte(fields []FieldOffset, out io.Writer) bool + func NewTestError(s string) error + type Env struct + Exists bool + Name string + Value string + type EnvStore interface + Record func(key string) + Restore func() error + func NewEnvStore() EnvStore + func SetEnvVariables(env map[string]string) (EnvStore, error) + type FieldOffset struct + Name string + Offset uintptr + type Harness struct + func NewHarness(t *testing.T) *Harness + func (h *Harness) TestTracer(subjectFactory func() trace.Tracer) + func (h *Harness) TestTracerProvider(subjectFactory func() trace.TracerProvider) + type TestError string + func (e TestError) Error() string + type TextMapCarrier struct + func NewTextMapCarrier(data map[string]string) *TextMapCarrier + func (c *TextMapCarrier) Get(key string) string + func (c *TextMapCarrier) GotKey(t *testing.T, key string) bool + func (c *TextMapCarrier) GotN(t *testing.T, n int) bool + func (c *TextMapCarrier) Keys() []string + func (c *TextMapCarrier) Reset(data map[string]string) + func (c *TextMapCarrier) Set(key, value string) + func (c *TextMapCarrier) SetKeyValue(t *testing.T, key, value string) bool + func (c *TextMapCarrier) SetN(t *testing.T, n int) bool + type TextMapPropagator struct + func NewTextMapPropagator(name string) *TextMapPropagator + func (p *TextMapPropagator) Extract(ctx context.Context, carrier propagation.TextMapCarrier) context.Context + func (p *TextMapPropagator) ExtractedN(t *testing.T, ctx context.Context, n int) bool + func (p *TextMapPropagator) Fields() []string + func (p *TextMapPropagator) Inject(ctx context.Context, carrier propagation.TextMapCarrier) + func (p *TextMapPropagator) InjectedN(t *testing.T, carrier *TextMapCarrier, n int) bool