testutil

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertSpan

func AssertSpan(t *testing.T, expected map[string]interface{}, actualSpan *trace.Span)

func AssertSpanWithError added in v1.1.0

func AssertSpanWithError(t *testing.T, span *trace.Span, err ErrorAssertion)

func AssertSpanWithNoError added in v1.1.0

func AssertSpanWithNoError(t *testing.T, span *trace.Span)

func AssertSpanWithTags added in v1.1.0

func AssertSpanWithTags(t *testing.T, span *trace.Span, expected map[string]string)

Types

type ErrorAssertion added in v1.1.0

type ErrorAssertion struct {
	KindEquals      string
	MessageContains string
	ObjectContains  string
	StackContains   []string
	StackMinLength  int
}

Jump to

Keyboard shortcuts

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