testutils

package
v0.0.0-...-ca33a47 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2018 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeFirebaseTest

func InitializeFirebaseTest() (app *firebase.App)

InitializeFirebaseTest Normal firebase initialization for testing purposes, no auth token

func InitializeFirebaseTestCredFile

func InitializeFirebaseTestCredFile(credNotInFolder bool) (app *firebase.App)

InitializeFirebaseTestCredFile Firebase initialization with auth token to get past security checking, with flag to open Firebase file in different folder

func RetrieveFirebaseIDToken

func RetrieveFirebaseIDToken(app *firebase.App, uid string) (token string)

RetrieveFirebaseIDToken Firebase initialization with auth token to get past security checking

func TestRoute

func TestRoute(req *http.Request, r http.Handler, methodName string, t *testing.T, expectedReturnCode int) (parsedBody []byte)

TestRoute Helper function used to send a prepared request to the handler in tests

Types

This section is empty.

Jump to

Keyboard shortcuts

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