testutils

package module
v1.50.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package testutils contains utility functions used for testing other packges in the collector

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GZipCompressData

func GZipCompressData(t *testing.T, input []byte) []byte

GZipCompressData compresses data for testing

func GenerateTestLogs

func GenerateTestLogs(t *testing.T) (ld plog.Logs, jsonBytes []byte)

GenerateTestLogs generates test logs and the marshaled json output bytes

func GenerateTestMetrics

func GenerateTestMetrics(t *testing.T) (md pmetric.Metrics, jsonBytes []byte)

GenerateTestMetrics generates test metrics and the marshaled json output bytes

func GenerateTestTraces

func GenerateTestTraces(t *testing.T) (td ptrace.Traces, jsonBytes []byte)

GenerateTestTraces generates test traces and the marshaled json output bytes

Types

This section is empty.

Jump to

Keyboard shortcuts

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