github.com/joomcode/pegomock@v2.9.2-0.20220414140958-14f53b6b2a6c+incompatible/matchers/send_chan_of_error.go (about) 1 // Code generated by pegomock. DO NOT EDIT. 2 package matchers 3 4 import ( 5 "github.com/petergtz/pegomock" 6 "reflect" 7 ) 8 9 func AnySendChanOfError() chan<- error { 10 pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(chan<- error))(nil)).Elem())) 11 var nullValue chan<- error 12 return nullValue 13 } 14 15 func EqSendChanOfError(value chan<- error) chan<- error { 16 pegomock.RegisterMatcher(&pegomock.EqMatcher{Value: value}) 17 var nullValue chan<- error 18 return nullValue 19 } 20 21 func NotEqSendChanOfError(value chan<- error) chan<- error { 22 pegomock.RegisterMatcher(&pegomock.NotEqMatcher{Value: value}) 23 var nullValue chan<- error 24 return nullValue 25 } 26 27 func SendChanOfErrorThat(matcher pegomock.ArgumentMatcher) chan<- error { 28 pegomock.RegisterMatcher(matcher) 29 var nullValue chan<- error 30 return nullValue 31 }