mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventHandler

type EventHandler struct {
	mock.Mock
}

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

type EventPublisher struct {
	mock.Mock
}

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

type NotificationPort struct {
	mock.Mock
}

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

type PRTrackingRepository struct {
	mock.Mock
}

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

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

type PullRequestRepository struct {
	mock.Mock
}

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

type UIPort struct {
	mock.Mock
}

UIPort is an autogenerated mock type for the UIPort type

func NewUIPort

func NewUIPort(t interface {
	mock.TestingT
	Cleanup(func())
}) *UIPort

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

Jump to

Keyboard shortcuts

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