mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-05 08:28:28 +00:00
21 lines
529 B
Go
21 lines
529 B
Go
package matchers
|
|
|
|
import (
|
|
"reflect"
|
|
|
|
github "github.com/google/go-github/github"
|
|
"github.com/petergtz/pegomock"
|
|
)
|
|
|
|
func AnyPtrToGithubPullRequest() *github.PullRequest {
|
|
pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(*github.PullRequest))(nil)).Elem()))
|
|
var nullValue *github.PullRequest
|
|
return nullValue
|
|
}
|
|
|
|
func EqPtrToGithubPullRequest(value *github.PullRequest) *github.PullRequest {
|
|
pegomock.RegisterMatcher(&pegomock.EqMatcher{Value: value})
|
|
var nullValue *github.PullRequest
|
|
return nullValue
|
|
}
|