(service, method string, _, _ appengine_internal.ProtoMessage, _ *appengine_internal.CallOptions)
| 77 | |
| 78 | func (t *testingContext) FullyQualifiedAppID() string { return "dev~testcontext" } |
| 79 | func (t *testingContext) Call(service, method string, _, _ appengine_internal.ProtoMessage, _ *appengine_internal.CallOptions) error { |
| 80 | if service == "__go__" && method == "GetNamespace" { |
| 81 | return nil |
| 82 | } |
| 83 | return fmt.Errorf("testingContext: unsupported Call") |
| 84 | } |
| 85 | func (t *testingContext) Request() interface{} { return t.req } |
| 86 | |
| 87 | func ContextForTesting(req *http.Request) context.Context { |
no outgoing calls
no test coverage detected