MCPcopy
hub / github.com/etcd-io/etcd / MustNewURLs

Function MustNewURLs

client/pkg/testutil/testutil.go:32–43  ·  view source on GitHub ↗
(t *testing.T, urls []string)

Source from the content-addressed store, hash-verified

30}
31
32func MustNewURLs(t *testing.T, urls []string) []url.URL {
33 t.Helper()
34 if urls == nil {
35 return nil
36 }
37 var us []url.URL
38 for _, url := range urls {
39 u := MustNewURL(t, url)
40 us = append(us, *u)
41 }
42 return us
43}
44
45func MustNewURL(t *testing.T, s string) *url.URL {
46 t.Helper()

Callers

nothing calls this directly

Calls 2

MustNewURLFunction · 0.85
HelperMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…