testutils

package
v2.0.0-beta.7 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscardLogger

func DiscardLogger() tracer.Logger

func SetGlobalAnalyticsRate

func SetGlobalAnalyticsRate(t *testing.T, val float64)

func SetGlobalDogstatsdAddr

func SetGlobalDogstatsdAddr(t *testing.T, val string)

func SetGlobalHeaderTags

func SetGlobalHeaderTags(t *testing.T, headers ...string)

func SetGlobalServiceName

func SetGlobalServiceName(t *testing.T, val string)

func SetPropagatingTag

func SetPropagatingTag(t testing.TB, ctx *tracer.SpanContext, k, v string)

SetPropagatingTag sets a tag on the given span context. It assumes it comes from a span, so it has a trace attached to it.

func StartAppSec

func StartAppSec(t *testing.T)

func StartAppSecBench

func StartAppSecBench(b *testing.B)

Types

type MockStatsdClient

type MockStatsdClient = statsdtest.TestStatsdClient

func NewMockStatsdClient

func NewMockStatsdClient() *MockStatsdClient

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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