mock

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeRunner

type FakeRunner struct {
	RunErr        error
	StopErr       error
	RunCallCount  int
	StopCallCount int
}

FakeRunner is a mock implementation of the gorun.Runner interface.

func (*FakeRunner) RunProgram

func (f *FakeRunner) RunProgram() error

RunProgram simulates running a program.

func (*FakeRunner) StopProgram

func (f *FakeRunner) StopProgram() error

StopProgram simulates stopping a program.

Jump to

Keyboard shortcuts

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