helpers

package
v0.0.0-...-718b68f Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertErrors

func AssertErrors(t *testing.T, expected string, err error)

AssertErrors checks and compares error with expected one.

func DBmock

func DBmock() (db *mongo.Database, purge func() error, err error)

DBmock gives dockerized test DB handle, with purge function requied to cleanup docker container after use.

func HashPassword

func HashPassword(pwd string) string

HashPassword hashes password by bcrypt.

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