MCPcopy Create free account
hub / github.com/expr-lang/expr / TestExpr_crash_with_zero

Function TestExpr_crash_with_zero

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

Source from the content-addressed store, hash-verified

2714}
2715
2716func TestExpr_crash_with_zero(t *testing.T) {
2717 code := "if\x00"
2718 _, err := expr.Compile(code)
2719 require.Error(t, err)
2720}
2721
2722func TestExpr_nil_op_str(t *testing.T) {
2723 // Let's test operators, which do `.(string)` in VM, also check for nil.

Callers

nothing calls this directly

Calls 2

CompileFunction · 0.92
ErrorFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…