MustBeDBitArray attempts to retrieve a DBitArray from an Expr, panicking if the assertion fails.
(e Expr)
| 533 | // MustBeDBitArray attempts to retrieve a DBitArray from an Expr, panicking if the |
| 534 | // assertion fails. |
| 535 | func MustBeDBitArray(e Expr) *DBitArray { |
| 536 | b, ok := AsDBitArray(e) |
| 537 | if !ok { |
| 538 | panic(errors.AssertionFailedf("expected *DBitArray, found %T", e)) |
| 539 | } |
| 540 | return b |
| 541 | } |
| 542 | |
| 543 | // AsDBitArray attempts to retrieve a *DBitArray from an Expr, returning a *DBitArray and |
| 544 | // a flag signifying whether the assertion was successful. The function should |
nothing calls this directly
no test coverage detected
searching dependent graphs…