Documentation
¶
Index ¶
- func BuildAccount() *app.Account
- func BuildApp() *app.App
- func BuildInstall() *app.Install
- func BuildOrg() *app.Org
- type Params
- type Seeder
- func (s *Seeder) CreateAccount(ctx context.Context, t *testing.T) *app.Account
- func (s *Seeder) CreateApp(ctx context.Context, t *testing.T) *app.App
- func (s *Seeder) CreateInstall(ctx context.Context, t *testing.T) *app.Install
- func (s *Seeder) CreateOrg(ctx context.Context, t *testing.T) *app.Org
- func (s *Seeder) EnsureAccount(ctx context.Context, t *testing.T) (context.Context, *app.Account)
- func (s *Seeder) EnsureOrg(ctx context.Context, t *testing.T) (context.Context, *app.Org)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAccount ¶
BuildAccount creates an app.Account with fake defaults.
func BuildInstall ¶
BuildInstall creates an app.Install with fake defaults.
Types ¶
type Seeder ¶
type Seeder struct {
// contains filtered or unexported fields
}
func (*Seeder) CreateAccount ¶
CreateAccount builds and persists an account to the database.
func (*Seeder) CreateApp ¶
CreateApp builds and persists an app to the database. Uses org/account from context if available.
func (*Seeder) CreateInstall ¶
CreateInstall builds and persists an install to the database. Uses org/account from context if available.
func (*Seeder) CreateOrg ¶
CreateOrg builds and persists an org to the database. Uses account from context if available for CreatedByID.
func (*Seeder) EnsureAccount ¶
EnsureAccount creates a test account and sets its ID in the context via cctx.SetAccountIDContext.
Click to show internal directories.
Click to hide internal directories.