testset

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Service)

Option testCase 实例对象配置选项

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

WithBundle 配置 bundle

func WithDBClient

func WithDBClient(db *dao.DBClient) Option

WithDBClient 配置 db client

func WithTestCaseService

func WithTestCaseService(tcSvc *testcase.Service) Option

type Service

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

Service testSet 实例对象封装

func New

func New(options ...Option) *Service

New 新建 testSet service

func (*Service) Clean

func (svc *Service) Clean(userID, testsetID, projectID uint64) error

Clean 测试集删除

func (*Service) CleanFromRecycleBin

func (svc *Service) CleanFromRecycleBin(req apistructs.TestSetCleanFromRecycleBinRequest) error

func (*Service) Copy

func (*Service) CopyTestSet

func (svc *Service) CopyTestSet(record *dao.TestFileRecord)

func (*Service) Create

Create 创建测试集

func (*Service) FindAncestors

func (svc *Service) FindAncestors(tsID uint64) ([]apistructs.TestSet, error)

FindAncestors find ancestors for testSet.

func (*Service) GenerateTestSetName

func (svc *Service) GenerateTestSetName(projectID, parentTsID, testSetID uint64, requestName string) (string, error)

GenerateTestSetName 生成测试集名,追加 (N)

func (*Service) Get

func (svc *Service) Get(id uint64) (*apistructs.TestSet, error)

func (*Service) List

List 测试集列表返回

func (*Service) ListTestSetByLeafTestSetIDs

func (svc *Service) ListTestSetByLeafTestSetIDs(parentID uint64, leafTestSetIDs []uint64) ([]apistructs.TestSet, error)

ListTestSetByLeafTestSetIDs 根据叶子测试集反查某一父测试集的下一级测试集列表 return: layer(by ParentID), error

func (*Service) Recover

func (svc *Service) Recover(userID, testsetID, projectID, targetTestSetID uint64) error

Restore 回收站测试集恢复

func (*Service) RecoverFromRecycleBin

func (svc *Service) RecoverFromRecycleBin(req apistructs.TestSetRecoverFromRecycleBinRequest) error

func (*Service) RecursiveFindParents

func (svc *Service) RecursiveFindParents(leafTestSetIDs []uint64, knownTestSets map[uint64]apistructs.TestSet) error

func (*Service) Recycle

func (svc *Service) Recycle(req apistructs.TestSetRecycleRequest) error

func (*Service) Update

func (svc *Service) Update(req apistructs.TestSetUpdateRequest) error

Update 测试集更新

Jump to

Keyboard shortcuts

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