Help us shape the future of Go! Take the 2026 Go Developer Survey

testutil

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package testutil provides internal test helpers, mock implementations, and fixture data for testing synapse-go packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FWSSAddressResolutionResultHex

func FWSSAddressResolutionResultHex(t testing.TB, c chain.Chain) string

FWSSAddressResolutionResultHex returns an ABI-encoded Multicall3 aggregate3 result for the FWSS address-resolution calls used by synapse.New tests.

func FWSSAddressResolutionResultHexFor

func FWSSAddressResolutionResultHexFor(t testing.TB, addresses chain.ContractAddresses, filBeamBeneficiary common.Address) string

FWSSAddressResolutionResultHexFor returns an ABI-encoded Multicall3 aggregate3 result for the supplied child-contract addresses.

func MulticallABI added in v0.6.2

func MulticallABI(t testing.TB) gethabi.ABI

MulticallABI returns the aggregate3 ABI for encoding and inspecting test RPCs.

func PieceCIDv2WithRawSize added in v0.6.0

func PieceCIDv2WithRawSize(t testing.TB, v1 cid.Cid, rawSize uint64) cid.Cid

PieceCIDv2WithRawSize returns a PieceCIDv2 for v1's root that encodes rawSize. Unlike the PieceCIDv2 constructors, it also encodes sizes below chain.MinUploadSize, which decoders accept but providers reject.

Types

This section is empty.

Jump to

Keyboard shortcuts

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