Documentation ¶
Index ¶
- func NewDB(t TestingT, dsn string) *bun.DB
- func NewPostgres(pool *dockertest.Pool, expSeconds uint) (*dockertest.Resource, *url.URL, error)
- type Fixture
- func (f *Fixture) Ennoblement(t TestingT, id string) domain.Ennoblement
- func (f *Fixture) Ennoblements(t TestingT, ids ...string) []domain.Ennoblement
- func (f *Fixture) Player(t TestingT, id string) domain.Player
- func (f *Fixture) PlayerSnapshot(t TestingT, id string) domain.PlayerSnapshot
- func (f *Fixture) PlayerSnapshots(t TestingT, ids ...string) []domain.PlayerSnapshot
- func (f *Fixture) Players(t TestingT, ids ...string) []domain.Player
- func (f *Fixture) Server(t TestingT, id string) domain.Server
- func (f *Fixture) Tribe(t TestingT, id string) domain.Tribe
- func (f *Fixture) TribeChange(t TestingT, id string) domain.TribeChange
- func (f *Fixture) TribeChanges(t TestingT, ids ...string) []domain.TribeChange
- func (f *Fixture) TribeSnapshot(t TestingT, id string) domain.TribeSnapshot
- func (f *Fixture) TribeSnapshots(t TestingT, ids ...string) []domain.TribeSnapshot
- func (f *Fixture) Tribes(t TestingT, ids ...string) []domain.Tribe
- func (f *Fixture) Village(t TestingT, id string) domain.Village
- func (f *Fixture) Villages(t TestingT, ids ...string) []domain.Village
- type TestingT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Fixture ¶
func NewFixture ¶
func (*Fixture) Ennoblement ¶
func (f *Fixture) Ennoblement(t TestingT, id string) domain.Ennoblement
func (*Fixture) Ennoblements ¶
func (f *Fixture) Ennoblements(t TestingT, ids ...string) []domain.Ennoblement
func (*Fixture) PlayerSnapshot ¶
func (f *Fixture) PlayerSnapshot(t TestingT, id string) domain.PlayerSnapshot
func (*Fixture) PlayerSnapshots ¶
func (f *Fixture) PlayerSnapshots(t TestingT, ids ...string) []domain.PlayerSnapshot
func (*Fixture) TribeChange ¶
func (f *Fixture) TribeChange(t TestingT, id string) domain.TribeChange
func (*Fixture) TribeChanges ¶
func (f *Fixture) TribeChanges(t TestingT, ids ...string) []domain.TribeChange
func (*Fixture) TribeSnapshot ¶
func (f *Fixture) TribeSnapshot(t TestingT, id string) domain.TribeSnapshot
func (*Fixture) TribeSnapshots ¶
func (f *Fixture) TribeSnapshots(t TestingT, ids ...string) []domain.TribeSnapshot
Click to show internal directories.
Click to hide internal directories.