test_utils

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: BSD-3-Clause Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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(ctx context.Context, injectReader io.Reader) (cid string, simpleNode peer.Node, backends []vm.Backend, err error)

func Context

func Context() (vm.Context, error)

func DFSBackend

func DFSBackend(ctx context.Context) *testBackend

func DFSBackendWithNode

func DFSBackendWithNode(ctx context.Context) *testBackend

func HTTPBackend

func HTTPBackend() vm.Backend

func Loader

func Loader(ctx context.Context, 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