mock_fs

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mock_fs is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockReadFileFS

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

MockReadFileFS is a mock of the ReadFileFS interface in io/fs.

func NewMockReadFileFS

func NewMockReadFileFS(ctrl *gomock.Controller) *MockReadFileFS

NewMockReadFileFS creates a new mock instance.

func (*MockReadFileFS) EXPECT

EXPECT returns a struct that allows setting up expectations.

func (*MockReadFileFS) NEW

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

func (*MockReadFileFS) Open

func (m *MockReadFileFS) Open(_name string) (fs.File, error)

Open mocks Open on ReadFileFS.

func (*MockReadFileFS) ReadFile

func (m *MockReadFileFS) ReadFile(_name string) ([]byte, error)

ReadFile mocks ReadFile on ReadFileFS.

type MockReadFileFSMockRecorder

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

MockReadFileFSMockRecorder is the mock recorder for MockReadFileFS.

func (*MockReadFileFSMockRecorder) Open

func (mr *MockReadFileFSMockRecorder) Open(_name interface{}) *gomock.Call

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

Inputs:

name string

Outputs:

fs.File
error

func (*MockReadFileFSMockRecorder) ReadFile

func (mr *MockReadFileFSMockRecorder) ReadFile(_name interface{}) *gomock.Call

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

Inputs:

name string

Outputs:

[]byte
error

Jump to

Keyboard shortcuts

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