Files
atlantis/server/events/mocks/matchers/ptr_to_github_pullrequestevent.go
Luke Kysow d3ec832eff WIP
2018-06-21 18:18:54 +01:00

21 lines
569 B
Go

package matchers
import (
"reflect"
github "github.com/google/go-github/github"
"github.com/petergtz/pegomock"
)
func AnyPtrToGithubPullRequestEvent() *github.PullRequestEvent {
pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(*github.PullRequestEvent))(nil)).Elem()))
var nullValue *github.PullRequestEvent
return nullValue
}
func EqPtrToGithubPullRequestEvent(value *github.PullRequestEvent) *github.PullRequestEvent {
pegomock.RegisterMatcher(&pegomock.EqMatcher{Value: value})
var nullValue *github.PullRequestEvent
return nullValue
}