Documentation
¶
Overview ¶
Package testaccount gives tests an account to act for, inside their rolled-back transaction.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New creates an account in tx and returns ctx acting for it, with a savepoint of tx begun with that ctx: a bun.Tx hands its RunInTx functions the ctx it began with, so processes nested in a transaction keep the account. Its name is unique per run; no real password: hashing one would only slow the tests down.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.