testutil

package
v0.0.0-...-d87a525 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountCreate

func AccountCreate(t *testing.T, env *Env, key *keys.EdX25519Key, email string)

AccountCreate creates an account.

func NewKeysPubClient

func NewKeysPubClient(t *testing.T, env *Env) *hclient.Client

NewKeysPubClient creates a test client.

func NewTestVault

func NewTestVault(t *testing.T, env *Env) (*vault.Vault, func())

func NewTestVaultWithSetup

func NewTestVaultWithSetup(t *testing.T, env *Env, password string, ck *api.Key) (*vault.Vault, func())

func NewVaultClient

func NewVaultClient(t *testing.T, env *Env) *vclient.Client

NewVaultClient creates a test client.

func Path

func Path() string

Path ...

func RegisterClient

func RegisterClient(t *testing.T, env *Env, key *keys.EdX25519Key, account *keys.EdX25519Key) *api.Key

RegisterClient registers a client key.

func Seed

func Seed(b byte) *[32]byte

Seed ...

Types

type Env

type Env struct {
	CloseFn func()
	// contains filtered or unexported fields
}

Env for testing.

func NewEnv

func NewEnv(t *testing.T, logLevel vault.LogLevel) *Env

NewEnv creates a test Env.

type TestEmailer

type TestEmailer struct {
	// contains filtered or unexported fields
}

TestEmailer ...

func NewTestEmailer

func NewTestEmailer() *TestEmailer

NewTestEmailer creates a test emailer.

func (*TestEmailer) SendVerificationEmail

func (t *TestEmailer) SendVerificationEmail(email string, code string) error

func (*TestEmailer) SentVerificationEmail

func (t *TestEmailer) SentVerificationEmail(email string) string

Jump to

Keyboard shortcuts

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