test_helpers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanUpDB

func CleanUpDB(db *gorm.DB)

func CreateTestWebPage

func CreateTestWebPage() error

func DeleteCryptoByWebPageId

func DeleteCryptoByWebPageId(db *gorm.DB, webPageId int)

func DeletePhoneNumbersByCountryCode

func DeletePhoneNumbersByCountryCode(db *gorm.DB, countryCode string)

func GetCrypto

func GetCrypto(db *gorm.DB, webPageID int) ([]models.Crypto, error)

func GetPhoneNumbers

func GetPhoneNumbers(db *gorm.DB, webPageID int) ([]models.PhoneNumber, error)

func InitDB

func InitDB() *gorm.DB

InitDB is only meant for testing

func InitTestConfig

func InitTestConfig() error

func PreloadWebPage

func PreloadWebPage(db *gorm.DB, webPageID int) (*models.WebPage, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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