test

package
v0.0.0-...-6f32bdd Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenName

func GenName() string

* Description: This function creates a random username based on the seed. * @dev Return a random name generated by the package namegenerator. * @return value of 'string'

func GenNetAndSync

func GenNetAndSync(runenv *runtime.RunEnv, ctxBackground context.Context) error

* Description: This function creates network an sync environment for the test. * Where it first sets up the envinronment for syncing for the test nodes. * Then it generates the network with a bandwidth of 4913 bit and initalizes it * through the runenv variable which is a pointer. * @dev Return nothing. * @return value of 'nothing'

func GenSeed

func GenSeed() int64

* Description: This function creates a seed value which is random * in the form of a integer 64 bytes. * @dev Return a random seed of 64 Bytes . * @return value of 'integer 64 bytes'

func PubsubTrace

func PubsubTrace(ctxBackground context.Context, host host.Host) (*pubsub.RemoteTracer, error)

* Description: This function creates a remote tracer to the given multi-address. * It needs to be set to an address that can rescive the remote traces. * @dev Return a struct for a remote tracer and nil or error message on failure. * @return value of 'pointer to a RemoteTracer and error'

Types

This section is empty.

Jump to

Keyboard shortcuts

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