testidentity

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestCA

NewTestCA returns a ca with a default difficulty and concurrency for use in tests

func NewTestIdentity

func NewTestIdentity(ctx context.Context) (*identity.FullIdentity, error)

NewTestIdentity is a helper function to generate new node identities with correct difficulty and concurrency

func NewTestManageableFullIdentity

func NewTestManageableFullIdentity(ctx context.Context) (*identity.ManageableFullIdentity, error)

NewTestManageableFullIdentity returns a new manageable full identity for use in tests.

func NewTestManageablePeerIdentity

func NewTestManageablePeerIdentity(ctx context.Context) (*identity.ManageablePeerIdentity, error)

NewTestManageablePeerIdentity returns a new manageable peer identity for use in tests.

func RevocationDBsTest

func RevocationDBsTest(t *testing.T, test func(*testing.T, extensions.RevocationDB, storage.KeyValueStore))

RevocationDBsTest runs the passed test function with each type of revocation database.

Types

This section is empty.

Jump to

Keyboard shortcuts

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