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
GetOrganizationID returns the organization to which this event's repository belongs to
func (*FakeEvent) GetProvider ¶ added in v0.8.0
GetProvider returns the name of the provider that created this event
func (*FakeEvent) Revision ¶ added in v0.8.0
func (e *FakeEvent) Revision() *lookout.CommitRevision
Revision 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
func (r *MockChangesService) GetChanges(ctx context.Context, req *lookout.ChangesRequest) (lookout.ChangeScanner, error)
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
func (r *MockFilesService) GetFiles(ctx context.Context, req *lookout.FilesRequest) (lookout.FileScanner, error)
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
Click to show internal directories.
Click to hide internal directories.