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

Method WillError

vm/vm_test.go:185–190  ·  view source on GitHub ↗
(param string)

Source from the content-addressed store, hash-verified

183}
184
185func (InnerEnv) WillError(param string) (bool, error) {
186 if param == "yes" {
187 return false, errors.New("inner error")
188 }
189 return true, nil
190}
191
192func TestRun_MethodWithError(t *testing.T) {
193 input := `WillError("yes")`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected