(t *testing.T)
| 146 | } |
| 147 | |
| 148 | func TestInvalidFunction(t *testing.T) { |
| 149 | c := newFakeContext() |
| 150 | invalidFunc := Func("invalid", func() {}) |
| 151 | |
| 152 | if got, want := invalidFunc.Call(c.ctx), fmt.Errorf("delay: func is invalid: %s", errFirstArg); got.Error() != want.Error() { |
| 153 | t.Errorf("Incorrect error: got %q, want %q", got, want) |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | func TestVariadicFunctionArguments(t *testing.T) { |
| 158 | // Check the argument type validation for variadic functions. |
nothing calls this directly
no test coverage detected
searching dependent graphs…