os

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package os is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var System = sys{}

Functions

func WithContext

func WithContext(parent context.Context, val Os) context.Context

Types

type MockOs

type MockOs struct {
	// contains filtered or unexported fields
}

MockOs is a mock of Os interface.

func NewMockOs

func NewMockOs(ctrl *gomock.Controller) *MockOs

NewMockOs creates a new mock instance.

func (*MockOs) EXPECT

func (m *MockOs) EXPECT() *MockOsMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockOs) Fs

func (m *MockOs) Fs() afero.Fs

Fs mocks base method.

func (*MockOs) Stderr

func (m *MockOs) Stderr() io.Writer

Stderr mocks base method.

func (*MockOs) Stdin

func (m *MockOs) Stdin() io.Reader

Stdin mocks base method.

func (*MockOs) Stdout

func (m *MockOs) Stdout() io.Writer

Stdout mocks base method.

type MockOsMockRecorder

type MockOsMockRecorder struct {
	// contains filtered or unexported fields
}

MockOsMockRecorder is the mock recorder for MockOs.

func (*MockOsMockRecorder) Fs

func (mr *MockOsMockRecorder) Fs() *gomock.Call

Fs indicates an expected call of Fs.

func (*MockOsMockRecorder) Stderr

func (mr *MockOsMockRecorder) Stderr() *gomock.Call

Stderr indicates an expected call of Stderr.

func (*MockOsMockRecorder) Stdin

func (mr *MockOsMockRecorder) Stdin() *gomock.Call

Stdin indicates an expected call of Stdin.

func (*MockOsMockRecorder) Stdout

func (mr *MockOsMockRecorder) Stdout() *gomock.Call

Stdout indicates an expected call of Stdout.

type Os

type Os interface {
	Fs() afero.Fs
	Stderr() io.Writer
	Stdin() io.Reader
	Stdout() io.Writer
}

func FromContext

func FromContext(ctx context.Context) Os

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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