Documentation
¶
Index ¶
- type EventHandler
- type EventPublisher
- type NotificationPort
- type PRTrackingRepository
- func (_m *PRTrackingRepository) Clear() error
- func (_m *PRTrackingRepository) Fetch(prIdentifier pullrequest.PRIdentifier) (*pullrequest.PullRequest, error)
- func (_m *PRTrackingRepository) IsEmpty() bool
- func (_m *PRTrackingRepository) LoadAll() ([]*pullrequest.PullRequest, error)
- func (_m *PRTrackingRepository) Save(pullRequests []*pullrequest.PullRequest) error
- func (_m *PRTrackingRepository) Update(pullRequest *pullrequest.PullRequest) error
- type PullRequestRepository
- func (_m *PullRequestRepository) AuthenticatedUser() string
- func (_m *PullRequestRepository) FetchActivities(prs []*pullrequest.PullRequest, since time.Time) (map[string]pullrequest.PRActivityData, error)
- func (_m *PullRequestRepository) FetchPRStatus(owner string, repo string, number int) (pullrequest.PRStatus, error)
- func (_m *PullRequestRepository) FetchRequestedReviews() ([]*pullrequest.PullRequest, error)
- func (_m *PullRequestRepository) FetchUserCreated() ([]*pullrequest.PullRequest, error)
- type UIPort
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventHandler ¶
EventHandler is an autogenerated mock type for the EventHandler type
func NewEventHandler ¶
func NewEventHandler(t interface {
mock.TestingT
Cleanup(func())
}) *EventHandler
NewEventHandler creates a new instance of EventHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*EventHandler) Handle ¶
func (_m *EventHandler) Handle(ctx context.Context, event pullrequest.Event) error
Handle provides a mock function with given fields: ctx, event
type EventPublisher ¶
EventPublisher is an autogenerated mock type for the EventPublisher type
func NewEventPublisher ¶
func NewEventPublisher(t interface {
mock.TestingT
Cleanup(func())
}) *EventPublisher
NewEventPublisher creates a new instance of EventPublisher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*EventPublisher) Publish ¶
func (_m *EventPublisher) Publish(event pullrequest.Event) error
Publish provides a mock function with given fields: event
type NotificationPort ¶
NotificationPort is an autogenerated mock type for the NotificationPort type
func NewNotificationPort ¶
func NewNotificationPort(t interface {
mock.TestingT
Cleanup(func())
}) *NotificationPort
NewNotificationPort creates a new instance of NotificationPort. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*NotificationPort) NotifyMessage ¶
func (_m *NotificationPort) NotifyMessage(title string, message string) error
NotifyMessage provides a mock function with given fields: title, message
func (*NotificationPort) NotifyPullRequests ¶
func (_m *NotificationPort) NotifyPullRequests(notifications []*port.PRNotificationData) error
NotifyPullRequests provides a mock function with given fields: notifications
func (*NotificationPort) SupportsClickActions ¶
func (_m *NotificationPort) SupportsClickActions() bool
SupportsClickActions provides a mock function with no fields
type PRTrackingRepository ¶
PRTrackingRepository is an autogenerated mock type for the PRTrackingRepository type
func NewPRTrackingRepository ¶
func NewPRTrackingRepository(t interface {
mock.TestingT
Cleanup(func())
}) *PRTrackingRepository
NewPRTrackingRepository creates a new instance of PRTrackingRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*PRTrackingRepository) Clear ¶
func (_m *PRTrackingRepository) Clear() error
Clear provides a mock function with no fields
func (*PRTrackingRepository) Fetch ¶
func (_m *PRTrackingRepository) Fetch(prIdentifier pullrequest.PRIdentifier) (*pullrequest.PullRequest, error)
Fetch provides a mock function with given fields: prIdentifier
func (*PRTrackingRepository) IsEmpty ¶
func (_m *PRTrackingRepository) IsEmpty() bool
IsEmpty provides a mock function with no fields
func (*PRTrackingRepository) LoadAll ¶
func (_m *PRTrackingRepository) LoadAll() ([]*pullrequest.PullRequest, error)
LoadAll provides a mock function with no fields
func (*PRTrackingRepository) Save ¶
func (_m *PRTrackingRepository) Save(pullRequests []*pullrequest.PullRequest) error
Save provides a mock function with given fields: pullRequests
func (*PRTrackingRepository) Update ¶
func (_m *PRTrackingRepository) Update(pullRequest *pullrequest.PullRequest) error
Update provides a mock function with given fields: pullRequest
type PullRequestRepository ¶
PullRequestRepository is an autogenerated mock type for the PullRequestRepository type
func NewPullRequestRepository ¶
func NewPullRequestRepository(t interface {
mock.TestingT
Cleanup(func())
}) *PullRequestRepository
NewPullRequestRepository creates a new instance of PullRequestRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*PullRequestRepository) AuthenticatedUser ¶
func (_m *PullRequestRepository) AuthenticatedUser() string
AuthenticatedUser provides a mock function with no fields
func (*PullRequestRepository) FetchActivities ¶
func (_m *PullRequestRepository) FetchActivities(prs []*pullrequest.PullRequest, since time.Time) (map[string]pullrequest.PRActivityData, error)
FetchActivities provides a mock function with given fields: prs, since
func (*PullRequestRepository) FetchPRStatus ¶
func (_m *PullRequestRepository) FetchPRStatus(owner string, repo string, number int) (pullrequest.PRStatus, error)
FetchPRStatus provides a mock function with given fields: owner, repo, number
func (*PullRequestRepository) FetchRequestedReviews ¶
func (_m *PullRequestRepository) FetchRequestedReviews() ([]*pullrequest.PullRequest, error)
FetchRequestedReviews provides a mock function with no fields
func (*PullRequestRepository) FetchUserCreated ¶
func (_m *PullRequestRepository) FetchUserCreated() ([]*pullrequest.PullRequest, error)
FetchUserCreated provides a mock function with no fields
type UIPort ¶
UIPort is an autogenerated mock type for the UIPort type
func NewUIPort ¶
NewUIPort creates a new instance of UIPort. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*UIPort) UpdateDisplay ¶
func (_m *UIPort) UpdateDisplay(requestedReviewPRs []*pullrequest.PullRequest, userCreatedPRs []*pullrequest.PullRequest, trackingRepo pullrequest.PRTrackingRepository)
UpdateDisplay provides a mock function with given fields: requestedReviewPRs, userCreatedPRs, trackingRepo