(expr Expr, want, got *types.T)
| 234 | } |
| 235 | |
| 236 | func unexpectedTypeError(expr Expr, want, got *types.T) error { |
| 237 | return pgerror.Newf(pgcode.InvalidParameterValue, |
| 238 | "expected %s to be of type %s, found type %s", expr, errors.Safe(want), errors.Safe(got)) |
| 239 | } |
| 240 | |
| 241 | func decorateTypeCheckError(err error, format string, a ...interface{}) error { |
| 242 | if !errors.HasType(err, (*placeholderTypeAmbiguityErr)(nil)) { |
no test coverage detected