appenginegoogle.golang.org/appengine/internal/aetesting Index | Files

package aetesting

import "google.golang.org/appengine/internal/aetesting"

Package aetesting provides utilities for testing App Engine packages. This is not for testing user applications.

Index

Functions

func FakeSingleContext

func FakeSingleContext(t *testing.T, service, method string, f interface{}) context.Context

FakeSingleContext returns a context whose Call invocations will be serviced by f, which should be a function that has two arguments of the input and output protocol buffer type, and one error return.

Source Files

fake.go

Version
v1.6.5
Published
Oct 7, 2019
Platform
windows/amd64
Imports
7 packages
Last checked
9 hours ago

Tools for package owners.