filesystem

package
v1.7.6 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: BSD-3-Clause Imports: 5 Imported by: 7

Documentation

Overview

Package filesystem is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockFile

type MockFile struct {
	MockName    string
	MockSize    int64
	MockMode    fs.FileMode
	MockModTime time.Time
	MockIsDir   bool
	MockSys     interface{}
}

MockFile is an implementation of fs.File for unit testing.

func (MockFile) IsDir

func (m MockFile) IsDir() bool

func (MockFile) ModTime

func (m MockFile) ModTime() time.Time

func (MockFile) Mode

func (m MockFile) Mode() fs.FileMode

func (MockFile) Name

func (m MockFile) Name() string

func (MockFile) Size

func (m MockFile) Size() int64

func (MockFile) Sys

func (m MockFile) Sys() interface{}

type MockReader

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

MockReader is a mock of Reader interface.

func NewMockReader

func NewMockReader(ctrl *gomock.Controller) *MockReader

NewMockReader creates a new mock instance.

func (*MockReader) EXPECT

func (m *MockReader) EXPECT() *MockReaderMockRecorder

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

func (*MockReader) ReadDir

func (m *MockReader) ReadDir(dirname string) ([]fs.FileInfo, error)

ReadDir mocks base method.

type MockReaderMockRecorder

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

MockReaderMockRecorder is the mock recorder for MockReader.

func (*MockReaderMockRecorder) ReadDir

func (mr *MockReaderMockRecorder) ReadDir(dirname interface{}) *gomock.Call

ReadDir indicates an expected call of ReadDir.

type Reader

type Reader interface {
	// ReadDir reads a given directory.
	// Returns the files in the directory.
	ReadDir(string) ([]fs.FileInfo, error)
}

Reader is an interface for reading the filesystem.

func NewReader

func NewReader() Reader

NewReader returns an instance of Reader

Jump to

Keyboard shortcuts

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