MCPcopy Create free account
hub / github.com/golang/appengine / TestInvalidFunction

Function TestInvalidFunction

v2/delay/delay_test.go:148–155  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

146}
147
148func 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
157func TestVariadicFunctionArguments(t *testing.T) {
158 // Check the argument type validation for variadic functions.

Callers

nothing calls this directly

Calls 4

newFakeContextFunction · 0.70
FuncFunction · 0.70
CallMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…