MCPcopy
hub / github.com/google/mangle / makeVarList

Function makeVarList

functional/functional_test.go:86–93  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

84}
85
86func makeVarList(n int) []ast.Variable {
87 var vars []ast.Variable
88 for i := 0; i < n; i++ {
89 varName := fmt.Sprintf("X%d", i)
90 vars = append(vars, ast.Variable{varName})
91 }
92 return vars
93}
94
95func makeVarBaseTerms(n int) []ast.BaseTerm {
96 var vars []ast.BaseTerm

Callers 3

TestReducerCollectFunction · 0.85
TestReducerCollectToMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected