resolveFunction performs the lookup the way an evaluation does: the activation which supplies the bindings is located once, then consulted by name.
(t *testing.T, vars Activation, name string)
| 215 | // resolveFunction performs the lookup the way an evaluation does: the activation which supplies |
| 216 | // the bindings is located once, then consulted by name. |
| 217 | func resolveFunction(t *testing.T, vars Activation, name string) (functions.LateBoundOp, bool) { |
| 218 | t.Helper() |
| 219 | fa, err := FindFunctionActivation(vars) |
| 220 | if err != nil { |
| 221 | t.Fatalf("FindFunctionActivation() failed: %v", err) |
| 222 | } |
| 223 | if fa == nil { |
| 224 | return nil, false |
| 225 | } |
| 226 | return fa.ResolveFunction(name) |
| 227 | } |
| 228 | |
| 229 | func TestFunctionActivationComposition(t *testing.T) { |
| 230 | tests := []struct { |
no test coverage detected