test

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package test provides helper functions for tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dump

func Dump(v interface{})

func InitJobs

func InitJobs(count int) map[string]proto.Job

InitJobs initializes some proto jobs.

func InitJobsWithSequenceRetry

func InitJobsWithSequenceRetry(jobCount int, sequenceRetryCount uint) map[string]proto.Job

InitJobs initializes some proto jobs.

func MakeHTTPRequest

func MakeHTTPRequest(httpVerb, url string, payload []byte, respStruct interface{}) (int, http.Header, error)

MakeHTTPRequest is a helper function for making an http request. The response body of the http request is unmarshalled into the struct pointed to by the respStruct argument (if it's not nil). The status code of the response and the response headers are returned.

func RandSeq

func RandSeq(n int) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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