testutil

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package factory contains factories for creating test objects in the repository

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TruncateTables

func TruncateTables(db *sql.DB)

TruncateTables will purge data from all tables. This is meant for tests.

Types

type CharacterSectionStatusParams

type CharacterSectionStatusParams struct {
	CharacterID  int32
	Section      app.CharacterSection
	ErrorMessage string
	CompletedAt  time.Time
	StartedAt    time.Time
	Data         any
}

type Factory

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

func New

func New() (*sql.DB, *storage.Storage, Factory)

func NewFactory

func NewFactory(st *storage.Storage, db *sql.DB) Factory

func (Factory) CreateCharacter

func (f Factory) CreateCharacter(args ...storage.UpdateOrCreateCharacterParams) *app.Character

func (Factory) CreateCharacterAsset

func (f Factory) CreateCharacterAsset(args ...storage.CreateCharacterAssetParams) *app.CharacterAsset

func (Factory) CreateCharacterAttributes

func (f Factory) CreateCharacterAttributes(args ...storage.UpdateOrCreateCharacterAttributesParams) *app.CharacterAttributes

func (Factory) CreateCharacterImplant

func (f Factory) CreateCharacterImplant(args ...storage.CreateCharacterImplantParams) *app.CharacterImplant

func (Factory) CreateCharacterJumpClone

func (f Factory) CreateCharacterJumpClone(args ...storage.CreateCharacterJumpCloneParams) *app.CharacterJumpClone

func (Factory) CreateCharacterMail

func (f Factory) CreateCharacterMail(args ...storage.CreateCharacterMailParams) *app.CharacterMail

func (Factory) CreateCharacterMailLabel

func (f Factory) CreateCharacterMailLabel(args ...app.CharacterMailLabel) *app.CharacterMailLabel

func (Factory) CreateCharacterMailList

func (f Factory) CreateCharacterMailList(characterID int32, args ...app.EveEntity) *app.EveEntity

func (Factory) CreateCharacterNotification

func (f Factory) CreateCharacterNotification(args ...storage.CreateCharacterNotificationParams) *app.CharacterNotification

func (Factory) CreateCharacterSectionStatus

func (f Factory) CreateCharacterSectionStatus(args ...CharacterSectionStatusParams) *app.CharacterSectionStatus

func (Factory) CreateCharacterSkill

func (f Factory) CreateCharacterSkill(args ...storage.UpdateOrCreateCharacterSkillParams) *app.CharacterSkill

func (Factory) CreateCharacterSkillqueueItem

func (f Factory) CreateCharacterSkillqueueItem(args ...storage.SkillqueueItemParams) *app.CharacterSkillqueueItem

func (Factory) CreateCharacterToken

func (f Factory) CreateCharacterToken(args ...app.CharacterToken) *app.CharacterToken

func (Factory) CreateEveCategory

func (f Factory) CreateEveCategory(args ...storage.CreateEveCategoryParams) *app.EveCategory

func (Factory) CreateEveCharacter

func (f Factory) CreateEveCharacter(args ...storage.CreateEveCharacterParams) *app.EveCharacter

func (Factory) CreateEveConstellation

func (f Factory) CreateEveConstellation(args ...storage.CreateEveConstellationParams) *app.EveConstellation

func (Factory) CreateEveDogmaAttribute

func (f Factory) CreateEveDogmaAttribute(args ...storage.CreateEveDogmaAttributeParams) *app.EveDogmaAttribute

func (Factory) CreateEveEntity

func (f Factory) CreateEveEntity(args ...app.EveEntity) *app.EveEntity

func (Factory) CreateEveEntityAlliance

func (f Factory) CreateEveEntityAlliance(args ...app.EveEntity) *app.EveEntity

func (Factory) CreateEveEntityCharacter

func (f Factory) CreateEveEntityCharacter(args ...app.EveEntity) *app.EveEntity

func (Factory) CreateEveEntityCorporation

func (f Factory) CreateEveEntityCorporation(args ...app.EveEntity) *app.EveEntity

func (Factory) CreateEveEntityInventoryType

func (f Factory) CreateEveEntityInventoryType(args ...app.EveEntity) *app.EveEntity

func (Factory) CreateEveEntitySolarSystem

func (f Factory) CreateEveEntitySolarSystem(args ...app.EveEntity) *app.EveEntity

func (Factory) CreateEveGroup

func (f Factory) CreateEveGroup(args ...storage.CreateEveGroupParams) *app.EveGroup

func (Factory) CreateEveMarketPrice

func (f Factory) CreateEveMarketPrice(args ...storage.UpdateOrCreateEveMarketPriceParams) *app.EveMarketPrice

func (Factory) CreateEveMoon

func (f Factory) CreateEveMoon(args ...storage.CreateEveMoonParams) *app.EveMoon

func (Factory) CreateEvePlanet

func (f Factory) CreateEvePlanet(args ...storage.CreateEvePlanetParams) *app.EvePlanet

func (Factory) CreateEveRace

func (f Factory) CreateEveRace(args ...app.EveRace) *app.EveRace

func (Factory) CreateEveRegion

func (f Factory) CreateEveRegion(args ...storage.CreateEveRegionParams) *app.EveRegion

func (Factory) CreateEveSolarSystem

func (f Factory) CreateEveSolarSystem(args ...storage.CreateEveSolarSystemParams) *app.EveSolarSystem

func (Factory) CreateEveType

func (f Factory) CreateEveType(args ...storage.CreateEveTypeParams) *app.EveType

func (Factory) CreateEveTypeDogmaAttribute

func (f Factory) CreateEveTypeDogmaAttribute(args ...storage.CreateEveTypeDogmaAttributeParams)

func (Factory) CreateGeneralSectionStatus

func (f Factory) CreateGeneralSectionStatus(args ...GeneralSectionStatusParams) *app.GeneralSectionStatus

func (Factory) CreateLocationStructure

func (f Factory) CreateLocationStructure(args ...storage.UpdateOrCreateLocationParams) *app.EveLocation

type GeneralSectionStatusParams

type GeneralSectionStatusParams struct {
	Section      app.GeneralSection
	ErrorMessage string
	CompletedAt  time.Time
	StartedAt    time.Time
	Data         any
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL