MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / Empty

Function Empty

pkg/util/util.go:207–209  ·  view source on GitHub ↗
(items []T)

Source from the content-addressed store, hash-verified

205}
206
207func Empty[T any](items []T) bool {
208 return items == nil || len(items) == 0
209}
210
211func Any[T any](items []T) bool {
212 return !Empty(items)

Callers 15

shouldGenerateNuSpecFunction · 0.92
scopesProvidedFunction · 0.92
PromptScopesFunction · 0.92
PromptScopeFunction · 0.92
excludeRunFunction · 0.92
PromptMissingFunction · 0.92
PromptMissingFunction · 0.92
includeRunFunction · 0.92
PromptMissingFunction · 0.92
PromptForConfigAsCodeFunction · 0.92
NewCmdDeleteFunction · 0.92

Calls

no outgoing calls

Tested by 3

TestEmpty_NilFunction · 0.74
TestEmpty_ZeroItemsFunction · 0.74
TestEmpty_SomeItemsFunction · 0.74