MCPcopy
hub / github.com/harness/harness / IsEmpty

Function IsEmpty

registry/app/pkg/utils.go:29–34  ·  view source on GitHub ↗
(slice interface{})

Source from the content-addressed store, hash-verified

27)
28
29func IsEmpty(slice interface{}) bool {
30 if slice == nil {
31 return true
32 }
33 return reflect.ValueOf(slice).Len() == 0
34}
35
36func JoinWithSeparator(sep string, args ...string) string {
37 return strings.Join(args, sep)

Callers 5

proxyInternalFunction · 0.92
ProxyWrapperMethod · 0.92
ProxyWrapperMethod · 0.92
TestIsEmptyFunction · 0.70

Calls 1

LenMethod · 0.45

Tested by 1

TestIsEmptyFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…