MCPcopy
hub / github.com/opencloud-eu/opencloud / TestStringToSliceString

Function TestStringToSliceString

pkg/conversions/strings_test.go:24–35  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

22}
23
24func TestStringToSliceString(t *testing.T) {
25 for _, tt := range scenarios {
26 t.Run(tt.name, func(t *testing.T) {
27 s := StringToSliceString(tt.input, tt.separator)
28 for i, v := range tt.out {
29 if s[i] != v {
30 t.Errorf("got %q, want %q", s, tt.out)
31 }
32 }
33 })
34 }
35}

Callers

nothing calls this directly

Calls 3

StringToSliceStringFunction · 0.85
ErrorfMethod · 0.80
RunMethod · 0.65

Tested by

no test coverage detected