migrate

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CaseNodeWithAncestors

type CaseNodeWithAncestors struct {
	Node           *dao.AutoTestFileTreeNode
	Meta           *dao.AutoTestFileTreeNodeMeta
	PipelineYmlObj *pipelineyml.PipelineYml
	Ancestors      []*dao.AutoTestFileTreeNode       // ancestors 最后一个元素为项目根节点
	LatestStep     *dao.AutoTestSceneStep            // 最新的一个 step
	SceneSet       *dao.SceneSet                     // 所属的场景集
	Scene          *dao.AutoTestScene                // 当前用例节点创建出来的场景
	StepMap        map[uint64]*dao.AutoTestSceneStep // 步骤集合
}

type Inode

type Inode string

type Option

type Option func(*Service)

func WithDBClient

func WithDBClient(db *dao.DBClient) Option

type RichLeafDir

type RichLeafDir struct {
	DirNode   *dao.AutoTestFileTreeNode
	Ancestors []*dao.AutoTestFileTreeNode
}

type SceneBaseInfo

type SceneBaseInfo struct {
	Space *dao.AutoTestSpace

	LastSceneSet *dao.SceneSet
	AllSceneSets []*dao.SceneSet

	AllSceneMap map[uint64][]*dao.AutoTestScene // key: sceneSetID, value: scenes, last in the end
}

SceneBaseInfo 场景基础信息

func (*SceneBaseInfo) GetPreSceneIDUnderSceneSet

func (si *SceneBaseInfo) GetPreSceneIDUnderSceneSet(sceneSetID uint64) uint64

func (*SceneBaseInfo) GetPreSceneSetID

func (si *SceneBaseInfo) GetPreSceneSetID() uint64

type Service

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

func New

func New(options ...Option) *Service

func (*Service) MigrateFromAutoTestV1

func (svc *Service) MigrateFromAutoTestV1(projectIDs ...string) error

Jump to

Keyboard shortcuts

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