mock

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mock provides mock implementations of components to use in tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TmuxRunner

type TmuxRunner struct {
	mock.Mock
	// contains filtered or unexported fields
}

func NewTmuxRunner

func NewTmuxRunner(tb testing.TB, wrapped tmux.Runner) *TmuxRunner

func (*TmuxRunner) Debug

func (r *TmuxRunner) Debug(msg string, args ...any)

func (*TmuxRunner) Execve

func (r *TmuxRunner) Execve(args ...string) error

func (*TmuxRunner) IsDryRun

func (r *TmuxRunner) IsDryRun() bool

func (*TmuxRunner) Log

func (r *TmuxRunner) Log(msg string, args ...any)

func (*TmuxRunner) Run

func (r *TmuxRunner) Run(ctx context.Context, args ...string) ([]byte, error)

func (*TmuxRunner) SetLogger

func (r *TmuxRunner) SetLogger(logger *slog.Logger)

Jump to

Keyboard shortcuts

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