MustBeDArray attempts to retrieve a *DArray from an Expr, panicking if the assertion fails.
(e Expr)
| 5009 | // MustBeDArray attempts to retrieve a *DArray from an Expr, panicking if the |
| 5010 | // assertion fails. |
| 5011 | func MustBeDArray(e Expr) *DArray { |
| 5012 | i, ok := AsDArray(e) |
| 5013 | if !ok { |
| 5014 | panic(errors.AssertionFailedf("expected *DArray, found %T", e)) |
| 5015 | } |
| 5016 | return i |
| 5017 | } |
| 5018 | |
| 5019 | // MaybeSetCustomOid checks whether t has a special oid that we want to set into |
| 5020 | // d. Must be kept in sync with DArray.ResolvedType. Returns an error if t is |
no test coverage detected
searching dependent graphs…