testmocks

package
v0.128.0 Latest Latest
Warning

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

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

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PerfCounterWatcherMock

type PerfCounterWatcherMock struct {
	Val       int64
	ScrapeErr error
	CloseErr  error
	// contains filtered or unexported fields
}

func (*PerfCounterWatcherMock) Close

func (w *PerfCounterWatcherMock) Close() error

Close all counters/handles related to the query and free all associated memory.

func (PerfCounterWatcherMock) Path

Path panics; It should not be called

func (PerfCounterWatcherMock) Reset

func (PerfCounterWatcherMock) Reset() error

Reset panics; it should not be called

func (PerfCounterWatcherMock) ScrapeData

ScrapeData returns scrapeErr if it's set, otherwise it returns a single countervalue with the mock's val

func (*PerfCounterWatcherMock) ScrapeRawValue

func (w *PerfCounterWatcherMock) ScrapeRawValue(rawValue *int64) (bool, error)

ScrapeRawValue implements winperfcounters.PerfCounterWatcher.

func (*PerfCounterWatcherMock) ScrapeRawValues

func (w *PerfCounterWatcherMock) ScrapeRawValues() ([]winperfcounters.RawCounterValue, error)

ScrapeRawValues implements winperfcounters.PerfCounterWatcher.

Jump to

Keyboard shortcuts

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