testlib

package
v1.66.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2024 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequireContainsMapSubset

func RequireContainsMapSubset(t *testing.T, m map[string]interface{}, subset map[string]interface{})

RequireContainsMapSubset requires that the given map m contains the given subset map keys and values.

Types

type MockSpan

type MockSpan struct {
	Tags     map[string]interface{}
	Finished bool
}

func (*MockSpan) BaggageItem

func (m *MockSpan) BaggageItem(_ string) string

func (*MockSpan) Context

func (m *MockSpan) Context() ddtrace.SpanContext

func (*MockSpan) Finish

func (m *MockSpan) Finish(_ ...ddtrace.FinishOption)

func (*MockSpan) SetBaggageItem

func (m *MockSpan) SetBaggageItem(_, _ string)

func (*MockSpan) SetOperationName

func (m *MockSpan) SetOperationName(_ string)

func (*MockSpan) SetTag

func (m *MockSpan) SetTag(key string, value interface{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL