Documentation ¶
Index ¶
- func AccountCreate(t *testing.T, env *Env, key *keys.EdX25519Key, email string)
- func NewKeysPubClient(t *testing.T, env *Env) *hclient.Client
- func NewTestVault(t *testing.T, env *Env) (*vault.Vault, func())
- func NewTestVaultWithSetup(t *testing.T, env *Env, password string, ck *api.Key) (*vault.Vault, func())
- func NewVaultClient(t *testing.T, env *Env) *vclient.Client
- func Path() string
- func RegisterClient(t *testing.T, env *Env, key *keys.EdX25519Key, account *keys.EdX25519Key) *api.Key
- func Seed(b byte) *[32]byte
- type Env
- type TestEmailer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountCreate ¶
AccountCreate creates an account.
func NewKeysPubClient ¶
NewKeysPubClient creates a test client.
func NewTestVaultWithSetup ¶
func NewVaultClient ¶
NewVaultClient creates a test client.
func RegisterClient ¶
func RegisterClient(t *testing.T, env *Env, key *keys.EdX25519Key, account *keys.EdX25519Key) *api.Key
RegisterClient registers a client key.
Types ¶
type Env ¶
type Env struct { CloseFn func() // contains filtered or unexported fields }
Env for testing.
type TestEmailer ¶
type TestEmailer struct {
// contains filtered or unexported fields
}
TestEmailer ...
func (*TestEmailer) SendVerificationEmail ¶
func (t *TestEmailer) SendVerificationEmail(email string, code string) error
func (*TestEmailer) SentVerificationEmail ¶
func (t *TestEmailer) SentVerificationEmail(email string) string
Click to show internal directories.
Click to hide internal directories.