helpers

package
v0.0.0-...-c3eb17d 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

This section is empty.

Variables

This section is empty.

Functions

func AssertErrorResponseBody

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

func CountEntries

func CountEntries(t *testing.T, db *gorm.DB, entryCount *int64)

func CountSecrets

func CountSecrets(t *testing.T, db *gorm.DB, secretCount *int64)

func CountUsers

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

func CountVaults

func CountVaults(t *testing.T, db *gorm.DB, vaultCount *int64)

func NewSlug

func NewSlug(t *testing.T) string

func QueryTestEntry

func QueryTestEntry(t *testing.T, db *gorm.DB, entry *models.Entry, title string)

func QueryTestEntryEager

func QueryTestEntryEager(t *testing.T, db *gorm.DB, entry *models.Entry, title string)

func QueryTestSecretByLabel

func QueryTestSecretByLabel(
	t *testing.T,
	db *gorm.DB,
	secret *models.Secret,
	secretLabel string,
)

func QueryTestSecretBySlug

func QueryTestSecretBySlug(
	t *testing.T,
	db *gorm.DB,
	secret *models.Secret,
	secretSlug string,
)

func QueryTestSecretsByEntry

func QueryTestSecretsByEntry(
	t *testing.T,
	db *gorm.DB,
	secrets *[]models.Secret,
	entrySlug string,
)

func QueryTestUser

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

func QueryTestVault

func QueryTestVault(t *testing.T, db *gorm.DB, vault *models.Vault, title string)

func QueryTestVaultEager

func QueryTestVaultEager(t *testing.T, db *gorm.DB, vault *models.Vault, title string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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