gae: go.chromium.org/gae/impl/dummy Index | Files

package dummy

import "go.chromium.org/gae/impl/dummy"

Package dummy provides panicking dummy implementations of all service Interfaces.

In particular, this includes:

* datastore.Interface
* memcache.Interface
* taskqueue.Interface
* info.Interface
* module.Interface

These dummy implementations panic with an appropriate error message when any of their methods are called. The message looks something like:

dummy: method Interface.Method is not implemented

The dummy implementations are useful when implementing the interfaces themselves, or when implementing filters, since it allows your stub implementation to embed the dummy version and then just implement the methods that you care about.

Index

Package Files

doc.go dummy.go

func Datastore Uses

func Datastore() datastore.RawInterface

Datastore returns a dummy datastore.RawInterface implementation suitable for embedding. Every method panics with a message containing the name of the method which was unimplemented.

func Info Uses

func Info() info.RawInterface

Info returns a dummy info.RawInterface implementation suitable for embedding. Every method panics with a message containing the name of the method which was unimplemented.

func Mail Uses

func Mail() mail.RawInterface

Mail returns a dummy mail.Interface implementation suitable for embedding. Every method panics with a message containing the name of the method which was unimplemented.

func Memcache Uses

func Memcache() memcache.RawInterface

Memcache returns a dummy memcache.RawInterface implementation suitable for embedding. Every method panics with a message containing the name of the method which was unimplemented.

func Module Uses

func Module() module.RawInterface

Module returns a dummy module.Interface implementation suitable for embedding. Every method panics with a message containing the name of the method which was unimplemented.

func TaskQueue Uses

func TaskQueue() taskqueue.RawInterface

TaskQueue returns a dummy taskqueue.RawInterface implementation suitable for embedding. Every method panics with a message containing the name of the method which was unimplemented.

func User Uses

func User() user.RawInterface

User returns a dummy user.Interface implementation suitable for embedding. Every method panics with a message containing the name of the method which was unimplemented.

Package dummy imports 12 packages (graph) and is imported by 6 packages. Updated 2018-09-29. Refresh now. Tools for package owners.