testutil

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Alice           = testutil.Alice
	Bob             = testutil.Bob
	Mallory         = testutil.Mallory
	Service         = testutil.Service
	WebService      = testutil.WebService
	RandomBytes     = testutil.RandomBytes
	RandomDID       = testutil.RandomDID
	RandomMultihash = testutil.RandomMultihash
	RandomSigner    = testutil.RandomSigner
)

Functions

func CreateDynamo

func CreateDynamo(t *testing.T) *url.URL

func CreateS3

func CreateS3(t *testing.T) *url.URL

func IsDockerAvailable

func IsDockerAvailable(t testing.TB) bool

IsDockerAvailable returns true if the docker daemon is available, useful for skipping tests when docker isn't running

func IsRunningInCI

func IsRunningInCI(t testing.TB) bool

IsRunningInCI returns true of process is running in CI environment.

func Must

func Must[T any](val T, err error) func(*testing.T) T

func NewDynamoClient

func NewDynamoClient(t *testing.T, endpoint *url.URL) *dynamodb.Client

func NewS3Client

func NewS3Client(t *testing.T, endpoint *url.URL) *s3.Client

func RandomCID

func RandomCID(t *testing.T) cid.Cid

Types

This section is empty.

Jump to

Keyboard shortcuts

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