MCPcopy
hub / github.com/expr-lang/expr / TestConstExpr_error_no_env

Function TestConstExpr_error_no_env

expr_test.go:1715–1722  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1713}
1714
1715func TestConstExpr_error_no_env(t *testing.T) {
1716 assert.Panics(t, func() {
1717 _, _ = expr.Compile(
1718 `1 + divide(1, 0)`,
1719 expr.ConstExpr("divide"),
1720 )
1721 })
1722}
1723
1724var stringer = reflect.TypeOf((*fmt.Stringer)(nil)).Elem()
1725

Callers

nothing calls this directly

Calls 3

PanicsFunction · 0.92
CompileFunction · 0.92
ConstExprFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…