helpers

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CounterCmp added in v0.7.0

func CounterCmp(t *testing.T, metrics map[string]*dto.MetricFamily, value float64, name string, params ...string)

func CreateRandomPeers added in v0.6.1

func CreateRandomPeers(t *testing.T, count int) []blockless.Peer

func CreateTracerProvider added in v0.7.0

func CreateTracerProvider(t *testing.T, resource *resource.Resource) (*tracetest.InMemoryExporter, *trace.TracerProvider)

func GenerateTestAddrs added in v0.6.1

func GenerateTestAddrs(t *testing.T, n int) []ma.Multiaddr

func GetMetric added in v0.7.0

func GetMetric(m map[string]*dto.MetricFamily, name string, params ...string) ([]*dto.Metric, error)

func InMemoryDB

func InMemoryDB(t *testing.T) *pebble.DB

func MetricMap added in v0.7.0

func MetricMap(t *testing.T, g prometheus.Gatherer) map[string]*dto.MetricFamily

func RandPeerID added in v0.6.1

func RandPeerID(t *testing.T) peer.ID

Types

type FunctionServer

type FunctionServer struct {
	*httptest.Server
}

func CreateFunctionServer

func CreateFunctionServer(t *testing.T, manifestEndpoint string, manifest blockless.FunctionManifest, deploymentEndpoint string, archivePath string, cid string) *FunctionServer

Jump to

Keyboard shortcuts

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