testutils

package
v0.10.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ptr

func Ptr[T any](v T) *T

func TestMetricToMetricSlice

func TestMetricToMetricSlice(t testing.TB, testMetrics []TestMetric, out pmetric.MetricSlice)

Types

type TestDP

type TestDP struct {
	Dbl   *float64
	Int   *int64
	Attrs map[string]any
	Ts    pcommon.Timestamp
}

type TestMetric

type TestMetric struct {
	DP   TestDP
	Name string
	Type pmetric.MetricType
}

func MetricSliceToTestMetric

func MetricSliceToTestMetric(t *testing.T, ms pmetric.MetricSlice) []TestMetric

Jump to

Keyboard shortcuts

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