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

Function MustNewURL

client/pkg/testutil/testutil.go:45–52  ·  view source on GitHub ↗
(t *testing.T, s string)

Source from the content-addressed store, hash-verified

43}
44
45func MustNewURL(t *testing.T, s string) *url.URL {
46 t.Helper()
47 u, err := url.Parse(s)
48 if err != nil {
49 t.Fatalf("parse %v error: %v", s, err)
50 }
51 return u
52}
53
54// FatalStack helps to fatal the test and print out the stacks of all running goroutines.
55func FatalStack(t *testing.T, s string) {

Callers 1

MustNewURLsFunction · 0.85

Calls 3

ParseMethod · 0.80
HelperMethod · 0.65
FatalfMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…