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

21 lines
550 B
Go

package matchers
import (
"reflect"
"github.com/petergtz/pegomock"
events "github.com/runatlantis/atlantis/server/events"
)
func AnyPtrToEventsCommand() *events.CommentCommand {
pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(*events.CommentCommand))(nil)).Elem()))
var nullValue *events.CommentCommand
return nullValue
}
func EqPtrToEventsCommand(value *events.CommentCommand) *events.CommentCommand {
pegomock.RegisterMatcher(&pegomock.EqMatcher{Value: value})
var nullValue *events.CommentCommand
return nullValue
}