Documentation ¶
Index ¶
- func RunParallelWithUseCases(t *testing.T, name string, wsName model.WSName, ...)
- func SetUpUseCases(t *testing.T, dbPath string, wsName model.WSName) (u *interactor.UseCases, closer func(), remover func())
- type Asset
- type AssetRepository
- type Client
- type Tag
- type TagRepository
- type UseCaseUser
- type UseCases
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunParallelWithUseCases ¶
func SetUpUseCases ¶
func SetUpUseCases(t *testing.T, dbPath string, wsName model.WSName) (u *interactor.UseCases, closer func(), remover func())
SetUpUseCases setup Usecases instance and cleanup function
Types ¶
type Asset ¶
type Asset struct {
// contains filtered or unexported fields
}
func (*Asset) AddOrMergeImportAssets ¶
func (a *Asset) AddOrMergeImportAssets(ws model.WSName, assets []*model.ImportAsset)
type AssetRepository ¶
type AssetRepository struct {
// contains filtered or unexported fields
}
type Client ¶
type Client struct { Asset *AssetRepository Tag *TagRepository }
type TagRepository ¶
type TagRepository struct {
// contains filtered or unexported fields
}
func (*TagRepository) AddWithIndex ¶ added in v0.1.4
func (t *TagRepository) AddWithIndex(ws model.WSName, tagWithIndex *model.UnregisteredTag) *model.Tag
type UseCaseUser ¶
type UseCaseUser struct { DBPath string RemoveDB func() // contains filtered or unexported fields }
func NewTestUseCaseUser ¶
func NewTestUseCaseUser(t *testing.T, wsName model.WSName) *UseCaseUser
func (*UseCaseUser) Use ¶
func (u *UseCaseUser) Use(f func(u *UseCases))
type UseCases ¶
type UseCases struct { Usecases *interactor.UseCases Asset *Asset Tag *Tag Client *Client }
func NewUseCases ¶
func NewUseCases(t *testing.T, u *interactor.UseCases) *UseCases
Click to show internal directories.
Click to hide internal directories.