testutil

package
v0.0.0-...-050e4c4 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootstrapInvite

func BootstrapInvite(t *testing.T, fi server.Fire, email string)

func NewTestClient

func NewTestClient(t *testing.T, env *Env) *client.Client

func Seed

func Seed(b byte) *[32]byte

func TestAccount

func TestAccount(t *testing.T, cl *client.Client, emailer *TestEmailer, key *keys.EdX25519Key, email string, registerCode string, username string)

Types

type Env

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

func NewEnv

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

func NewEnvWithOptions

func NewEnvWithOptions(t *testing.T, opts *EnvOptions) (*Env, func())

func (*Env) SetEmailer

func (e *Env) SetEmailer(emailer server.Emailer)

func (*Env) SetProxy

func (e *Env) SetProxy(urs string, fn http.ProxyFn)

type EnvOptions

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

type TestEmailer

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

func NewTestEmailer

func NewTestEmailer() *TestEmailer

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