helpers

package
v0.0.0-...-0ac2d30 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CLIENT_IP string = "127.0.0.2"
	VALID_PW  string = "7h3Val!dPA5SWoRD"
)

Variables

This section is empty.

Functions

func AssertErrorResponseBody

func AssertErrorResponseBody(
	t *testing.T,
	resp *http.Response,
	expected *utils.ErrorResponseBody,
)

func AssertLog

func AssertLog(t *testing.T, expected *models.Log, actual *models.Log)

func CountClientSessions

func CountClientSessions(t *testing.T, db *gorm.DB, sessionCount *int64)

func CountLogs

func CountLogs(t *testing.T, db *gorm.DB, logCount *int64)

func CountUsers

func CountUsers(t *testing.T, db *gorm.DB, userCount *int64)

func NewSlug

func NewSlug(t *testing.T) string

func QueryTestClientSessionLatest

func QueryTestClientSessionLatest(t *testing.T, db *gorm.DB, session *models.ClientSession)

func QueryTestLogLatest

func QueryTestLogLatest(t *testing.T, db *gorm.DB, log *models.Log)

func QueryTestUserByEmail

func QueryTestUserByEmail(t *testing.T, db *gorm.DB, user *models.User, email string)

func QueryTestUserBySlug

func QueryTestUserBySlug(t *testing.T, db *gorm.DB, user *models.User, slug string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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