diff --git a/.gitignore b/.gitignore index a8b83fd..153ff95 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ mock_display_test.go -matchers debug.test .vscode *.coverprofile diff --git a/matchers/http_request.go b/matchers/http_request.go new file mode 100644 index 0000000..321ae82 --- /dev/null +++ b/matchers/http_request.go @@ -0,0 +1,20 @@ +// Code generated by pegomock. DO NOT EDIT. +package matchers + +import ( + "reflect" + "github.com/petergtz/pegomock" + http "net/http" +) + +func AnyHttpRequest() http.Request { + pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(http.Request))(nil)).Elem())) + var nullValue http.Request + return nullValue +} + +func EqHttpRequest(value http.Request) http.Request { + pegomock.RegisterMatcher(&pegomock.EqMatcher{Value: value}) + var nullValue http.Request + return nullValue +} diff --git a/matchers/io_readcloser.go b/matchers/io_readcloser.go new file mode 100644 index 0000000..23fd074 --- /dev/null +++ b/matchers/io_readcloser.go @@ -0,0 +1,20 @@ +// Code generated by pegomock. DO NOT EDIT. +package matchers + +import ( + "reflect" + "github.com/petergtz/pegomock" + io "io" +) + +func AnyIoReadCloser() io.ReadCloser { + pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(io.ReadCloser))(nil)).Elem())) + var nullValue io.ReadCloser + return nullValue +} + +func EqIoReadCloser(value io.ReadCloser) io.ReadCloser { + pegomock.RegisterMatcher(&pegomock.EqMatcher{Value: value}) + var nullValue io.ReadCloser + return nullValue +} diff --git a/matchers/map_of_string_to_http_request.go b/matchers/map_of_string_to_http_request.go new file mode 100644 index 0000000..d54bbf4 --- /dev/null +++ b/matchers/map_of_string_to_http_request.go @@ -0,0 +1,21 @@ +// Code generated by pegomock. DO NOT EDIT. +package matchers + +import ( + "reflect" + "github.com/petergtz/pegomock" + +http "net/http" +) + +func AnyMapOfStringToHttpRequest() map[string]http.Request { + pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(map[string]http.Request))(nil)).Elem())) + var nullValue map[string]http.Request + return nullValue +} + +func EqMapOfStringToHttpRequest(value map[string]http.Request) map[string]http.Request { + pegomock.RegisterMatcher(&pegomock.EqMatcher{Value: value}) + var nullValue map[string]http.Request + return nullValue +} diff --git a/matchers/map_of_string_to_interface.go b/matchers/map_of_string_to_interface.go new file mode 100644 index 0000000..b10e035 --- /dev/null +++ b/matchers/map_of_string_to_interface.go @@ -0,0 +1,21 @@ +// Code generated by pegomock. DO NOT EDIT. +package matchers + +import ( + "reflect" + "github.com/petergtz/pegomock" + + +) + +func AnyMapOfStringToInterface() map[string]interface{} { + pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(map[string]interface{}))(nil)).Elem())) + var nullValue map[string]interface{} + return nullValue +} + +func EqMapOfStringToInterface(value map[string]interface{}) map[string]interface{} { + pegomock.RegisterMatcher(&pegomock.EqMatcher{Value: value}) + var nullValue map[string]interface{} + return nullValue +} diff --git a/matchers/ptr_to_http_request.go b/matchers/ptr_to_http_request.go new file mode 100644 index 0000000..806038b --- /dev/null +++ b/matchers/ptr_to_http_request.go @@ -0,0 +1,20 @@ +// Code generated by pegomock. DO NOT EDIT. +package matchers + +import ( + "reflect" + "github.com/petergtz/pegomock" + http "net/http" +) + +func AnyPtrToHttpRequest() *http.Request { + pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(*http.Request))(nil)).Elem())) + var nullValue *http.Request + return nullValue +} + +func EqPtrToHttpRequest(value *http.Request) *http.Request { + pegomock.RegisterMatcher(&pegomock.EqMatcher{Value: value}) + var nullValue *http.Request + return nullValue +} diff --git a/matchers/recv_chan_of_string.go b/matchers/recv_chan_of_string.go new file mode 100644 index 0000000..f11adf8 --- /dev/null +++ b/matchers/recv_chan_of_string.go @@ -0,0 +1,20 @@ +// Code generated by pegomock. DO NOT EDIT. +package matchers + +import ( + "reflect" + "github.com/petergtz/pegomock" + +) + +func AnyRecvChanOfString() <-chan string { + pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(<-chan string))(nil)).Elem())) + var nullValue <-chan string + return nullValue +} + +func EqRecvChanOfString(value <-chan string) <-chan string { + pegomock.RegisterMatcher(&pegomock.EqMatcher{Value: value}) + var nullValue <-chan string + return nullValue +} diff --git a/matchers/send_chan_of_error.go b/matchers/send_chan_of_error.go new file mode 100644 index 0000000..bd1db67 --- /dev/null +++ b/matchers/send_chan_of_error.go @@ -0,0 +1,20 @@ +// Code generated by pegomock. DO NOT EDIT. +package matchers + +import ( + "reflect" + "github.com/petergtz/pegomock" + +) + +func AnySendChanOfError() chan<- error { + pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(chan<- error))(nil)).Elem())) + var nullValue chan<- error + return nullValue +} + +func EqSendChanOfError(value chan<- error) chan<- error { + pegomock.RegisterMatcher(&pegomock.EqMatcher{Value: value}) + var nullValue chan<- error + return nullValue +} diff --git a/matchers/slice_of_string.go b/matchers/slice_of_string.go new file mode 100644 index 0000000..96f9b24 --- /dev/null +++ b/matchers/slice_of_string.go @@ -0,0 +1,20 @@ +// Code generated by pegomock. DO NOT EDIT. +package matchers + +import ( + "reflect" + "github.com/petergtz/pegomock" + +) + +func AnySliceOfString() []string { + pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*([]string))(nil)).Elem())) + var nullValue []string + return nullValue +} + +func EqSliceOfString(value []string) []string { + pegomock.RegisterMatcher(&pegomock.EqMatcher{Value: value}) + var nullValue []string + return nullValue +} diff --git a/matchers/time_time.go b/matchers/time_time.go new file mode 100644 index 0000000..b08cb5e --- /dev/null +++ b/matchers/time_time.go @@ -0,0 +1,20 @@ +// Code generated by pegomock. DO NOT EDIT. +package matchers + +import ( + "reflect" + "github.com/petergtz/pegomock" + time "time" +) + +func AnyTimeTime() time.Time { + pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(time.Time))(nil)).Elem())) + var nullValue time.Time + return nullValue +} + +func EqTimeTime(value time.Time) time.Time { + pegomock.RegisterMatcher(&pegomock.EqMatcher{Value: value}) + var nullValue time.Time + return nullValue +}