tree

package
v0.71.8-6 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDummyRootTc

func GetDummyRootTc() testcase.TestCase

func RemoveArrayItem

func RemoveArrayItem(sourceArray []*testcase.TestCaseDataInfo, tcData *testcase.TestCaseDataInfo) []*testcase.TestCaseDataInfo

Types

type TcNode

type TcNode struct {
	TestCaseExecutionInfo *testcase.TestCaseExecutionInfo
	Children              []*TcNode // for child
}

type TcTree

type TcTree map[string]*TcNode

func CreateTcTree

func CreateTcTree() TcTree

func (TcTree) AddNode

func (tcTree TcTree) AddNode(root *TcNode, TcaseExecution *testcase.TestCaseExecutionInfo) bool

func (TcTree) AddRootNode

func (tcTree TcTree) AddRootNode(TcaseExecution *testcase.TestCaseExecutionInfo) (*TcNode, bool)

func (TcTree) BuildRootDirectChildrenNodes

func (tcTree TcTree) BuildRootDirectChildrenNodes(root *TcNode, tcArray []*testcase.TestCaseDataInfo) ([]*testcase.TestCaseDataInfo, []*testcase.TestCaseDataInfo)

func (TcTree) BuildRootNode

func (tcTree TcTree) BuildRootNode() (*TcNode, bool)

func (TcTree) BuildTree

func (tcTree TcTree) BuildTree(tcArray []*testcase.TestCaseDataInfo) *TcNode

func (TcTree) CollectNodeReadyByPriority

func (tcTree TcTree) CollectNodeReadyByPriority(c chan *TcNode, node *TcNode, priority string)

func (TcTree) InitNodesRunResult

func (tcTree TcTree) InitNodesRunResult(node *TcNode, runResult string)

func (TcTree) LoopAndBuildOtherNodes

func (tcTree TcTree) LoopAndBuildOtherNodes(root *TcNode, tcArrayTree []*testcase.TestCaseDataInfo, tcArrayNotTree []*testcase.TestCaseDataInfo)

func (TcTree) RefreshNodeAndChilrenTcResult

func (tcTree TcTree) RefreshNodeAndChilrenTcResult(node *TcNode, tcRunResult string, tcStart string, tcEnd string, tcRunMessage []*testcase.TestMessage,
	tcStartUnixNano int64, tcEndUnixNano int64)

func (TcTree) RefreshNodeAndDirectChilrenTcResult

func (tcTree TcTree) RefreshNodeAndDirectChilrenTcResult(node *TcNode, tcRunResult string, tcStart string, tcEnd string, tcRunMessage []*testcase.TestMessage,
	tcStartUnixNano int64, tcEndUnixNano int64)

func (TcTree) SearchNode

func (tcTree TcTree) SearchNode(c chan *TcNode, node *TcNode, testCaseName string)

func (TcTree) ShowNodes

func (tcTree TcTree) ShowNodes(node *TcNode)

type TcTreeStats

type TcTreeStats struct {
	StatusCountByPriority   map[string]map[string]int
	TcNotExecutedByPriority map[string]map[string][]*testcase.TestCaseExecutionInfo
}

func CreateTcTreeStats

func CreateTcTreeStats(prioritySet []string) TcTreeStats

func (TcTreeStats) CollectNodeStatusByPriority

func (tcTreeStats TcTreeStats) CollectNodeStatusByPriority(node *TcNode, priority string)

func (TcTreeStats) CollectOverallNodeStatus

func (tcTreeStats TcTreeStats) CollectOverallNodeStatus(node *TcNode, key string)

key can be "Overall"

func (TcTreeStats) DeductReadyCount

func (tcTreeStats TcTreeStats) DeductReadyCount(priority string)

func (TcTreeStats) ResetTcTreeStats

func (tcTreeStats TcTreeStats) ResetTcTreeStats(priority string)

Jump to

Keyboard shortcuts

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