MCPcopy Index your code
hub / github.com/cli/cli / Test_StringSlice_ToSlice

Function Test_StringSlice_ToSlice

pkg/set/string_set_test.go:9–16  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func Test_StringSlice_ToSlice(t *testing.T) {
10 s := NewStringSet()
11 s.Add("one")
12 s.Add("two")
13 s.Add("three")
14 s.Add("two")
15 assert.Equal(t, []string{"one", "two", "three"}, s.ToSlice())
16}
17
18func Test_StringSlice_Remove(t *testing.T) {
19 s := NewStringSet()

Callers

nothing calls this directly

Calls 4

NewStringSetFunction · 0.85
EqualMethod · 0.80
AddMethod · 0.65
ToSliceMethod · 0.65

Tested by

no test coverage detected