test_utils

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TestFunc         structureSpec.Function
	MockConfig       mocks.InjectConfig
	MockGlobalConfig mocks.InjectConfig
	ContextOptions   []context.Option

	TestHost = "ping.examples.tau.link"
	TestPath = "ping"

	Wd string
)

Functions

func AllBackends

func AllBackends(injectReader io.Reader) (cid string, simpleNode peer.Node, backends []vm.Backend, err error)

func Context

func Context() (vm.Context, error)

func DFSBackend

func DFSBackend() *testBackend

func HTTPBackend

func HTTPBackend() vm.Backend

func Loader

func Loader(injectReader io.Reader) (cid string, loader vm.Loader, resolver vm.Resolver, tns tns.MockedTns, simple peer.Node, err error)

func ResetVars

func ResetVars() (err error)

func Resolver

func Resolver(global bool) (tnsClient mocks.MockedTns, resolver vm.Resolver, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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