mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
* 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]>
24 lines
507 B
Go
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
|
|
}
|