The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
woop/gomock_matchers/util.go

12 lines
185 B

package matchers
import (
"github.com/golang/mock/gomock"
)
func toMatcher(v interface{}) gomock.Matcher {
if m, ok := v.(gomock.Matcher); ok {
return m
}
return gomock.Eq(v)
}