mocks

package
v0.0.0-...-6ad1837 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2020 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 Listener

type Listener interface {
	Accept() (net.Conn, error)
	Close() error
	Addr() net.Addr
}

Listener is a copy of net/http.Listener to generate a mock implementation.

type MockFileInfo

type MockFileInfo struct {
	// Namei holds name.
	Namei string

	// Sizei holds size.
	Sizei int64

	// Modei holds mode.
	Modei os.FileMode

	// ModTimei holds modtime.
	ModTimei time.Time

	// IsDiri holds isdir.
	IsDiri bool

	// Sysi holds sys.
	Sysi interface{}
}

MockFileInfo implements os.FileInfo.

func (*MockFileInfo) IsDir

func (m *MockFileInfo) IsDir() bool

IsDir returns IsDiri.

func (*MockFileInfo) ModTime

func (m *MockFileInfo) ModTime() time.Time

ModTime returns ModTimei.

func (*MockFileInfo) Mode

func (m *MockFileInfo) Mode() os.FileMode

Mode returns Modei.

func (*MockFileInfo) Name

func (m *MockFileInfo) Name() string

Name returns Namei.

func (*MockFileInfo) Size

func (m *MockFileInfo) Size() int64

Size returns Sizei.

func (*MockFileInfo) Sys

func (m *MockFileInfo) Sys() interface{}

Sys returns Sysi.

Directories

Path Synopsis
gen
pkg/cage
Package cage is a generated GoMock package.
Package cage is a generated GoMock package.
pkg/grpc
Package grpc is a generated GoMock package.
Package grpc is a generated GoMock package.
pkg/http
Package http is a generated GoMock package.
Package http is a generated GoMock package.
pkg/services/file
Package file is a generated GoMock package.
Package file is a generated GoMock package.
pkg/services/program
Package program is a generated GoMock package.
Package program is a generated GoMock package.
test/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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