mock

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2018 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockChangesService added in v0.1.0

type MockChangesService struct {
	T               *testing.T
	ExpectedRequest *lookout.ChangesRequest
	ChangeScanner   lookout.ChangeScanner
	Error           error
	ModifyReq       func(req *lookout.ChangesRequest)
}

func (*MockChangesService) GetChanges added in v0.1.0

type MockFilesService added in v0.1.0

type MockFilesService struct {
	T               *testing.T
	ExpectedRequest *lookout.FilesRequest
	FileScanner     lookout.FileScanner
	Error           error
	ModifyReq       func(req *lookout.FilesRequest)
}

func (*MockFilesService) GetFiles added in v0.1.0

type SliceChangeScanner

type SliceChangeScanner struct {
	Changes    []*lookout.Change
	Error      error
	ChangeTick chan struct{}
	// contains filtered or unexported fields
}

func (*SliceChangeScanner) Change

func (s *SliceChangeScanner) Change() *lookout.Change

func (*SliceChangeScanner) Close

func (s *SliceChangeScanner) Close() error

func (*SliceChangeScanner) Err

func (s *SliceChangeScanner) Err() error

func (*SliceChangeScanner) Next

func (s *SliceChangeScanner) Next() bool

type SliceFileScanner

type SliceFileScanner struct {
	Files    []*lookout.File
	Error    error
	FileTick chan struct{}
	// contains filtered or unexported fields
}

func (*SliceFileScanner) Close

func (s *SliceFileScanner) Close() error

func (*SliceFileScanner) Err

func (s *SliceFileScanner) Err() error

func (*SliceFileScanner) File

func (s *SliceFileScanner) File() *lookout.File

func (*SliceFileScanner) Next

func (s *SliceFileScanner) Next() bool

Jump to

Keyboard shortcuts

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