testutil

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 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

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

func AssertSpanWithNoError

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

func AssertSpanWithTags

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

Types

type ErrorAssertion

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