MCPcopy Create free account
hub / github.com/cloudfoundry/multiapps-cli-plugin / getSpaceCount

Function getSpaceCount

testutil/ui.go:28–36  ·  view source on GitHub ↗
(i int, row []string, maxLen map[int]int, padding int)

Source from the content-addressed store, hash-verified

26}
27
28func getSpaceCount(i int, row []string, maxLen map[int]int, padding int) int {
29 var count int
30 if i < len(row)-1 {
31 count = maxLen[i] - len(row[i]) + padding
32 } else {
33 count = padding
34 }
35 return count
36}
37
38func getMaxLen(headers []string, rows [][]string, maxLen map[int]int) {
39 getRowMaxLen(headers, maxLen)

Callers 1

getLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected