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

Method WillError

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

Source from the content-addressed store, hash-verified

176type InnerEnv struct{}
177
178func (ErrorEnv) WillError(param string) (bool, error) {
179 if param == "yes" {
180 return false, errors.New("error")
181 }
182 return true, nil
183}
184
185func (InnerEnv) WillError(param string) (bool, error) {
186 if param == "yes" {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected