Documentation ¶
Index ¶
- func MakeAppConfig() conf.Config
- type SavedSearch
- type TestFactory
- func (tf TestFactory) MakeEnvironment() models.Environment
- func (tf TestFactory) MakeEvent() models.Event
- func (tf TestFactory) MakeEventGroup() models.Group
- func (tf TestFactory) MakeEventNodeBlob() models.NodeBlob
- func (tf TestFactory) MakeOrganization() models.Organization
- func (tf TestFactory) MakeOrganizationMember() models.OrganizationMember
- func (tf TestFactory) MakeProject() models.Project
- func (tf TestFactory) MakeProjectSearches() []models.SavedSearch
- func (tf TestFactory) MakeTags() []*models.TagKey
- func (tf TestFactory) MakeTeam() models.Team
- func (tf TestFactory) MakeTeamMember() models.OrganizationMemberTeam
- func (tf TestFactory) MakeUser() models.User
- func (tf TestFactory) Reset()
- func (tf TestFactory) SaveEnvironment(environment models.Environment)
- func (tf TestFactory) SaveEvent(event models.Event)
- func (tf TestFactory) SaveEventGroup(group models.Group)
- func (tf TestFactory) SaveEventNodeBlob(nodeBlob models.NodeBlob)
- func (tf TestFactory) SaveOrganization(org models.Organization)
- func (tf TestFactory) SaveOrganizationMember(orgMember models.OrganizationMember)
- func (tf TestFactory) SaveProject(project models.Project)
- func (tf TestFactory) SaveProjectSearches(searches ...models.SavedSearch)
- func (tf TestFactory) SaveTags(tags ...*models.TagKey)
- func (tf TestFactory) SaveTeam(team models.Team)
- func (tf TestFactory) SaveTeamMember(teamMember models.OrganizationMemberTeam)
- func (tf TestFactory) SaveUser(user models.User)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeAppConfig ¶
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 (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)
Click to show internal directories.
Click to hide internal directories.