MCPcopy Index your code
hub / github.com/docker/cli / Len

Method Len

cli/command/task/print.go:19–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17type tasksSortable []swarm.Task
18
19func (t tasksSortable) Len() int {
20 return len(t)
21}
22
23func (t tasksSortable) Swap(i, j int) {
24 t[i], t[j] = t[j], t[i]

Callers 15

TestInvalidPluginFunction · 0.45
WriteMethod · 0.45
TestCompleteFileNamesFunction · 0.45
TestParseRunLinksFunction · 0.45
TestParseWithExposeFunction · 0.45
TestParseDeviceFunction · 0.45
TestRunDiffFunction · 0.45
parseFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestInvalidPluginFunction · 0.36
TestCompleteFileNamesFunction · 0.36
TestParseRunLinksFunction · 0.36
TestParseWithExposeFunction · 0.36
TestParseDeviceFunction · 0.36
TestRunDiffFunction · 0.36
TestRunKillFunction · 0.36
TestRunKillClientErrorFunction · 0.36
TestRunPauseFunction · 0.36
TestRunPauseClientErrorFunction · 0.36