test

package
v0.11.9 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package test provides helper functions for tests.

Index

Constants

This section is empty.

Variables

View Source
var Headers = map[string]string{}

Functions

func DbCollections added in v0.11.0

func DbCollections(entityTypes []string) (*mongo.Client, map[string]*mongo.Collection, error)

func MakeHTTPRequest

func MakeHTTPRequest(httpVerb, url string, payload []byte, respStruct interface{}) (int, 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 is returned.

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