test

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContextWithMockSpan

func NewContextWithMockSpan(ctx context.Context, traceID, spanID uint64) context.Context

NewContextWithMockSpan is test helper.

Types

type MockLogger

type MockLogger struct {
	*zap.SugaredLogger
	// contains filtered or unexported fields
}

MockLogger is logger wrapped for tests.

func NewMockLogger

func NewMockLogger() *MockLogger

func (*MockLogger) String

func (m *MockLogger) String() string

Jump to

Keyboard shortcuts

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