triciumtest

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Overview

Package triciumtest implements common testing functionality for the Tricium service modules.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Context

func Context() context.Context

Context generates a context with queues and clock for testing.

func MakeGetRequest

func MakeGetRequest(data []byte) *http.Request

MakeGetRequest builds a basic http.Request with the given body. Body can be nil if it doesn't matter.

func MakeParams

func MakeParams(items ...string) httprouter.Params

MakeParams builds and returns params, which can be used as part of router.Context passed to handler methods.

Types

This section is empty.

Jump to

Keyboard shortcuts

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