daltest

package
v0.0.0-...-7c6c014 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHashBytes

func GetHashBytes(t *testing.T, hashString string) []byte

GetHashBytes creates a byte array from a hash string.

func InitTestDB

func InitTestDB(t *testing.T) *dal.DB

InitTestDB initializes an in-memory database for testing purposes.

func PopulateBitcoinTxs

func PopulateBitcoinTxs(t *testing.T, db *dal.DB) []dal.BitcoinTx

PopulateBitcoinTxs inserts a set of predefined BitcoinTxs into the database.

func PopulateDB

func PopulateDB(t *testing.T, db *dal.DB)

PopulateDB inserts a set of predefined data to all the tables.

func PopulateIkaTxs

func PopulateIkaTxs(t *testing.T, db *dal.DB) []dal.IkaTx

PopulateIkaTxs inserts a set of predefined IkaTxs into the database.

func PopulateSignRequests

func PopulateSignRequests(t *testing.T, db *dal.DB) []dal.IkaSignRequest

PopulateSignRequests inserts a set of predefined IkaSignRequest into the database.

Types

This section is empty.

Jump to

Keyboard shortcuts

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