tree

package
v0.71.8-8 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: ? 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

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