(invoked: dict[str, Any])
| 219 | return customfunction.CustomFunction(signature, lambda *args: body) |
| 220 | |
| 221 | def decode_function_invocation(invoked: dict[str, Any]) -> Any: |
| 222 | if 'functionReference' in invoked: |
| 223 | func = lookup(invoked['functionReference'], 'function') |
| 224 | else: |
| 225 | func = apifunction.ApiFunction.lookup(invoked['functionName']) |
| 226 | if 'arguments' in invoked: |
| 227 | args = {key: decode_node(x) for key, x in invoked['arguments'].items()} |
| 228 | else: |
| 229 | args = {} |
| 230 | return _invocation(func, args) |
| 231 | |
| 232 | return lookup(json_obj['result'], 'result value') |
no test coverage detected