Documentation ¶
Overview ¶
Package appenginetesting provides an appengine.Context for testing.
Index ¶
- Constants
- Variables
- type Context
- func (c *Context) AppID() string
- func (c *Context) Call(service, method string, in, out proto.Message, ...) error
- func (c *Context) Close()
- func (c *Context) Criticalf(format string, args ...interface{})
- func (c *Context) Debugf(format string, args ...interface{})
- func (c *Context) Errorf(format string, args ...interface{})
- func (c *Context) FullyQualifiedAppID() string
- func (c *Context) Infof(format string, args ...interface{})
- func (c *Context) Request() interface{}
- func (c *Context) Warningf(format string, args ...interface{})
- type ContextRecorder
- type Options
Constants ¶
View Source
const DefaultAPIVersion = "go1"
Default API Version
Variables ¶
View Source
var APIVersion = DefaultAPIVersion
API version of golang. It is used for app.yaml of dev_server setting.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context implements appengine.Context by running a dev_appserver.py process as a child and proxying all Context calls to the child. Use NewContext to create one.
func NewContext ¶
NewContext returns a new AppEngine context with an empty datastore, etc. A nil Options is valid and means to use the default values.
func (*Context) Call ¶
func (c *Context) Call(service, method string, in, out proto.Message, opts *appengine_internal.CallOptions) error
func (*Context) Close ¶
func (c *Context) Close()
Close kills the child dev_appserver.py process, releasing its resources.
Close is not part of the appengine.Context interface.
func (*Context) FullyQualifiedAppID ¶
type ContextRecorder ¶
type ContextRecorder struct {
// contains filtered or unexported fields
}
func NewContextRecorder ¶
func NewContextRecorder(opts *Options) *ContextRecorder
func (*ContextRecorder) Context ¶
func (r *ContextRecorder) Context() *Context
Click to show internal directories.
Click to hide internal directories.