mocks

package
v1.43.0 Latest Latest
Warning

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

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

Documentation

Overview

Package mocks contains mocks for snapshot interfaces

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSnapshotter

type MockSnapshotter struct {
	mock.Mock
}

MockSnapshotter is an autogenerated mock type for the Snapshotter type

func NewMockSnapshotter

func NewMockSnapshotter(t NewMockSnapshotterT) *MockSnapshotter

NewMockSnapshotter creates a new instance of MockSnapshotter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockSnapshotter) SaveLogs

func (_m *MockSnapshotter) SaveLogs(componentID string, ld plog.Logs)

SaveLogs provides a mock function with given fields: componentID, ld

func (*MockSnapshotter) SaveMetrics

func (_m *MockSnapshotter) SaveMetrics(componentID string, md pmetric.Metrics)

SaveMetrics provides a mock function with given fields: componentID, md

func (*MockSnapshotter) SaveTraces

func (_m *MockSnapshotter) SaveTraces(componentID string, td ptrace.Traces)

SaveTraces provides a mock function with given fields: componentID, td

type NewMockSnapshotterT

type NewMockSnapshotterT interface {
	mock.TestingT
	Cleanup(func())
}

NewMockSnapshotterT mock testing interface

Jump to

Keyboard shortcuts

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