gaetesting

package
v0.0.0-...-d3da680 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 7

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL