You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting up mocks for functions with name _, xgo fails with this message.
The function is from GOROOT/src/crypto/tls/common_string.go:
func_() {
// An "invalid array index" compiler error signifies that the constant values have changed.// Re-run the stringer command to generate them again.varx [1]struct{}
_=x[CurveP256-23]
_=x[CurveP384-24]
_=x[CurveP521-25]
_=x[X25519-29]
}
It seems that func name _ is a special placeholder, which can never be called. So it is reasonable to skip trapping these functions.
The text was updated successfully, but these errors were encountered:
When setting up mocks for functions with name
_
, xgo fails with this message.The function is from
GOROOT/src/crypto/tls/common_string.go
:It seems that func name
_
is a special placeholder, which can never be called. So it is reasonable to skip trapping these functions.The text was updated successfully, but these errors were encountered: