memorytest

package
v1.42.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package memorytest provides test doubles for the memory package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeReader

type FakeReader struct {
	SystemPct    float64
	SystemPctErr error
	RSSBySession map[string]int64
	// contains filtered or unexported fields
}

FakeReader is a test double for memory.Reader that returns configurable values.

func (*FakeReader) GetSessionRSSCalls

func (f *FakeReader) GetSessionRSSCalls() int

func (*FakeReader) GetSystemMemoryCalls

func (f *FakeReader) GetSystemMemoryCalls() int

func (*FakeReader) SessionRSSMB

func (f *FakeReader) SessionRSSMB(name string) (int64, error)

func (*FakeReader) SystemMemoryPct

func (f *FakeReader) SystemMemoryPct() (float64, error)

Jump to

Keyboard shortcuts

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