fixture

package
v0.0.0-...-ec85eee Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSMSReconfirmation

func CreateSMSReconfirmation(t *testing.T, db model.Execer, smsReconfirmation *model.SmsReconfirmation, user *model.User) *model.SmsReconfirmation

CreateSMSReconfirmation creates sms reconfirmation fixture for test. SmsReconfirmation and user struct can be given to overwrite values.

func CreateTempUser

func CreateTempUser(t *testing.T, db model.Execer, phoneNumber string) *model.TempUser

CreateTempUser creates temporary user fixture for test. phone number can be given to overwrite values.

func CreateUser

func CreateUser(t *testing.T, db model.Execer, user *model.User) *model.User

CreateUser creates user fixture for test. User struct can be given to overwrite values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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