MCPcopy Create free account
hub / github.com/google/gapid / PushFront

Method PushFront

gapis/api/graph_visualization.go:46–51  ·  view source on GitHub ↗

PushFront adds a level in the front of the current Label..

(name string, id int)

Source from the content-addressed store, hash-verified

44
45// PushFront adds a level in the front of the current Label..
46func (label *Label) PushFront(name string, id int) {
47 newLabel := &Label{LevelsName: []string{name}, LevelsID: []int{id}}
48 newLabel.PushBackLabel(label)
49 label.LevelsName = newLabel.LevelsName
50 label.LevelsID = newLabel.LevelsID
51}
52
53// PushBackLabel adds a Label in the back of the current Label.
54func (label *Label) PushBackLabel(labelToPush *Label) {

Callers 4

TestLabelFunction · 0.95
joinNodesByFrameMethod · 0.80

Calls 1

PushBackLabelMethod · 0.95

Tested by 1

TestLabelFunction · 0.76