mock

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2019 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 FakeEvent added in v0.8.0

type FakeEvent struct{}

FakeEvent is just an invalid event to be used for testing purposes.

func (*FakeEvent) GetOrganizationID added in v0.8.0

func (e *FakeEvent) GetOrganizationID() string

GetOrganizationID returns the organization to which this event's repository belongs to

func (*FakeEvent) GetProvider added in v0.8.0

func (e *FakeEvent) GetProvider() string

GetProvider returns the name of the provider that created this event

func (*FakeEvent) ID added in v0.8.0

func (e *FakeEvent) ID() lookout.EventID

ID honors the Event interface.

func (*FakeEvent) Revision added in v0.8.0

func (e *FakeEvent) Revision() *lookout.CommitRevision

Revision honors the Event interface.

func (*FakeEvent) Type added in v0.8.0

func (e *FakeEvent) Type() lookout.EventType

Type honors the Event interface.

func (*FakeEvent) Validate added in v0.8.0

func (e *FakeEvent) Validate() error

Validate honors the Event interface.

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