factory

package
v0.0.0-...-de44970 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeAppConfig

func MakeAppConfig() conf.Config

TODO Define naming for fixture-per-test and fixture-per-suite

Types

type SavedSearch

type SavedSearch struct {
	ID          int       `db:"id" json:"id,string"`
	ProjectID   string    `db:"project_id" json:"-"`
	Name        string    `db:"name" json:"name"`
	Query       string    `db:"query" json:"query"`
	DateCreated time.Time `db:"date_added" json:"dateCreated"`
	IsDefault   bool      `db:"is_default" json:"isDefault"`
}

SavedSearch is a model for saved search query.

type TestFactory

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

func New

func New(t *testing.T, server *echo.Echo, tx *dbr.Tx) TestFactory

func (TestFactory) MakeEnvironment

func (tf TestFactory) MakeEnvironment() models.Environment

func (TestFactory) MakeEvent

func (tf TestFactory) MakeEvent() models.Event

func (TestFactory) MakeEventGroup

func (tf TestFactory) MakeEventGroup() models.Group

func (TestFactory) MakeEventNodeBlob

func (tf TestFactory) MakeEventNodeBlob() models.NodeBlob

func (TestFactory) MakeOrganization

func (tf TestFactory) MakeOrganization() models.Organization

func (TestFactory) MakeOrganizationMember

func (tf TestFactory) MakeOrganizationMember() models.OrganizationMember

func (TestFactory) MakeProject

func (tf TestFactory) MakeProject() models.Project

func (TestFactory) MakeProjectSearches

func (tf TestFactory) MakeProjectSearches() []models.SavedSearch

func (TestFactory) MakeTags

func (tf TestFactory) MakeTags() []*models.TagKey

func (TestFactory) MakeTeam

func (tf TestFactory) MakeTeam() models.Team

func (TestFactory) MakeTeamMember

func (tf TestFactory) MakeTeamMember() models.OrganizationMemberTeam

func (TestFactory) MakeUser

func (tf TestFactory) MakeUser() models.User

func (TestFactory) Reset

func (tf TestFactory) Reset()

func (TestFactory) SaveEnvironment

func (tf TestFactory) SaveEnvironment(environment models.Environment)

func (TestFactory) SaveEvent

func (tf TestFactory) SaveEvent(event models.Event)

func (TestFactory) SaveEventGroup

func (tf TestFactory) SaveEventGroup(group models.Group)

func (TestFactory) SaveEventNodeBlob

func (tf TestFactory) SaveEventNodeBlob(nodeBlob models.NodeBlob)

func (TestFactory) SaveOrganization

func (tf TestFactory) SaveOrganization(org models.Organization)

func (TestFactory) SaveOrganizationMember

func (tf TestFactory) SaveOrganizationMember(orgMember models.OrganizationMember)

func (TestFactory) SaveProject

func (tf TestFactory) SaveProject(project models.Project)

func (TestFactory) SaveProjectSearches

func (tf TestFactory) SaveProjectSearches(searches ...models.SavedSearch)

func (TestFactory) SaveTags

func (tf TestFactory) SaveTags(tags ...*models.TagKey)

func (TestFactory) SaveTeam

func (tf TestFactory) SaveTeam(team models.Team)

func (TestFactory) SaveTeamMember

func (tf TestFactory) SaveTeamMember(teamMember models.OrganizationMemberTeam)

func (TestFactory) SaveUser

func (tf TestFactory) SaveUser(user models.User)

Jump to

Keyboard shortcuts

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