MCPcopy Index your code
hub / github.com/peak/s5cmd / mustNewURL

Function mustNewURL

command/context_test.go:196–204  ·  view source on GitHub ↗
(t *testing.T, path string)

Source from the content-addressed store, hash-verified

194}
195
196func mustNewURL(t *testing.T, path string) *url.URL {
197 t.Helper()
198
199 u, err := url.New(path)
200 if err != nil {
201 t.Fatal(err)
202 }
203 return u
204}
205
206func flagSet(t *testing.T, name string, flags []cli.Flag) *flag.FlagSet {
207 t.Helper()

Callers 1

TestGenerateCommandFunction · 0.85

Calls 1

NewFunction · 0.92

Tested by

no test coverage detected