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.2.0
Published
Sep 18, 2018
Platform
windows/amd64
Imports
7 packages
Last checked
9 hours ago

Tools for package owners.