test

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CfgReaderMock added in v0.3.0

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

CfgReaderMock is a mock.

func NewCfgReaderMock added in v0.3.0

func NewCfgReaderMock(t *testing.T, cb gomic.CallbackNotImplemented) *CfgReaderMock

NewCfgReaderMock returns CfgReaderMock .

func (CfgReaderMock) Read added in v0.3.0

func (mock CfgReaderMock) Read(p0 string) (r0 domain.Config, r1 error)

Read is a mock method.

func (*CfgReaderMock) SetFuncRead added in v0.5.0

func (mock *CfgReaderMock) SetFuncRead(impl func(p0 string) (r0 domain.Config, r1 error)) *CfgReaderMock

SetFuncRead sets a method and returns the mock.

func (*CfgReaderMock) SetReturnRead added in v0.5.0

func (mock *CfgReaderMock) SetReturnRead(r0 domain.Config, r1 error) *CfgReaderMock

SetReturnRead sets a fake method.

type FileSystemMock

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

FileSystemMock is a mock.

func NewFileSystemMock

func NewFileSystemMock(t *testing.T, cb gomic.CallbackNotImplemented) *FileSystemMock

NewFileSystemMock returns FileSystemMock .

func (FileSystemMock) Exist

func (mock FileSystemMock) Exist(p0 string) (r0 bool)

Exist is a mock method.

func (FileSystemMock) GetWriteCloser

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

GetWriteCloser is a mock method.

func (FileSystemMock) Getwd

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

Getwd is a mock method.

func (FileSystemMock) MkdirAll

func (mock FileSystemMock) MkdirAll(p0 string) (r0 error)

MkdirAll is a mock method.

func (*FileSystemMock) SetFuncExist added in v0.5.0

func (mock *FileSystemMock) SetFuncExist(impl func(p0 string) (r0 bool)) *FileSystemMock

SetFuncExist sets a method and returns the mock.

func (*FileSystemMock) SetFuncGetWriteCloser added in v0.5.0

func (mock *FileSystemMock) SetFuncGetWriteCloser(impl func(p0 string) (r0 io.WriteCloser, r1 error)) *FileSystemMock

SetFuncGetWriteCloser sets a method and returns the mock.

func (*FileSystemMock) SetFuncGetwd added in v0.5.0

func (mock *FileSystemMock) SetFuncGetwd(impl func() (r0 string, r1 error)) *FileSystemMock

SetFuncGetwd sets a method and returns the mock.

func (*FileSystemMock) SetFuncMkdirAll added in v0.5.0

func (mock *FileSystemMock) SetFuncMkdirAll(impl func(p0 string) (r0 error)) *FileSystemMock

SetFuncMkdirAll sets a method and returns the mock.

func (*FileSystemMock) SetFuncWrite added in v0.5.0

func (mock *FileSystemMock) SetFuncWrite(impl func(p0 string, p1 []byte) (r0 error)) *FileSystemMock

SetFuncWrite sets a method and returns the mock.

func (*FileSystemMock) SetReturnExist added in v0.5.0

func (mock *FileSystemMock) SetReturnExist(r0 bool) *FileSystemMock

SetReturnExist sets a fake method.

func (*FileSystemMock) SetReturnGetWriteCloser added in v0.5.0

func (mock *FileSystemMock) SetReturnGetWriteCloser(r0 io.WriteCloser, r1 error) *FileSystemMock

SetReturnGetWriteCloser sets a fake method.

func (*FileSystemMock) SetReturnGetwd added in v0.5.0

func (mock *FileSystemMock) SetReturnGetwd(r0 string, r1 error) *FileSystemMock

SetReturnGetwd sets a fake method.

func (*FileSystemMock) SetReturnMkdirAll added in v0.5.0

func (mock *FileSystemMock) SetReturnMkdirAll(r0 error) *FileSystemMock

SetReturnMkdirAll sets a fake method.

func (*FileSystemMock) SetReturnWrite added in v0.5.0

func (mock *FileSystemMock) SetReturnWrite(r0 error) *FileSystemMock

SetReturnWrite sets a fake method.

func (FileSystemMock) Write

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

Write is a mock method.

type WriteCloserMock added in v0.3.0

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

WriteCloserMock is a mock.

func NewWriteCloserMock added in v0.3.0

func NewWriteCloserMock(t *testing.T, cb gomic.CallbackNotImplemented) *WriteCloserMock

NewWriteCloserMock returns WriteCloserMock .

func (WriteCloserMock) Close added in v0.3.0

func (mock WriteCloserMock) Close() (r0 error)

Close is a mock method.

func (*WriteCloserMock) SetFuncClose added in v0.5.0

func (mock *WriteCloserMock) SetFuncClose(impl func() (r0 error)) *WriteCloserMock

SetFuncClose sets a method and returns the mock.

func (*WriteCloserMock) SetFuncWrite added in v0.5.0

func (mock *WriteCloserMock) SetFuncWrite(impl func(p []byte) (n int, err error)) *WriteCloserMock

SetFuncWrite sets a method and returns the mock.

func (*WriteCloserMock) SetReturnClose added in v0.5.0

func (mock *WriteCloserMock) SetReturnClose(r0 error) *WriteCloserMock

SetReturnClose sets a fake method.

func (*WriteCloserMock) SetReturnWrite added in v0.5.0

func (mock *WriteCloserMock) SetReturnWrite(n int, err error) *WriteCloserMock

SetReturnWrite sets a fake method.

func (WriteCloserMock) Write added in v0.3.0

func (mock WriteCloserMock) Write(p []byte) (n int, err error)

Write is a mock method.

Jump to

Keyboard shortcuts

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