testutil

package
v0.1.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateReceipt

func CreateReceipt(t *testing.T, ctx context.Context, client *ent.Client, b ent.Block, destChainID uint64, offset uint64) *ent.Receipt

func CreateTestBlock

func CreateTestBlock(t *testing.T, ctx context.Context, client *ent.Client, height, offset uint64, ts time.Time) ent.Block

func CreateTestBlocks

func CreateTestBlocks(t *testing.T, ctx context.Context, client *ent.Client, count uint64) []ent.Block

CreateTestBlocks creates n test blocks with n messages and n-1 receipts.

func CreateTestChain

func CreateTestChain(t *testing.T, ctx context.Context, client *ent.Client, chainID uint64) ent.Chain

func CreateTestEntClient

func CreateTestEntClient(t *testing.T) *ent.Client

func CreateXMsg

func CreateXMsg(t *testing.T, ctx context.Context, client *ent.Client, b ent.Block, destChainID uint64, streamOffset uint64) *ent.Msg

Types

This section is empty.

Jump to

Keyboard shortcuts

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