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

Function TestDistinct_Empty

pkg/util/util_test.go:393–395  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

391}
392
393func TestDistinct_Empty(t *testing.T) {
394 assert.Equal(t, []string(nil), util.SliceDistinct([]string{}))
395}
396
397func TestDistinct_WithoutDuplicateItems(t *testing.T) {
398 items := []string{"foo", "bar", "baz"}

Callers

nothing calls this directly

Calls 1

SliceDistinctFunction · 0.92

Tested by

no test coverage detected