test

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystemMock

type FileSystemMock struct {
	CallbackNotImplemented func(t *testing.T, intfName, methodName string)
	Impl                   FileSystemMockImpl
	// contains filtered or unexported fields
}

FileSystemMock is a mock.

func NewFileSystemMock

func NewFileSystemMock(t *testing.T) *FileSystemMock

NewFileSystemMock returns FileSystemMock .

func (FileSystemMock) Exist

func (mock FileSystemMock) Exist(p0 string) bool

Exist is a mock method.

func (FileSystemMock) FakeExist

func (mock FileSystemMock) FakeExist(p0 string) bool

FakeExist is a fake method.

func (FileSystemMock) FakeGetWriteCloser

func (mock FileSystemMock) FakeGetWriteCloser(p0 string) (io.WriteCloser, error)

FakeGetWriteCloser is a fake method.

func (FileSystemMock) FakeGetwd

func (mock FileSystemMock) FakeGetwd() (string, error)

FakeGetwd is a fake method.

func (FileSystemMock) FakeMkdirAll

func (mock FileSystemMock) FakeMkdirAll(p0 string) error

FakeMkdirAll is a fake method.

func (FileSystemMock) FakeWrite

func (mock FileSystemMock) FakeWrite(p0 string, p1 []byte) error

FakeWrite is a fake method.

func (FileSystemMock) GetWriteCloser

func (mock FileSystemMock) GetWriteCloser(p0 string) (io.WriteCloser, error)

GetWriteCloser is a mock method.

func (FileSystemMock) Getwd

func (mock FileSystemMock) Getwd() (string, error)

Getwd is a mock method.

func (FileSystemMock) MkdirAll

func (mock FileSystemMock) MkdirAll(p0 string) error

MkdirAll is a mock method.

func (FileSystemMock) Write

func (mock FileSystemMock) Write(p0 string, p1 []byte) error

Write is a mock method.

type FileSystemMockImpl

type FileSystemMockImpl struct {
	Exist          func(p0 string) bool
	MkdirAll       func(p0 string) error
	Write          func(p0 string, p1 []byte) error
	GetWriteCloser func(p0 string) (io.WriteCloser, error)
	Getwd          func() (string, error)
}

FileSystemMockImpl holds functions which implement interface's methods.

Jump to

Keyboard shortcuts

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