Back to godoc.org

Package gaetesting

v0.0.0-...-1557bcf
Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module: github.com/luci/luci-go

Index

func TestingContext

func TestingContext() context.Context

TestingContext returns context with base services installed:

* go.chromium.org/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/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)
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier