MCPcopy Index your code
hub / github.com/expr-lang/expr / TestOperator_no_env

Function TestOperator_no_env

test/operator/operator_test.go:30–35  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

28}
29
30func TestOperator_no_env(t *testing.T) {
31 code := `Time == "2017-10-23"`
32 require.Panics(t, func() {
33 _, _ = expr.Compile(code, expr.Operator("==", "TimeEqualString"))
34 })
35}
36
37func TestOperator_interface(t *testing.T) {
38 env := mock.Env{}

Callers

nothing calls this directly

Calls 3

PanicsFunction · 0.92
CompileFunction · 0.92
OperatorFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…