Documentation

Overview

Package gaetesting is DEPRECATED.

Deprecated: mock only specific dependencies your test depends on instead of trying to mock everything at once.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestingContext

func TestingContext() context.Context

TestingContext returns context with base services installed:

* go.chromium.org/luci/gae/impl/memory (in-memory appengine services)
* go.chromium.org/luci/server/caching (access to process cache)
* go.chromium.org/luci/server/secrets/testsecrets (access to fake secret keys)

func TestingContextWithAppID

func TestingContextWithAppID(appID string) context.Context

TestingContextWithAppID returns context with the specified App ID and base services installed:

* go.chromium.org/luci/gae/impl/memory (in-memory appengine services)
* go.chromium.org/luci/server/caching (access to process cache)
* go.chromium.org/luci/server/secrets/testsecrets (access to fake secret keys)

Types

This section is empty.

Source Files