Files
Matthieu MORELandGitHub eec6f8526a chore: enable unused-parameter from revive (#21365)
* chore: enable unused-parameter from revive

Signed-off-by: Matthieu MOREL <[email protected]>

* apply recommandations

Signed-off-by: Matthieu MOREL <[email protected]>

---------

Signed-off-by: Matthieu MOREL <[email protected]>
2025-01-07 10:12:56 -05:00

24 lines
507 B
Go

package pull_request
import (
"context"
)
type FakeService struct {
listPullReuests []*PullRequest
listError error
}
var _ PullRequestService = (*FakeService)(nil)
func NewFakeService(_ context.Context, listPullReuests []*PullRequest, listError error) (PullRequestService, error) {
return &FakeService{
listPullReuests: listPullReuests,
listError: listError,
}, nil
}
func (g *FakeService) List(_ context.Context) ([]*PullRequest, error) {
return g.listPullReuests, g.listError
}