testhelper

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToJSON

func ToJSON(v interface{}) []byte

ToJSON marshals a generic interface to JSON to enable easy comparisons.

Types

type ConcurrentSpanSink

type ConcurrentSpanSink struct {
	// contains filtered or unexported fields
}

ConcurrentSpanSink acts as a trace receiver for use in tests.

func (*ConcurrentSpanSink) AllTraces

AllTraces returns the traces sent to the test sink.

func (*ConcurrentSpanSink) ReceiveTraceData

ReceiveTraceData stores traces in the span sink for verification in tests.

Jump to

Keyboard shortcuts

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