mock_fswrite

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mock_fswrite is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockWritable

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

MockWritable is a mock of the Writable interface in github.com/JosiahWitt/ensure/cmd/ensure/internal/fswrite.

func NewMockWritable

func NewMockWritable(ctrl *gomock.Controller) *MockWritable

NewMockWritable creates a new mock instance.

func (*MockWritable) EXPECT

EXPECT returns a struct that allows setting up expectations.

func (*MockWritable) ListRecursive

func (m *MockWritable) ListRecursive(_dir string) ([]string, error)

ListRecursive mocks ListRecursive on Writable.

func (*MockWritable) MkdirAll

func (m *MockWritable) MkdirAll(_path string, _perm fs.FileMode) error

MkdirAll mocks MkdirAll on Writable.

func (*MockWritable) NEW

NEW creates a MockWritable. This method is used internally by ensure.

func (*MockWritable) RemoveAll

func (m *MockWritable) RemoveAll(_paths string) error

RemoveAll mocks RemoveAll on Writable.

func (*MockWritable) WriteFile

func (m *MockWritable) WriteFile(_filename string, _data string, _perm fs.FileMode) error

WriteFile mocks WriteFile on Writable.

type MockWritableMockRecorder

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

MockWritableMockRecorder is the mock recorder for MockWritable.

func (*MockWritableMockRecorder) ListRecursive

func (mr *MockWritableMockRecorder) ListRecursive(_dir interface{}) *gomock.Call

ListRecursive sets up expectations for calls to ListRecursive. Calling this method multiple times allows expecting multiple calls to ListRecursive with a variety of parameters.

Inputs:

dir string

Outputs:

[]string
error

func (*MockWritableMockRecorder) MkdirAll

func (mr *MockWritableMockRecorder) MkdirAll(_path interface{}, _perm interface{}) *gomock.Call

MkdirAll sets up expectations for calls to MkdirAll. Calling this method multiple times allows expecting multiple calls to MkdirAll with a variety of parameters.

Inputs:

path string
perm fs.FileMode

Outputs:

error

func (*MockWritableMockRecorder) RemoveAll

func (mr *MockWritableMockRecorder) RemoveAll(_paths interface{}) *gomock.Call

RemoveAll sets up expectations for calls to RemoveAll. Calling this method multiple times allows expecting multiple calls to RemoveAll with a variety of parameters.

Inputs:

paths string

Outputs:

error

func (*MockWritableMockRecorder) WriteFile

func (mr *MockWritableMockRecorder) WriteFile(_filename interface{}, _data interface{}, _perm interface{}) *gomock.Call

WriteFile sets up expectations for calls to WriteFile. Calling this method multiple times allows expecting multiple calls to WriteFile with a variety of parameters.

Inputs:

filename string
data string
perm fs.FileMode

Outputs:

error

Jump to

Keyboard shortcuts

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