testutil

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: MIT Imports: 3 Imported by: 42 modules, 36 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.

README

DEPRECATION NOTICE

This package has moved into go-libp2p-testing as a sub-package, github.com/libp2p/go-libp2p-testing/netutil.

go-libp2p-netutil

codecov Travis CI Discourse posts

Utility methods for creating public and private keys for use in tests.


The last gx published version of this module was: 0.4.23: QmQzyPDx8rLqJ5evnHAo4Mpbsb64RKGZzLABzsbXQM6a2j

Documentation

Overview

Deprecated: This package was moved to github.com/libp2p/go-libp2p-testing/netutil

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandTestBogusIdentity deprecated

func RandTestBogusIdentity() (tnet.Identity, error)

Deprecated: use the corresponding function in github.com/libp2p/go-libp2p-testing/netutil.

func RandTestBogusIdentityOrFatal deprecated

func RandTestBogusIdentityOrFatal(t *testing.T) tnet.Identity

Deprecated: use the corresponding function in github.com/libp2p/go-libp2p-testing/netutil.

Types

type TestBogusPrivateKey

type TestBogusPrivateKey = netutil.TestBogusPrivateKey

TestBogusPrivateKey is a key used for testing (to avoid expensive keygen) Deprecated: use the corresponding type in github.com/libp2p/go-libp2p-testing/netutil.

func RandTestBogusPrivateKey deprecated

func RandTestBogusPrivateKey() (TestBogusPrivateKey, error)

Deprecated: use the corresponding function in github.com/libp2p/go-libp2p-testing/netutil.

func RandTestBogusPrivateKeyOrFatal deprecated

func RandTestBogusPrivateKeyOrFatal(t *testing.T) TestBogusPrivateKey

Deprecated: use the corresponding function in github.com/libp2p/go-libp2p-testing/netutil.

type TestBogusPublicKey

type TestBogusPublicKey = netutil.TestBogusPublicKey

TestBogusPublicKey is a key used for testing (to avoid expensive keygen) Deprecated: use the corresponding type in github.com/libp2p/go-libp2p-testing/netutil.

func RandTestBogusPublicKey deprecated

func RandTestBogusPublicKey() (TestBogusPublicKey, error)

Deprecated: use the corresponding function in github.com/libp2p/go-libp2p-testing/netutil.

func RandTestBogusPublicKeyOrFatal deprecated

func RandTestBogusPublicKeyOrFatal(t *testing.T) TestBogusPublicKey

Deprecated: use the corresponding function in github.com/libp2p/go-libp2p-testing/netutil.

Jump to

Keyboard shortcuts

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