(t testing.TB, dispatcher Dispatcher)
| 2684 | } |
| 2685 | |
| 2686 | func addFunctionBindings(t testing.TB, dispatcher Dispatcher) { |
| 2687 | funcs := stdlib.Functions() |
| 2688 | for _, fn := range funcs { |
| 2689 | bindings, err := fn.Bindings() |
| 2690 | if err != nil { |
| 2691 | t.Fatalf("fn.Bindings() failed for function %v. error: %v", fn.Name(), err) |
| 2692 | } |
| 2693 | err = dispatcher.Add(bindings...) |
| 2694 | if err != nil { |
| 2695 | t.Fatalf("dispatcher.Add() failed: %v", err) |
| 2696 | } |
| 2697 | } |
| 2698 | } |
| 2699 | |
| 2700 | func funcDecl(t testing.TB, name string, opts ...decls.FunctionOpt) *decls.FunctionDecl { |
| 2701 | t.Helper() |
no test coverage detected