aetestutil

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAndAssertHttpRequest

func CreateAndAssertHttpRequest(i aetest.Instance, t *testing.T, method, path string) (req *http.Request)

func CreateAndRegisterTestContext

func CreateAndRegisterTestContext(i aetest.Instance) (ctx context.Context, err error)

*

  • The Context returned from this function is registered with the current ContextProvider,
  • so calls to aeutil.UncurryWithContext will resolve to this context.

func CreateRegisterAndAssertTestContext

func CreateRegisterAndAssertTestContext(i aetest.Instance, t *testing.T) context.Context

func ExecuteAndAssertGet

func ExecuteAndAssertGet(i aetest.Instance, t *testing.T, path string) *http.Response

func ExecuteAndAssertPostWithBodyText

func ExecuteAndAssertPostWithBodyText(i aetest.Instance, t *testing.T, path string, body string) *http.Response

func ExecuteAndAssertPostWithFormValues

func ExecuteAndAssertPostWithFormValues(i aetest.Instance, t *testing.T, path string, formValues map[string]string) *http.Response

Types

This section is empty.

Jump to

Keyboard shortcuts

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