test

package module
v0.0.0-...-1c07759 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Unlicense Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CadenceIntArrayContains

func CadenceIntArrayContains(t assert.TestingT, result cadence.Value, vals ...int)

func CadenceString

func CadenceString(value string) cadence.Value

CadenceString returns a string value from a string representation

func CadenceStringDictionary

func CadenceStringDictionary(pairs []cadence.KeyValuePair) cadence.Dictionary

func CadenceUFix64

func CadenceUFix64(value string) cadence.Value

CadenceUFix64 returns a UFix64 value

func DownloadFile

func DownloadFile(url string) ([]byte, error)

DownloadFile will download a url a byte slice

func ReadFile

func ReadFile(path string) []byte

ReadFile reads a file from the file system

func Submit

func Submit(
	t *testing.T,
	b *emulator.Blockchain,
	tx *flow.Transaction,
	shouldRevert bool,
)

Submit submits a transaction and checks if it fails or not.

func UInt32Array

func UInt32Array(values ...int) cadence.Array

func UInt64Array

func UInt64Array(values ...int) cadence.Array

func VariableArray

func VariableArray(cadenceType cadence.Type, values ...cadence.Value) cadence.Array

Types

type SetMetadata

type SetMetadata struct {
	// contains filtered or unexported fields
}

/ Used to verify set metadata in tests

Jump to

Keyboard shortcuts

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