MCPcopy
hub / github.com/chrislusf/glow / printTaskGroup

Method printTaskGroup

driver/plan/group_plot.go:153–169  ·  view source on GitHub ↗

* subgraph cluster0 { node [style=filled,color=white]; style=filled; color=lightgrey; a0 -> a1 -> a2 -> a3; label = "process #1"; } */

(tg *TaskGroup, p string)

Source from the content-addressed store, hash-verified

151*/
152
153func (fg *FlowGraph) printTaskGroup(tg *TaskGroup, p string) {
154 fg.w(p).w("subgraph group_").i(tg.Id).println("{")
155 fg.w(p).w(p).println("node [style=filled,color=white];")
156 fg.w(p).w(p).println("style=filled;")
157 fg.w(p).w(p).println("color=lightgrey;")
158 for i, task := range tg.Tasks {
159 if i == 0 {
160 fg.w(p).w(p).t(task)
161 continue
162 }
163 fg.w(" -> ")
164 fg.t(task)
165 }
166 fg.println(";")
167 fg.w(p).w(p).w("label = \"group_").i(tg.Id).println("\";")
168 fg.w(p).println("}")
169}

Callers 1

plotMethod · 0.95

Calls 4

printlnMethod · 0.95
wMethod · 0.95
tMethod · 0.95
iMethod · 0.80

Tested by

no test coverage detected